public class AuthorityService
extends java.lang.Object
构造器和说明 |
---|
AuthorityService() |
限定符和类型 | 方法和说明 |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getAuthorityCarrierByEntity(PrivilegeOperator privilegeOperator)
获取权限对应的权限载体,即权限对应的部门/角色/用户(可见区域)
|
java.util.Map<java.lang.String,java.lang.Object> |
getAuthorityCarrierByEntity(java.lang.String entityId,
java.lang.String carrierType)
已过时。
|
AuthorityConfigBean |
getAuthorityConfig()
获取权限全局设置项
|
java.util.Map<java.lang.String,java.lang.Object> |
getAuthorityEntityByCarrier(PrivilegeOperator privilegeOperator)
获取权限载体的权限,即部门/角色/用户含有的所有权限(内部,外部都可查询)
|
java.util.Map<java.lang.String,java.lang.Object> |
getAuthorityEntityByCarrier(java.lang.String carrierType,
java.lang.String carrierId)
已过时。
|
java.util.Map<java.lang.String,java.lang.Object> |
getExternalAuthorityCarrierByEntity(java.lang.String entityId,
java.lang.String carrierType,
java.lang.String externalType)
已过时。
|
java.util.Map<java.lang.String,java.lang.Object> |
getExternalAuthorityEntityByCarrier(java.lang.String carrierType,
java.lang.String carrierId,
java.lang.String externalType)
已过时。
|
static AuthorityService |
getInstance() |
java.util.List<PreferenceConfigBean> |
getPreferenceConfig(User user)
获取个人偏好设置项
|
void |
setAuthorityConfig(AuthorityConfigBean authorityConfig)
设置权限全局设置项
|
void |
setAuthorityReuse(java.lang.String userId,
ReuseBean reuseBean)
权限复用
|
void |
setPreferenceConfig(java.lang.String currentUserId,
int type,
PreferenceConfigBean preferenceConfig)
设置个人偏好设置项
|
void |
updateAuthorityEntityByCarrier(java.lang.String currentUserId,
java.lang.String carrierType,
java.lang.String carrierId,
PrivilegeBean privilegeBean,
java.lang.String externalType)
更新权限载体的权限,即部门/角色/用户的权限
|
void |
updateCarrierAuthorityByEntity(java.lang.String currentUserId,
java.lang.String carrierType,
java.lang.String entityId,
PrivilegeBean privilegeBean,
java.lang.String externalType)
更新权限对应的权限载体,即权限对应的部门/角色/用户
|
public static AuthorityService getInstance()
@Deprecated public java.util.Map<java.lang.String,java.lang.Object> getAuthorityEntityByCarrier(java.lang.String carrierType, java.lang.String carrierId) throws java.lang.Exception
carrierType
- 权限载体类型:部门职位/角色/用户carrierId
- 权限载体IDjava.lang.Exception
- 异常public java.util.Map<java.lang.String,java.lang.Object> getAuthorityEntityByCarrier(PrivilegeOperator privilegeOperator) throws java.lang.Exception
privilegeOperator
- 查询对象java.lang.Exception
- 结果@Deprecated public java.util.Map<java.lang.String,java.lang.Object> getExternalAuthorityEntityByCarrier(java.lang.String carrierType, java.lang.String carrierId, java.lang.String externalType) throws java.lang.Exception
carrierType
- 权限载体类型:部门职位/角色/用户carrierId
- 权限载体IDexternalType
- 外部权限类型java.lang.Exception
- 异常public void updateAuthorityEntityByCarrier(java.lang.String currentUserId, java.lang.String carrierType, java.lang.String carrierId, PrivilegeBean privilegeBean, java.lang.String externalType) throws java.lang.Exception
currentUserId
- 当前操作的用户IDcarrierType
- 权限载体类型:部门职位/角色/用户carrierId
- 权限载体IDprivilegeBean
- 前端权限对象,内含ID为权限实体IDexternalType
- 外部权限类型java.lang.Exception
- 异常public java.util.Map<java.lang.String,java.lang.Object> getAuthorityCarrierByEntity(PrivilegeOperator privilegeOperator) throws java.lang.Exception
privilegeOperator
- 查询对象java.lang.Exception
- 异常@Deprecated public java.util.Map<java.lang.String,java.lang.Object> getAuthorityCarrierByEntity(java.lang.String entityId, java.lang.String carrierType) throws java.lang.Exception
entityId
- 权限实体IDcarrierType
- 权限载体类型java.lang.Exception
- 异常@Deprecated public java.util.Map<java.lang.String,java.lang.Object> getExternalAuthorityCarrierByEntity(java.lang.String entityId, java.lang.String carrierType, java.lang.String externalType) throws java.lang.Exception
entityId
- 权限实体IDcarrierType
- 权限载体类型externalType
- 外部权限载体类型java.lang.Exception
- 异常public void updateCarrierAuthorityByEntity(java.lang.String currentUserId, java.lang.String carrierType, java.lang.String entityId, PrivilegeBean privilegeBean, java.lang.String externalType) throws java.lang.Exception
currentUserId
- 当前操作用户IDcarrierType
- 权限载体类型entityId
- 权限实体IDprivilegeBean
- 前端权限对象,内含ID为权限载体IDjava.lang.Exception
- 异常public void setAuthorityReuse(java.lang.String userId, ReuseBean reuseBean) throws java.lang.Exception
reuseBean
- 复用属性java.lang.Exception
- 异常public java.util.List<PreferenceConfigBean> getPreferenceConfig(User user) throws java.lang.Exception
user
- 用户java.lang.Exception
- 异常public void setPreferenceConfig(java.lang.String currentUserId, int type, PreferenceConfigBean preferenceConfig) throws java.lang.Exception
currentUserId
- 用户idtype
- 类型preferenceConfig
- 个人偏好设置项java.lang.Exception
- 异常public AuthorityConfigBean getAuthorityConfig() throws java.lang.Exception
java.lang.Exception
- 异常public void setAuthorityConfig(AuthorityConfigBean authorityConfig) throws java.lang.Exception
authorityConfig
- 权限全局设置项java.lang.Exception
- 异常