public interface RoleManager
限定符和类型 | 方法和说明 |
---|---|
RoleManagerImpl.ChangeUserRoleInfo |
batchBackAdminRole(V3xOrgRole role,
V3xOrgAccount targetUnit,
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)
删除角色分配的人员
|
default void |
disableRole(java.lang.String code,
long accountId)
角色停用
|
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)
同步集团角色
type:1:add,2:modfiy,3:delete
|
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<PrivTreeNodeBO> nodes,
java.lang.Long roleId,
boolean reset)
根据选择的树节点更新角色资源关联
|
void batchRole2Entity(java.lang.Long roleId, java.lang.String entityIds) throws com.seeyon.ctp.common.exceptions.BusinessException
roleId
- entityIds
- com.seeyon.ctp.common.exceptions.BusinessException
RoleManagerImpl.ChangeUserRoleInfo batchBackAdminRole(V3xOrgRole role, V3xOrgAccount targetUnit, java.util.List<V3xOrgMember> authMembers) throws com.seeyon.ctp.common.exceptions.BusinessException
role
- 角色targetUnit
- 目标单位authMembers
- 授权人员com.seeyon.ctp.common.exceptions.BusinessException
RoleManagerImpl.ChangeUserRoleInfo notify4DisableBackAdminRole(V3xOrgRole role) throws com.seeyon.ctp.common.exceptions.BusinessException
role
- com.seeyon.ctp.common.exceptions.BusinessException
void batchBackAdminRole4EntityIds(java.lang.Long roleId, java.lang.Long rootUnitId, java.lang.String memberIds) throws com.seeyon.ctp.common.exceptions.BusinessException
roleId
- 角色rootUnitId
- 目标单位memberIds
- 授权人员com.seeyon.ctp.common.exceptions.BusinessException
java.util.Map<OrgConstants.Role_NAME,java.util.List<V3xOrgMember>> checkGovRoleStdAuth(V3xOrgRole orgRole, java.util.List<V3xOrgMember> orgMembers)
三员模式管理员授权时权限的交叉校验,原则:
1.系统级的安全管理员可以授权单位级的安全管理员;
2.系统级的审计管理员可以授权单位级的审计管理员;
2.系统级的系统管理员可以授权单位级的系统管理员;
orgRole
- 要授权的角色orgMembers
- 要授权的人员列表void batchRole2EntityToEntAccount(java.lang.Long roleId, java.lang.String entityIds) throws com.seeyon.ctp.common.exceptions.BusinessException
roleId
- entityIds
- com.seeyon.ctp.common.exceptions.BusinessException
void batchRole2Member(java.lang.String roleName, java.lang.Long accountId, java.lang.String memberIds) throws com.seeyon.ctp.common.exceptions.BusinessException
roleName
- memberIds
- com.seeyon.ctp.common.exceptions.BusinessException
boolean checkDulipCode(V3xOrgRole role)
role
- 角色boolean checkDulipName(V3xOrgRole role)
role
- boolean checkDulipSortId(int sortId)
sortId
- 排序号java.lang.String checkOnlyOneRole(java.lang.Long roleId, java.lang.String memberList, java.lang.Long deptId) throws com.seeyon.ctp.common.exceptions.BusinessException
roleId
- memberList
- deptId
- com.seeyon.ctp.common.exceptions.BusinessException
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
com.seeyon.ctp.common.exceptions.BusinessException
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
rolelistmap
- type
- com.seeyon.ctp.common.exceptions.BusinessException
java.lang.Long createRole(V3xOrgRole role) throws com.seeyon.ctp.common.exceptions.BusinessException
role
- 要创建的角色com.seeyon.ctp.common.exceptions.BusinessException
- 如果发生异常抛出异常 com.seeyon.ctp.common.exceptions.BusinessExceptionvoid defultRole(java.lang.Long roles) throws com.seeyon.ctp.common.exceptions.BusinessException
roles
- com.seeyon.ctp.common.exceptions.BusinessException
void deleteRole(java.lang.Long[] roles) throws com.seeyon.ctp.common.exceptions.BusinessException
roles
- 要删除的角色ID数组com.seeyon.ctp.common.exceptions.BusinessException
- 如果发生异常抛出异常 com.seeyon.ctp.common.exceptions.BusinessExceptionvoid deleteRole(java.lang.Long roleId, java.lang.Boolean whetherEnforced) throws com.seeyon.ctp.common.exceptions.BusinessException
roleId
- 角色对象whetherEnforced
- 是否强制删除com.seeyon.ctp.common.exceptions.BusinessException
- 如果发生异常抛出异常 com.seeyon.ctp.common.exceptions.BusinessExceptionvoid deleteBusinessRole(java.lang.Long roleId) throws com.seeyon.ctp.common.exceptions.BusinessException
roleId
- 角色Idcom.seeyon.ctp.common.exceptions.BusinessException
void delRole2Entity(java.lang.String rolename, java.lang.Long accountId, java.lang.String entityIds) throws com.seeyon.ctp.common.exceptions.BusinessException
rolename
- entityIds
- com.seeyon.ctp.common.exceptions.BusinessException
void disenableRole(java.lang.Long[] roles) throws com.seeyon.ctp.common.exceptions.BusinessException
roles
- com.seeyon.ctp.common.exceptions.BusinessException
default void disableRole(java.lang.String code, long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
code
- 角色codeaccountId
- 单位Idcom.seeyon.ctp.common.exceptions.BusinessException
void disableRole(java.lang.String code, long accountId, boolean isForce) throws com.seeyon.ctp.common.exceptions.BusinessException
code
- 角色codeaccountId
- 单位IdisForce
- 是否强制停用com.seeyon.ctp.common.exceptions.BusinessException
void enableRole(java.lang.Long[] roles) throws com.seeyon.ctp.common.exceptions.BusinessException
roles
- com.seeyon.ctp.common.exceptions.BusinessException
void enableRole(java.lang.String code, long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
code
- 角色codeaccountId
- 单位Idcom.seeyon.ctp.common.exceptions.BusinessException
V3xOrgRole findById(java.lang.Long role) throws com.seeyon.ctp.common.exceptions.BusinessException
role
- 角色IDcom.seeyon.ctp.common.exceptions.BusinessException
- 如果发生异常抛出异常 com.seeyon.ctp.common.exceptions.BusinessExceptioncom.seeyon.ctp.util.FlipInfo findRoles(com.seeyon.ctp.util.FlipInfo fi, java.util.Map param) throws com.seeyon.ctp.common.exceptions.BusinessException
fi
- 翻页信息对象param
- 查询条件Mapcom.seeyon.ctp.common.exceptions.BusinessException
V3xOrgRole getDefultRoleByAccount(java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
accountId
- com.seeyon.ctp.common.exceptions.BusinessException
V3xOrgRole getDefaultSuperviseRoleByAccount(java.lang.Long accountId) throws com.seeyon.ctp.common.exceptions.BusinessException
accountId
- com.seeyon.ctp.common.exceptions.BusinessException
int getMaxSortId(java.lang.Long accountId)
com.seeyon.ctp.util.FlipInfo showMembers4Role(com.seeyon.ctp.util.FlipInfo fi, java.util.Map params) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
void SycGroupRole(V3xOrgRole role, int type) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
java.lang.Long updateRole(V3xOrgRole role) throws com.seeyon.ctp.common.exceptions.BusinessException
role
- 要创建的角色com.seeyon.ctp.common.exceptions.BusinessException
- 如果发生异常抛出异常 com.seeyon.ctp.common.exceptions.BusinessExceptionvoid updateRoleResource(java.util.List<PrivTreeNodeBO> nodes, java.lang.Long roleId) throws com.seeyon.ctp.common.exceptions.BusinessException
nodes
- 树节点对象roleId
- 角色IDcom.seeyon.ctp.common.exceptions.BusinessException
void updateRoleResource(java.util.List<PrivTreeNodeBO> nodes, java.lang.Long roleId, boolean reset) throws com.seeyon.ctp.common.exceptions.BusinessException
nodes
- 树节点对象roleId
- 角色IDreset
- 是否清除指定角色原有的绑定资源com.seeyon.ctp.common.exceptions.BusinessException
void deleteRoleMenu(java.lang.Long roleId) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
void SycGroupRoleAdd(V3xOrgRole role) throws com.seeyon.ctp.common.exceptions.BusinessException
com.seeyon.ctp.common.exceptions.BusinessException
java.lang.String checkGovdocRoleResource(java.util.List nodes, java.lang.Long roleId) throws com.seeyon.ctp.common.exceptions.BusinessException
nodes
- roleId
- com.seeyon.ctp.common.exceptions.BusinessException