public interface CustomRoleExecutor extends CacheExecutor
限定符和类型 | 方法和说明 |
---|---|
void |
buildCache()
初始化缓存
|
void |
cacheNew(CustomRole customRole)
把角色缓存起来
|
void |
cacheUpdate(CustomRole customRole)
更新角色缓存
|
boolean |
containCache(long customRoleId)
缓存中是否指定ID的自定义角色
|
boolean |
containEntryPrivilege(long roleId,
int type,
long entryId)
是否包含Entry的权限
|
boolean |
containHomePagePrivilege(long roleId,
long homepageId)
角色是否包含首页的权限
|
boolean |
containModulePrivilege(long roleId,
long moduleId)
角色是否包含Module的权限
|
boolean |
containPlatePrivilege(long roleId,
long plateOBId,
java.lang.String plateName)
是否包含Plate的权限
|
java.util.List<CustomRole> |
getAllCustomRole()
返回所有的普通权限列表
|
java.util.Set<RoleDataConnectionPrivilege> |
getAllDataConnectionPrivileges(long id) |
java.util.List<java.lang.String> |
getAllDepAndCRolePrivilegeDescriptions(long id) |
java.util.List<RoleDepAndCRolePrivilege> |
getAllDepAndCRolePrivileges(long id) |
java.util.List |
getAllDepAndCRolePrivileges(long id,
boolean toObj) |
java.util.List<EntryTypeAndID> |
getAllEntryPrivileges(long id) |
java.util.List<java.lang.String> |
getAllESPrivilegeDescriptions(long id) |
java.util.List<RoleHomePagePrivilege> |
getAllHomePagePrivileges(long id) |
java.util.List<RoleModulePrivilege> |
getAllModulePrivileges(long id) |
java.util.List<java.lang.String> |
getAllPrivilegesWithPlateName(long id,
java.lang.String plateName) |
java.util.List<RoleTemplatePrivilege> |
getAllTemplatePrivileges(long id) |
java.lang.String |
getSRoleName(long id) |
void |
rebuildCache()
重新初始化缓存
|
void |
refreshCustomRoleName(long id,
java.lang.String newName)
刷新角色的名称
|
void |
refreshDataConnectionPrivileges(long id,
java.util.Set<RoleDataConnectionPrivilege> set)
根据角色ID刷新数据连接权限
|
void |
refreshDataConnectionPrivileges(java.lang.String roleName,
java.util.Set<RoleDataConnectionPrivilege> set)
根据角色名刷新数据连接权限
|
void |
refreshDepAndCRolePrivileges(long id,
java.util.Set<RoleDepAndCRolePrivilege> dSet)
刷新部门自定义角色的权限
|
void |
refreshDepAndCRolePrivileges(java.lang.String roleName,
java.util.Set<RoleDepAndCRolePrivilege> dSet)
根绝角色名刷新自定义角色的部门/自定义角色权限
|
void |
refreshEntryPrivileges(long id,
int entryType,
long oldEntryID,
long newEntryID)
刷新Entry的权限
|
void |
refreshEntryPrivileges(long id,
java.util.Set<RoleEntryPrivilege> eSet)
刷新Entry的权限
|
void |
refreshEntryPrivileges(java.lang.String roleName,
java.util.Set<RoleEntryPrivilege> eSet)
根据角色名刷新Entry权限
|
void |
refreshESPrivileges(long id,
java.util.Set<RoleESPrivilege> eSet)
刷新ES权限
|
void |
refreshHomePagePrivileges(long id,
java.util.Set<RoleHomePagePrivilege> hSet)
刷新首页权限
|
void |
refreshHomePagePrivileges(java.lang.String roleName,
java.util.Set<RoleHomePagePrivilege> hSet)
刷新首页权限
|
void |
refreshModulePrivileges(long id,
java.util.Set<RoleModulePrivilege> mSet)
刷新Module的权限
|
void |
refreshModulePrivileges(java.lang.String roleName,
java.util.Set<RoleModulePrivilege> mSet)
根据角色名刷新Module权限
|
void |
refreshPrivilegesWithPlateName(long id,
java.util.Set<RelationObject> pSet,
java.lang.String plateName)
刷新Plate对应的权限
|
void |
refreshTemplatePrivileges(long id,
java.util.Set<RoleTemplatePrivilege> tSet)
根据角色ID刷新Template权限
|
void |
refreshTemplatePrivileges(java.lang.String roleName,
java.util.Set<RoleTemplatePrivilege> tSet)
根据角色名刷新Template权限
|
void |
removeCache(long customRoleId)
从缓存中删除指定ID的角色
|
void |
resetSortIndex()
重置排序索引
|
clearCache, getClassKey
boolean containCache(long customRoleId)
customRoleId
- 角色IDvoid buildCache() throws java.lang.Exception
buildCache
在接口中 CacheExecutor
java.lang.Exception
- 异常void rebuildCache() throws java.lang.Exception
rebuildCache
在接口中 CacheExecutor
java.lang.Exception
- 异常void cacheNew(CustomRole customRole) throws java.lang.Exception
customRole
- 自定义角色java.lang.Exception
- 缓存void cacheUpdate(CustomRole customRole) throws java.lang.Exception
customRole
- 自定义角色java.lang.Exception
- 缓存java.lang.String getSRoleName(long id)
void removeCache(long customRoleId)
customRoleId
- 角色IDjava.util.List<EntryTypeAndID> getAllEntryPrivileges(long id)
java.util.Set<RoleDataConnectionPrivilege> getAllDataConnectionPrivileges(long id)
java.util.List<RoleTemplatePrivilege> getAllTemplatePrivileges(long id)
java.util.List<java.lang.String> getAllDepAndCRolePrivilegeDescriptions(long id)
java.util.List<RoleDepAndCRolePrivilege> getAllDepAndCRolePrivileges(long id)
java.util.List getAllDepAndCRolePrivileges(long id, boolean toObj) throws JSONException
JSONException
java.util.List<java.lang.String> getAllESPrivilegeDescriptions(long id)
java.util.List<RoleModulePrivilege> getAllModulePrivileges(long id)
java.util.List<RoleHomePagePrivilege> getAllHomePagePrivileges(long id)
java.util.List<java.lang.String> getAllPrivilegesWithPlateName(long id, java.lang.String plateName)
java.util.List<CustomRole> getAllCustomRole()
void refreshCustomRoleName(long id, java.lang.String newName)
id
- 角色IDnewName
- 新的角色名void refreshModulePrivileges(long id, java.util.Set<RoleModulePrivilege> mSet)
id
- 角色IDmSet
- 新的Module权限void refreshModulePrivileges(java.lang.String roleName, java.util.Set<RoleModulePrivilege> mSet)
roleName
- 角色名mSet
- 新的Module权限void refreshHomePagePrivileges(long id, java.util.Set<RoleHomePagePrivilege> hSet)
id
- 角色IDhSet
- 新的首页权限void refreshHomePagePrivileges(java.lang.String roleName, java.util.Set<RoleHomePagePrivilege> hSet)
roleName
- 角色名hSet
- 新的首页权限void refreshPrivilegesWithPlateName(long id, java.util.Set<RelationObject> pSet, java.lang.String plateName)
id
- 角色IDpSet
- 新的plate权限信息plateName
- plate名称void refreshEntryPrivileges(long id, java.util.Set<RoleEntryPrivilege> eSet)
id
- 角色IDeSet
- 新的Entry权限void refreshEntryPrivileges(java.lang.String roleName, java.util.Set<RoleEntryPrivilege> eSet)
roleName
- 角色名eSet
- 新的Entry权限void refreshTemplatePrivileges(long id, java.util.Set<RoleTemplatePrivilege> tSet)
id
- 角色IDtSet
- 新的Template权限void refreshTemplatePrivileges(java.lang.String roleName, java.util.Set<RoleTemplatePrivilege> tSet)
roleName
- 角色名tSet
- 新的Template权限void refreshDepAndCRolePrivileges(long id, java.util.Set<RoleDepAndCRolePrivilege> dSet)
id
- 角色IDdSet
- 新的部门自定义角色权限void refreshDepAndCRolePrivileges(java.lang.String roleName, java.util.Set<RoleDepAndCRolePrivilege> dSet)
roleName
- 角色名dSet
- 新的部门/自定义角色权限void refreshDataConnectionPrivileges(long id, java.util.Set<RoleDataConnectionPrivilege> set)
id
- 角色IDset
- 新的数据连接权限void refreshDataConnectionPrivileges(java.lang.String roleName, java.util.Set<RoleDataConnectionPrivilege> set)
roleName
- 角色名set
- 新的数据连接权限void refreshESPrivileges(long id, java.util.Set<RoleESPrivilege> eSet)
id
- 角色IDeSet
- 新的ES权限boolean containModulePrivilege(long roleId, long moduleId)
roleId
- 角色IDmoduleId
- Module的IDboolean containHomePagePrivilege(long roleId, long homepageId)
roleId
- 角色IDhomepageId
- 首页IDboolean containPlatePrivilege(long roleId, long plateOBId, java.lang.String plateName)
roleId
- 角色IDplateOBId
- plate的IDplateName
- plate的名字boolean containEntryPrivilege(long roleId, int type, long entryId)
roleId
- 角色IDtype
- Entry类型entryId
- Entry的IDvoid refreshEntryPrivileges(long id, int entryType, long oldEntryID, long newEntryID)
id
- 角色IDentryType
- Entry的类型oldEntryID
- 老的EntryIdnewEntryID
- 新的EntryIdvoid resetSortIndex()