public interface ISecurityModule
extends smartbi.framework.IModule
限定符和类型 | 方法和说明 |
---|---|
void |
assertFunctionAccessible(FunctionType func) |
void |
assertResourceAccessible(ISecurityResource resource,
PurviewType type) |
<T extends ISecurityResource> |
filterResource(java.util.List<T> resources,
PurviewType type) |
java.util.List<FunctionType> |
getAccessibleFunctions(java.lang.String roleId) |
IResourcePermission |
getAllPermission(ISecurityResource resource)
包含getAssignedPermission, getInheritedPermission的全集
|
IResourcePermission |
getAssignedPermission(ISecurityResource resource) |
void |
grantFunctionAccessible(java.lang.String roleId,
java.util.List<FunctionType> func) |
void |
grantPermission(ISecurityResource resource,
IResourcePermission permssion) |
boolean |
isResourceAccessible(ISecurityResource resource,
PurviewType type) |
void |
updateOwner(ISecurityResource resource,
IAssignee owner) |
void assertFunctionAccessible(FunctionType func)
func
- java.util.List<FunctionType> getAccessibleFunctions(java.lang.String roleId)
roleId
- void grantFunctionAccessible(java.lang.String roleId, java.util.List<FunctionType> func)
roleId
- func
- <T extends ISecurityResource> java.util.List<T> filterResource(java.util.List<T> resources, PurviewType type)
T
- resources
- type
- boolean isResourceAccessible(ISecurityResource resource, PurviewType type)
resource
- type
- void assertResourceAccessible(ISecurityResource resource, PurviewType type)
resource
- type
- void grantPermission(ISecurityResource resource, IResourcePermission permssion)
resource
- permssion
- void updateOwner(ISecurityResource resource, IAssignee owner)
resource
- owner
- IResourcePermission getAssignedPermission(ISecurityResource resource)
resource
- IResourcePermission getAllPermission(ISecurityResource resource)
resource
-