首页 > 其他 > 详细

权限检查

时间:2015-04-21 20:19:57      阅读:113      评论:0      收藏:0      [点我收藏+]
1 IPermission iPer = PermissionFactory.getRemoteInstance();
2     UserInfo user = SysContext.getSysContext().getCurrentUserInfo();
3     FullOrgUnitInfo org = getBgFormInfo().getOrgUnit();
4     boolean isShowLock = iPer.hasFunctionPermission(new ObjectUuidPK(user.getId()), new ObjectUuidPK(org.getId()), "bg_form27_lock");
5     boolean isShowUnLock = iPer.hasFunctionPermission(new ObjectUuidPK(user.getId()), new ObjectUuidPK(org.getId()), "bg_form28_unLock");

 

权限检查

原文:http://www.cnblogs.com/cyhj/p/4444970.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!