@CheckRoleAccess(roleTypes={HrAdmin,DepAdmin}, resourceCode={"org_role_setting","org_group_setting","org_member_setting"}) public class RoleManagerImpl extends java.lang.Object implements RoleManager
| 限定符和类型 | 类和说明 |
|---|---|
static class |
RoleManagerImpl.ChangeUserRoleInfo
被修改人员角色的信息
|
| 限定符和类型 | 字段和说明 |
|---|---|
protected com.seeyon.ctp.common.appLog.manager.AppLogManager |
appLogManager |
protected OrgCache |
orgCache |
protected OrgDao |
orgDao |
protected OrgManager |
orgManager |
protected OrgManagerDirect |
orgManagerDirect |
protected PrivilegeMenuManager |
privilegeMenuManager |
protected RoleMenuDao |
roleMenuDao |
protected com.seeyon.ctp.common.config.SystemConfig |
systemConfig |
| 构造器和说明 |
|---|
RoleManagerImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
RoleManagerImpl.ChangeUserRoleInfo |
batchBackAdminRole(V3xOrgRole role,
V3xOrgAccount unit,
java.util.List<V3xOrgMember> authMembers)
批量授权人员给后台管理员角色
|
void |
batchBackAdminRole4EntityIds(java.lang.Long roleId,
java.lang.Long rootUnitId,
java.lang.String memberIds)
批量授权人员给后台管理员角色
|
void |
batchRole2Entity(java.lang.Long roleId,
java.lang.String entityIds)
将角色赋予某一些entity(授权给当前登录单位)
|
void |
batchRole2EntityToEntAccount(java.lang.Long roleId,
java.lang.String entityIds)
将角色赋予某一些entity(授权给当实体的所属单位),用于业务生成器这类的跨单位授权的情况
|
void |
batchRole2Member(java.lang.String roleName,
java.lang.Long accountId,
java.lang.String memberIds)
给角色分配人员
|
boolean |
checkDulipCode(V3xOrgRole role) |
boolean |
checkDulipName(V3xOrgRole role)
判断角色名称是否重复
|
boolean |
checkDulipSortId(int sortId) |
java.lang.String |
checkGovdocRoleResource(java.util.List nodes,
java.lang.Long roleId)
校验公文角色菜单
|
java.util.Map<OrgConstants.Role_NAME,java.util.List<V3xOrgMember>> |
checkGovRoleStdAuth(V3xOrgRole orgRole,
java.util.List<V3xOrgMember> orgMembers)
三员模式管理员授权时权限的交叉校验,原则:
1.系统级的安全管理员可以授权单位级的安全管理员; 2.系统级的审计管理员可以授权单位级的审计管理员; 2.系统级的系统管理员可以授权单位级的系统管理员; 其他角色之间不能交叉授权 |
java.lang.String |
checkOnlyOneRole(java.lang.Long roleId,
java.lang.String memberList,
java.lang.Long deptId)
滴滴集成插件存在的情况下,需要检查此项:
部门用车管理员存在则说明插件存在
一个人仅能任职一个部门的“部门用车管理员”,否则要给出提示
|
java.util.Map<java.lang.String,java.lang.String> |
checkRoles(java.lang.String roleIds,
java.lang.Long memberId,
java.lang.Long deptId) |
void |
copyrole(java.util.List<java.util.Map<java.lang.String,java.lang.Object>> rolelistmap,
java.lang.String type)
复制角色
|
java.lang.Long |
createRole(V3xOrgRole role)
新建角色
|
void |
defultRole(java.lang.Long roles)
设置默认角色
|
void |
deleteBusinessRole(java.lang.Long roleId)
删除业务生成器角色
|
void |
deleteRole(java.lang.Long[] roles)
删除角色
|
void |
deleteRole(java.lang.Long roleId,
java.lang.Boolean whetherEnforced)
删除角色
|
void |
deleteRoleMenu(java.lang.Long roleId) |
void |
delRole2Entity(java.lang.String rolename,
java.lang.Long accountId,
java.lang.String entityIds)
删除角色分配的人员
|
void |
disableRole(java.lang.String code,
long accountId,
boolean isForce)
角色停用
|
void |
disenableRole(java.lang.Long[] roles)
停用角色
|
void |
enableRole(java.lang.Long[] roles)
启用角色
|
void |
enableRole(java.lang.String code,
long accountId)
角色启用
|
V3xOrgRole |
findById(java.lang.Long role)
根据角色ID得到角色
|
com.seeyon.ctp.util.FlipInfo |
findRoles(com.seeyon.ctp.util.FlipInfo fi,
java.util.Map param)
根据查询条件找到所有满足条件的角色
|
V3xOrgRole |
getDefaultSuperviseRoleByAccount(java.lang.Long accountId)
如果存在督办高级版插件
根据单位ID获取承办人角色作为默认角色
|
V3xOrgRole |
getDefultRoleByAccount(java.lang.Long accountId)
根据单位ID去获取一个单位内的默认角色
一个单位内只有一个默认角色 如果没有默认角色返回null |
int |
getMaxSortId(java.lang.Long accountId) |
RoleManagerImpl.ChangeUserRoleInfo |
notify4DisableBackAdminRole(V3xOrgRole role)
停用系统后台管理员角色
|
com.seeyon.ctp.util.FlipInfo |
showMembers4Role(com.seeyon.ctp.util.FlipInfo fi,
java.util.Map params)
获取角色下的所有人员
|
void |
SycGroupRole(V3xOrgRole role,
int type)
同步集团角色
|
void |
SycGroupRoleAdd(V3xOrgRole role)
同步集团角色
|
java.lang.Long |
updateRole(V3xOrgRole role)
更新角色
|
void |
updateRoleResource(java.util.List<PrivTreeNodeBO> nodes,
java.lang.Long roleId)
根据选择的树节点更新角色资源关联
|
void |
updateRoleResource(java.util.List nodes,
java.lang.Long roleId,
boolean reset)
根据选择的树节点更新角色资源关联
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdisableRole@Inject protected com.seeyon.ctp.common.appLog.manager.AppLogManager appLogManager
@Inject protected PrivilegeMenuManager privilegeMenuManager
@Inject protected OrgCache orgCache
@Inject protected OrgDao orgDao
@Inject protected OrgManager orgManager
@Inject protected OrgManagerDirect orgManagerDirect
@Inject protected RoleMenuDao roleMenuDao
@Inject protected com.seeyon.ctp.common.config.SystemConfig systemConfig
@AjaxAccess @Transactional(propagation=REQUIRED) @CheckRoleAccess(roleTypes={HrAdmin,DepAdmin}, resourceCode="org_role_auth") public void batchRole2Entity(java.lang.Long roleId, java.lang.String entityIds) throws com.seeyon.ctp.common.exceptions.BusinessException
RoleManagerbatchRole2Entity 在接口中 RoleManagercom.seeyon.ctp.common.exceptions.BusinessException@AjaxAccess @Transactional(propagation=REQUIRED) @CheckRoleAccess(resourceCode="org_role_auth") public void batchBackAdminRole4EntityIds(java.lang.Long roleId, java.lang.Long rootUnitId, java.lang.String memberIds) throws com.seeyon.ctp.common.exceptions.BusinessException
RoleManagerbatchBackAdminRole4EntityIds 在接口中 RoleManagerroleId - 角色rootUnitId - 目标单位memberIds - 授权人员com.seeyon.ctp.common.exceptions.BusinessExceptionpublic java.util.Map<OrgConstants.Role_NAME,java.util.List<V3xOrgMember>> checkGovRoleStdAuth(V3xOrgRole orgRole, java.util.List<V3xOrgMember> orgMembers)
三员模式管理员授权时权限的交叉校验,原则:
1.系统级的安全管理员可以授权单位级的安全管理员;
2.系统级的审计管理员可以授权单位级的审计管理员;
2.系统级的系统管理员可以授权单位级的系统管理员;
checkGovRoleStdAuth 在接口中 RoleManagerorgRole - 要授权的角色orgMembers - 要授权的人员列表com.seeyon.ctp.common.exceptions.BusinessException@Transactional(propagation=REQUIRED) public RoleManagerImpl.ChangeUserRoleInfo batchBackAdminRole(V3xOrgRole role, V3xOrgAccount unit, java.util.List<V3xOrgMember> authMembers) throws com.seeyon.ctp.common.exceptions.BusinessException
RoleManagerbatchBackAdminRole 在接口中 RoleManagerrole - 角色unit - 目标单位authMembers - 授权人员com.seeyon.ctp.common.exceptions.BusinessException@Transactional(propagation=SUPPORTS) public RoleManagerImpl.ChangeUserRoleInfo notify4DisableBackAdminRole(V3xOrgRole role) throws com.seeyon.ctp.common.exceptions.BusinessException
RoleManagernotify4DisableBackAdminRole 在接口中 RoleManagercom.seeyon.ctp.common.exceptions.BusinessExceptionpublic void batchRole2EntityToEntAccount(java.lang.Long roleId,
java.lang.String entityIds)
throws com.seeyon.ctp.common.exceptions.BusinessException
RoleManagerbatchRole2EntityToEntAccount 在接口中 RoleManagercom.seeyon.ctp.common.exceptions.BusinessExceptionpublic void batchRole2Member(java.lang.String roleName,
java.lang.Long accountId,
java.lang.String memberIds)
throws com.seeyon.ctp.common.exceptions.BusinessException
RoleManagerbatchRole2Member 在接口中 RoleManagercom.seeyon.ctp.common.exceptions.BusinessExceptionpublic boolean checkDulipCode(V3xOrgRole role)
checkDulipCode 在接口中 RoleManagerrole - 角色public boolean checkDulipName(V3xOrgRole role)
RoleManagercheckDulipName 在接口中 RoleManagerpublic boolean checkDulipSortId(int sortId)
checkDulipSortId 在接口中 RoleManagersortId - 排序号@AjaxAccess @CheckRoleAccess(roleTypes={HrAdmin,DepAdmin}, resourceCode={"org_role_setting","org_group_setting","org_role_auth"}) public java.lang.String checkOnlyOneRole(java.lang.Long roleId, java.lang.String memberList, java.lang.Long deptId) throws com.seeyon.ctp.common.exceptions.BusinessException
RoleManagercheckOnlyOneRole 在接口中 RoleManagercom.seeyon.ctp.common.exceptions.BusinessException@AjaxAccess
public java.util.Map<java.lang.String,java.lang.String> checkRoles(java.lang.String roleIds,
java.lang.Long memberId,
java.lang.Long deptId)
throws com.seeyon.ctp.common.exceptions.BusinessException
checkRoles 在接口中 RoleManagercom.seeyon.ctp.common.exceptions.BusinessException@AjaxAccess
@Transactional(propagation=REQUIRED,
rollbackFor=com.seeyon.ctp.common.exceptions.BusinessException.class)
@CheckRoleAccess(roleTypes=HrAdmin,
resourceCode={"org_role_setting","org_group_setting"})
public void copyrole(java.util.List<java.util.Map<java.lang.String,java.lang.Object>> rolelistmap,
java.lang.String type)
throws com.seeyon.ctp.common.exceptions.BusinessException
RoleManagercopyrole 在接口中 RoleManagercom.seeyon.ctp.common.exceptions.BusinessException@AjaxAccess @CheckRoleAccess(roleTypes=HrAdmin, resourceCode={"org_role_setting","org_group_setting"}) public java.lang.Long createRole(V3xOrgRole role) throws com.seeyon.ctp.common.exceptions.BusinessException
RoleManagercreateRole 在接口中 RoleManagerrole - 要创建的角色com.seeyon.ctp.common.exceptions.BusinessException - 如果发生异常抛出异常 com.seeyon.ctp.common.exceptions.BusinessException@AjaxAccess @CheckRoleAccess(roleTypes=HrAdmin, resourceCode={"org_role_setting","org_group_setting"}) public void defultRole(java.lang.Long roles) throws com.seeyon.ctp.common.exceptions.BusinessException
RoleManagerdefultRole 在接口中 RoleManagercom.seeyon.ctp.common.exceptions.BusinessException@CheckRoleAccess(roleTypes=HrAdmin, resourceCode={"org_role_setting","org_group_setting"}) public void deleteRole(java.lang.Long[] roles) throws com.seeyon.ctp.common.exceptions.BusinessException
RoleManagerdeleteRole 在接口中 RoleManagerroles - 要删除的角色ID数组com.seeyon.ctp.common.exceptions.BusinessException - 如果发生异常抛出异常 com.seeyon.ctp.common.exceptions.BusinessException@AjaxAccess @CheckRoleAccess(roleTypes=HrAdmin, resourceCode={"org_role_setting","org_group_setting"}) public void deleteRole(java.lang.Long roleId, java.lang.Boolean whetherEnforced) throws com.seeyon.ctp.common.exceptions.BusinessException
RoleManagerdeleteRole 在接口中 RoleManagerroleId - 角色对象whetherEnforced - 是否强制删除com.seeyon.ctp.common.exceptions.BusinessException - 如果发生异常抛出异常 com.seeyon.ctp.common.exceptions.BusinessExceptionpublic void deleteBusinessRole(java.lang.Long roleId)
throws com.seeyon.ctp.common.exceptions.BusinessException
RoleManagerdeleteBusinessRole 在接口中 RoleManagerroleId - 角色Idcom.seeyon.ctp.common.exceptions.BusinessException@CheckRoleAccess(roleTypes=HrAdmin, resourceCode={"org_role_setting","org_group_setting"}) public void deleteRoleMenu(java.lang.Long roleId) throws com.seeyon.ctp.common.exceptions.BusinessException
deleteRoleMenu 在接口中 RoleManagercom.seeyon.ctp.common.exceptions.BusinessExceptionpublic void delRole2Entity(java.lang.String rolename,
java.lang.Long accountId,
java.lang.String entityIds)
throws com.seeyon.ctp.common.exceptions.BusinessException
RoleManagerdelRole2Entity 在接口中 RoleManagercom.seeyon.ctp.common.exceptions.BusinessException@AjaxAccess @CheckRoleAccess(roleTypes=HrAdmin, resourceCode={"org_role_setting","org_group_setting"}) public void disenableRole(java.lang.Long[] roles) throws com.seeyon.ctp.common.exceptions.BusinessException
RoleManagerdisenableRole 在接口中 RoleManagercom.seeyon.ctp.common.exceptions.BusinessExceptionpublic void disableRole(java.lang.String code,
long accountId,
boolean isForce)
throws com.seeyon.ctp.common.exceptions.BusinessException
RoleManagerdisableRole 在接口中 RoleManagercode - 角色codeaccountId - 单位IdisForce - 是否强制停用com.seeyon.ctp.common.exceptions.BusinessException@AjaxAccess @CheckRoleAccess(roleTypes=HrAdmin, resourceCode={"org_role_setting","org_group_setting"}) public void enableRole(java.lang.Long[] roles) throws com.seeyon.ctp.common.exceptions.BusinessException
RoleManagerenableRole 在接口中 RoleManagercom.seeyon.ctp.common.exceptions.BusinessExceptionpublic void enableRole(java.lang.String code,
long accountId)
throws com.seeyon.ctp.common.exceptions.BusinessException
RoleManagerenableRole 在接口中 RoleManagercode - 角色codeaccountId - 单位Idcom.seeyon.ctp.common.exceptions.BusinessExceptionpublic V3xOrgRole findById(java.lang.Long role) throws com.seeyon.ctp.common.exceptions.BusinessException
RoleManagerfindById 在接口中 RoleManagerrole - 角色IDcom.seeyon.ctp.common.exceptions.BusinessException - 如果发生异常抛出异常 com.seeyon.ctp.common.exceptions.BusinessException@AjaxAccess @CheckRoleAccess(roleTypes=HrAdmin, resourceCode={"org_role_setting","org_role_auth","org_group_setting"}) public com.seeyon.ctp.util.FlipInfo findRoles(com.seeyon.ctp.util.FlipInfo fi, java.util.Map param) throws com.seeyon.ctp.common.exceptions.BusinessException
RoleManagerfindRoles 在接口中 RoleManagerfi - 翻页信息对象param - 查询条件Mapcom.seeyon.ctp.common.exceptions.BusinessException@AjaxAccess public V3xOrgRole getDefultRoleByAccount(java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
RoleManagergetDefultRoleByAccount 在接口中 RoleManagercom.seeyon.ctp.common.exceptions.BusinessException@AjaxAccess public V3xOrgRole getDefaultSuperviseRoleByAccount(java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
RoleManagergetDefaultSuperviseRoleByAccount 在接口中 RoleManagercom.seeyon.ctp.common.exceptions.BusinessExceptionpublic int getMaxSortId(java.lang.Long accountId)
getMaxSortId 在接口中 RoleManager@AjaxAccess @CheckRoleAccess(roleTypes={HrAdmin,DepAdmin}, resourceCode={"org_role_auth","org_group_setting"}) public com.seeyon.ctp.util.FlipInfo showMembers4Role(com.seeyon.ctp.util.FlipInfo fi, java.util.Map params) throws com.seeyon.ctp.common.exceptions.BusinessException
RoleManagershowMembers4Role 在接口中 RoleManagercom.seeyon.ctp.common.exceptions.BusinessExceptionpublic void SycGroupRole(V3xOrgRole role, int type) throws com.seeyon.ctp.common.exceptions.BusinessException
SycGroupRole 在接口中 RoleManagercom.seeyon.ctp.common.exceptions.BusinessExceptionpublic void SycGroupRoleAdd(V3xOrgRole role) throws com.seeyon.ctp.common.exceptions.BusinessException
RoleManagerSycGroupRoleAdd 在接口中 RoleManagercom.seeyon.ctp.common.exceptions.BusinessException@AjaxAccess @CheckRoleAccess(roleTypes=HrAdmin, resourceCode={"org_role_setting","org_group_setting"}) public java.lang.Long updateRole(V3xOrgRole role) throws com.seeyon.ctp.common.exceptions.BusinessException
RoleManagerupdateRole 在接口中 RoleManagerrole - 要创建的角色com.seeyon.ctp.common.exceptions.BusinessException - 如果发生异常抛出异常 com.seeyon.ctp.common.exceptions.BusinessException@AjaxAccess @CheckRoleAccess(roleTypes=HrAdmin, resourceCode={"org_role_setting","org_group_setting"}) public void updateRoleResource(java.util.List<PrivTreeNodeBO> nodes, java.lang.Long roleId) throws com.seeyon.ctp.common.exceptions.BusinessException
RoleManagerupdateRoleResource 在接口中 RoleManagernodes - 树节点对象roleId - 角色IDcom.seeyon.ctp.common.exceptions.BusinessException@AjaxAccess @CheckRoleAccess(roleTypes=HrAdmin, resourceCode={"org_role_setting","org_group_setting"}) public void updateRoleResource(java.util.List nodes, java.lang.Long roleId, boolean reset) throws com.seeyon.ctp.common.exceptions.BusinessException
RoleManagerupdateRoleResource 在接口中 RoleManagernodes - 树节点对象roleId - 角色IDreset - 是否清除指定角色原有的绑定资源com.seeyon.ctp.common.exceptions.BusinessException@AjaxAccess @CheckRoleAccess(roleTypes=HrAdmin, resourceCode={"org_role_setting","org_group_setting"}) public java.lang.String checkGovdocRoleResource(java.util.List nodes, java.lang.Long roleId) throws com.seeyon.ctp.common.exceptions.BusinessException
RoleManagercheckGovdocRoleResource 在接口中 RoleManagercom.seeyon.ctp.common.exceptions.BusinessException