Package com.flowable.core.idm.api
Interface UserPermissionService
-
- All Known Implementing Classes:
GrantingUserPermissionService
public interface UserPermissionService
The permission service that can used to check permissions on actions to be executed in the context of a user like deactivation, reactivation, etc.- Author:
- Micha Kiener
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description Optional<String>
checkUserCreation(String userId, String userToCreateId)
Deprecated.Optional<String>
checkUserCreation(String userId, Collection<String> userGroupKeys, String userTenantId, String userToCreateId)
Evaluates the permissions for the given user when creating a new user.Optional<String>
checkUserDeactivation(String userId, String userToDeactivateId)
Deprecated.Optional<String>
checkUserDeactivation(String userId, Collection<String> userGroupKeys, String userTenantId, String userToDeactivateId)
Evaluates the permissions for the given user when deactivating a user.Optional<String>
checkUserReactivation(String userId, String userToReactivateId)
Deprecated.Optional<String>
checkUserReactivation(String userId, Collection<String> userGroupKeys, String userTenantId, String userToReactivateId)
-
-
-
Method Detail
-
checkUserCreation
@Deprecated Optional<String> checkUserCreation(String userId, String userToCreateId)
Deprecated.Evaluates the permissions for the given user when creating a new user.- Parameters:
userId
- the id of the user to check the permissions for (not the one being deactivated)userToCreateId
- the id of the new user to be created- Returns:
- the permission error message, if permission is denied to create the user or no message, if permission is granted
-
checkUserCreation
Optional<String> checkUserCreation(String userId, Collection<String> userGroupKeys, String userTenantId, String userToCreateId)
Evaluates the permissions for the given user when creating a new user.- Parameters:
userId
- the id of the user to check the permissions for (not the one being deactivated)userGroupKeys
- the group keys of the user to check the permissionsuserTenantId
- the tenant id of the user to check the permissionsuserToCreateId
- the id of the new user to be created- Returns:
- the permission error message, if permission is denied to create the user or no message, if permission is granted
-
checkUserDeactivation
@Deprecated Optional<String> checkUserDeactivation(String userId, String userToDeactivateId)
Deprecated.Evaluates the permissions for the given user when deactivating a user.- Parameters:
userId
- the id of the user to check the permissions for (not the one being deactivated)userToDeactivateId
- the id of the user to be deactivated- Returns:
- the permission error message, if permission is denied to deactivate the user or no message, if permission is granted
-
checkUserDeactivation
Optional<String> checkUserDeactivation(String userId, Collection<String> userGroupKeys, String userTenantId, String userToDeactivateId)
Evaluates the permissions for the given user when deactivating a user.- Parameters:
userId
- the id of the user to check the permissions for (not the one being deactivated)userGroupKeys
- the group keys of the user to check the permissionsuserTenantId
- the tenant id of the user to check the permissionsuserToDeactivateId
- the id of the user to be deactivated- Returns:
- the permission error message, if permission is denied to deactivate the user or no message, if permission is granted
-
checkUserReactivation
@Deprecated Optional<String> checkUserReactivation(String userId, String userToReactivateId)
Deprecated.Evaluates the permissions for the given user when reactivating a user.- Parameters:
userId
- the id of the user to check the permissions for (not the one being reactivated)userToReactivateId
- the id of the user to be reactivated- Returns:
- the permission error message, if permission is denied to reactivate the user or no message, if permission is granted
-
-