public class GrantingUserPermissionService extends Object implements UserPermissionService
| Constructor and Description |
|---|
GrantingUserPermissionService() |
| Modifier and Type | Method and Description |
|---|---|
Optional<String> |
checkUserCreation(String userId,
String userToCreateId)
Evaluates the permissions for the given user when creating a new user.
|
Optional<String> |
checkUserDeactivation(String userId,
String userToDeactivateId)
Evaluates the permissions for the given user when deactivating a user.
|
Optional<String> |
checkUserReactivation(String userId,
String userToReactivateId)
Evaluates the permissions for the given user when reactivating a user.
|
public Optional<String> checkUserCreation(String userId, String userToCreateId)
UserPermissionServicecheckUserCreation in interface UserPermissionServiceuserId - 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> checkUserDeactivation(String userId, String userToDeactivateId)
UserPermissionServicecheckUserDeactivation in interface UserPermissionServiceuserId - 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> checkUserReactivation(String userId, String userToReactivateId)
UserPermissionServicecheckUserReactivation in interface UserPermissionServiceuserId - the id of the user to check the permissions for (not the one being reactivated)userToReactivateId - the id of the user to be reactivatedCopyright © 2019. All rights reserved.