public interface CompanyRoleExecutor extends CacheExecutor
限定符和类型 | 方法和说明 |
---|---|
void |
cacheNew(CompanyRole companyRole)
对部门角色缓存
|
boolean |
containCache(long companyRoleId)
缓存中是否包含ID为companyRoleId的角色
|
boolean |
containEntryPrivilege(long roleId,
int type,
long entryId)
角色是否包含报表的权限
|
boolean |
containHomePagePrivilege(long roleId,
long homepageId)
角色是否包含首页的权限
|
boolean |
containModulePrivilege(long roleId,
long moduleId)
角色是否包含模块的权限
|
boolean |
containPlatePrivilege(long roleId,
long id,
java.lang.String plateName)
角色是否包含plate的权限
|
java.util.List<CompanyRole> |
getAllCompanyRole()
获取所有的部门角色
|
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<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 |
getAllPrivilegesWithPlateName(long id,
java.lang.String plateName) |
java.util.List<RoleTemplatePrivilege> |
getAllTemplatePrivileges(long id) |
void |
refreshDataConnectionPrivileges(long id,
java.util.Set<RoleDataConnectionPrivilege> set)
刷新数据连接权限
|
void |
refreshDepAndCrolePrivileges(long id,
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 |
refreshESPrivileges(long id,
java.util.Set<RoleESPrivilege> eSet)
刷新ES权限
|
void |
refreshHomePagePrivileges(long id,
java.util.Set<RoleHomePagePrivilege> hSet)
刷新首页权限
|
void |
refreshModulePrivileges(long id,
java.util.Set<RoleModulePrivilege> mSet)
刷新模块权限
|
void |
refreshPrivilegesWithPlateName(long id,
java.util.Set<RelationObject> pSet,
java.lang.String plateName)
刷新Plate权限信息
|
void |
refreshTemplatePrivileges(long id,
java.util.Set<RoleTemplatePrivilege> mSet)
刷新模板权限
|
void |
removeCache(long companyRoleId)
删除ID为companyRoleId的角色的缓存
|
buildCache, clearCache, getClassKey, rebuildCache
boolean containCache(long companyRoleId)
companyRoleId
- 角色IDvoid cacheNew(CompanyRole companyRole) throws java.lang.Exception
companyRole
- 部门角色java.lang.Exception
- 异常void removeCache(long companyRoleId)
companyRoleId
- 角色IDjava.util.List<EntryTypeAndID> getAllEntryPrivileges(long id)
java.util.List<java.lang.String> getAllESPrivilegeDescriptions(long id)
java.util.List<RoleModulePrivilege> getAllModulePrivileges(long id)
java.util.List<CompanyRole> getAllCompanyRole()
java.lang.Exception
java.util.List<RoleHomePagePrivilege> getAllHomePagePrivileges(long id)
id
- 角色IDjava.util.List<RoleTemplatePrivilege> getAllTemplatePrivileges(long id)
java.util.Set<RoleDataConnectionPrivilege> getAllDataConnectionPrivileges(long id)
java.util.List<RoleDepAndCRolePrivilege> getAllDepAndCRolePrivileges(long id)
java.util.List<java.lang.String> getAllDepAndCRolePrivilegeDescriptions(long id)
java.util.List getAllPrivilegesWithPlateName(long id, java.lang.String plateName)
boolean containModulePrivilege(long roleId, long moduleId)
roleId
- 角色IDmoduleId
- 模块IDboolean containHomePagePrivilege(long roleId, long homepageId)
roleId
- 角色IDhomepageId
- 首页IDboolean containEntryPrivilege(long roleId, int type, long entryId)
roleId
- 角色IDtype
- 报表类型entryId
- 报表IDboolean containPlatePrivilege(long roleId, long id, java.lang.String plateName)
roleId
- 角色IDid
- plate的IDplateName
- plate的名称void refreshModulePrivileges(long id, java.util.Set<RoleModulePrivilege> mSet)
id
- 角色IDmSet
- 新的权限信息void refreshHomePagePrivileges(long id, java.util.Set<RoleHomePagePrivilege> hSet)
id
- 角色IDhSet
- 新的首页权限void refreshTemplatePrivileges(long id, java.util.Set<RoleTemplatePrivilege> mSet)
id
- 角色IDmSet
- 新的模板权限信息void refreshEntryPrivileges(long id, java.util.Set<RoleEntryPrivilege> eSet)
id
- 角色IDeSet
- 新的Entry权限信息void refreshDepAndCrolePrivileges(long id, java.util.Set<RoleDepAndCRolePrivilege> dSet)
id
- 角色IDdSet
- 新的部门角色权限信息void refreshDataConnectionPrivileges(long id, java.util.Set<RoleDataConnectionPrivilege> set)
id
- 角色IDset
- 新的数据连接权限void refreshESPrivileges(long id, java.util.Set<RoleESPrivilege> eSet)
id
- 角色IDeSet
- 新的ES权限信息void refreshPrivilegesWithPlateName(long id, java.util.Set<RelationObject> pSet, java.lang.String plateName)
id
- 角色IDpSet
- 新的plate权限信息plateName
- plate名字void refreshEntryPrivileges(long id, int entryType, long oldEntryID, long newEntryID)
id
- 角色IDentryType
- entry的类型oldEntryID
- 老的EntryIDnewEntryID
- 新的EntryID