用户组织权限表:T_PM_UserOrgPerm
用户角色权限表:T_PM_UserRoleOrg
角色权限表:T_PM_RolePerm
private boolean isPerm(String userId, String orgId, String permItemId) {
boolean flag = false;
FilterInfo filter = new FilterInfo();
filter.getFilterItems().add(new FilterItemInfo("owner.id", userId));
filter.getFilterItems().add(new FilterItemInfo("org.id", orgId));
filter.getFilterItems().add(new FilterItemInfo("permItem.id", permItemId));
try {
flag = UserOrgPermFactory.getRemoteInstance().exists(filter);
} catch (Exception e) {
e.printStackTrace();
}
return flag;
}