public class GrantingUserPermissionService extends Object implements UserPermissionService
Constructor and Description |
---|
GrantingUserPermissionService() |
Modifier and Type | Method and Description |
---|---|
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> |
checkUserCreation(String userId,
String userToCreateId)
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> |
checkUserDeactivation(String userId,
String userToDeactivateId)
Deprecated.
|
Optional<String> |
checkUserReactivation(String userId,
Collection<String> userGroupKeys,
String userTenantId,
String userToReactivateId) |
Optional<String> |
checkUserReactivation(String userId,
String userToReactivateId)
Evaluates the permissions for the given user when reactivating a user.
|
@Deprecated public Optional<String> checkUserCreation(String userId, String userToCreateId)
UserPermissionService
checkUserCreation
in interface UserPermissionService
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 createdpublic Optional<String> checkUserCreation(String userId, Collection<String> userGroupKeys, String userTenantId, String userToCreateId)
UserPermissionService
checkUserCreation
in interface UserPermissionService
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@Deprecated public Optional<String> checkUserDeactivation(String userId, String userToDeactivateId)
UserPermissionService
checkUserDeactivation
in interface UserPermissionService
userId
- the id of the user to check the permissions for (not the one being deactivated)userToDeactivateId
- the id of the user to be deactivatedpublic Optional<String> checkUserDeactivation(String userId, Collection<String> userGroupKeys, String userTenantId, String userToDeactivateId)
UserPermissionService
checkUserDeactivation
in interface UserPermissionService
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 deactivatedpublic Optional<String> checkUserReactivation(String userId, String userToReactivateId)
UserPermissionService
checkUserReactivation
in interface UserPermissionService
userId
- the id of the user to check the permissions for (not the one being reactivated)userToReactivateId
- the id of the user to be reactivatedpublic Optional<String> checkUserReactivation(String userId, Collection<String> userGroupKeys, String userTenantId, String userToReactivateId)
checkUserReactivation
in interface UserPermissionService