Interface PermissionServiceRegistry
- All Known Implementing Classes:
PermissionServiceRegistryImpl
public interface PermissionServiceRegistry
A global service that can be used to invoke
PermissionService
of different
scope type. This registry can be used by different PermissionService
(s)
that need to check access to their different parent scope types.- Author:
- Filip Hrisafov
-
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) default void
validatePermissionForHistoricScope
(String permission, String scopeId, String scopeType, String userId, Set<String> groupKeys, String tenantId) default void
validatePermissionForRuntimeScope
(String permission, String scopeId, String scopeType, String userId, Set<String> groupKeys, String tenantId) default void
validatePermissionForScope
(String permission, String scopeId, String scopeType, String userId, Set<String> groupKeys, String tenantId) default void
validateReadPermissionOnScopeDefinition
(String scopeDefinitionId, String scopeDefinitionKey, String scopeType, String userId, Set<String> groupKeys, String tenantId)
-
Method Details
-
validatePermissionForScope
-
hasPermissionForScope
-
validatePermissionForRuntimeScope
-
hasPermissionForRuntimeScope
-
fetchPermissionsForRuntimeScope
-
fetchPermissionsForRuntimeScope
-
validatePermissionForHistoricScope
-
hasPermissionForHistoricScope
-
fetchPermissionsForHistoricScope
-
fetchPermissionsForHistoricScope
-
validateReadPermissionOnScopeDefinition
-
hasReadPermissionOnScopeDefinition
-
getPermissionService
-