Class PermissionServiceRegistryImpl
java.lang.Object
com.flowable.platform.security.permission.PermissionServiceRegistryImpl
- All Implemented Interfaces:
PermissionServiceRegistry
,BeanPostProcessor
public class PermissionServiceRegistryImpl
extends Object
implements BeanPostProcessor, PermissionServiceRegistry
- Author:
- Filip Hrisafov
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfetchPermissionsForHistoricScope
(String scopeId, String scopeType, boolean checkWritePermissionInParent, String userId, Set<String> groupKeys, String tenantId) fetchPermissionsForHistoricScope
(String scopeId, String scopeType, String userId, Set<String> groupKeys, String tenantId) fetchPermissionsForRuntimeScope
(String scopeId, String scopeType, boolean checkWritePermissionInParent, String userId, Set<String> groupKeys, String tenantId) fetchPermissionsForRuntimeScope
(String scopeId, String scopeType, String userId, Set<String> groupKeys, String tenantId) getPermissionService
(String scopeType) boolean
hasPermissionForHistoricScope
(String permission, String scopeId, String scopeType, String userId, Set<String> groupKeys, String tenantId) boolean
hasPermissionForRuntimeScope
(String permission, String scopeId, String scopeType, String userId, Set<String> groupKeys, String tenantId) boolean
hasPermissionForScope
(String permission, String scopeId, String scopeType, String userId, Set<String> groupKeys, String tenantId) boolean
hasReadPermissionOnScopeDefinition
(String scopeDefinitionId, String scopeDefinitionKey, String scopeType, String userId, Set<String> groupKeys, String tenantId) postProcessAfterInitialization
(Object bean, String beanName) postProcessBeforeInitialization
(Object bean, String beanName) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.flowable.platform.security.permission.PermissionServiceRegistry
validatePermissionForHistoricScope, validatePermissionForRuntimeScope, validatePermissionForScope, validateReadPermissionOnScopeDefinition
-
Field Details
-
permissionServiceMap
-
-
Constructor Details
-
PermissionServiceRegistryImpl
public PermissionServiceRegistryImpl()
-
-
Method Details
-
hasPermissionForScope
public boolean hasPermissionForScope(String permission, String scopeId, String scopeType, String userId, Set<String> groupKeys, String tenantId) - Specified by:
hasPermissionForScope
in interfacePermissionServiceRegistry
-
hasPermissionForRuntimeScope
public boolean hasPermissionForRuntimeScope(String permission, String scopeId, String scopeType, String userId, Set<String> groupKeys, String tenantId) - Specified by:
hasPermissionForRuntimeScope
in interfacePermissionServiceRegistry
-
fetchPermissionsForRuntimeScope
public List<String> fetchPermissionsForRuntimeScope(String scopeId, String scopeType, String userId, Set<String> groupKeys, String tenantId) - Specified by:
fetchPermissionsForRuntimeScope
in interfacePermissionServiceRegistry
-
fetchPermissionsForRuntimeScope
public List<String> fetchPermissionsForRuntimeScope(String scopeId, String scopeType, boolean checkWritePermissionInParent, String userId, Set<String> groupKeys, String tenantId) - Specified by:
fetchPermissionsForRuntimeScope
in interfacePermissionServiceRegistry
-
hasPermissionForHistoricScope
public boolean hasPermissionForHistoricScope(String permission, String scopeId, String scopeType, String userId, Set<String> groupKeys, String tenantId) - Specified by:
hasPermissionForHistoricScope
in interfacePermissionServiceRegistry
-
fetchPermissionsForHistoricScope
public List<String> fetchPermissionsForHistoricScope(String scopeId, String scopeType, String userId, Set<String> groupKeys, String tenantId) - Specified by:
fetchPermissionsForHistoricScope
in interfacePermissionServiceRegistry
-
fetchPermissionsForHistoricScope
public List<String> fetchPermissionsForHistoricScope(String scopeId, String scopeType, boolean checkWritePermissionInParent, String userId, Set<String> groupKeys, String tenantId) - Specified by:
fetchPermissionsForHistoricScope
in interfacePermissionServiceRegistry
-
hasReadPermissionOnScopeDefinition
public boolean hasReadPermissionOnScopeDefinition(String scopeDefinitionId, String scopeDefinitionKey, String scopeType, String userId, Set<String> groupKeys, String tenantId) - Specified by:
hasReadPermissionOnScopeDefinition
in interfacePermissionServiceRegistry
-
getPermissionService
- Specified by:
getPermissionService
in interfacePermissionServiceRegistry
-
postProcessBeforeInitialization
- Specified by:
postProcessBeforeInitialization
in interfaceBeanPostProcessor
- Throws:
BeansException
-
postProcessAfterInitialization
- Specified by:
postProcessAfterInitialization
in interfaceBeanPostProcessor
- Throws:
BeansException
-