public interface UserGroupProvider
| Modifier and Type | Method and Description |
|---|---|
Group |
getGroup(String identifier)
Retrieves a Group by id.
|
default Group |
getGroupByName(String name)
Retrieves a Group by name.
|
Set<Group> |
getGroups()
Retrieves all groups.
|
User |
getUser(String identifier)
Retrieves the user with the given identifier.
|
UserAndGroups |
getUserAndGroups(String identity)
Gets a user and their groups.
|
User |
getUserByIdentity(String identity)
Retrieves the user with the given identity.
|
Set<User> |
getUsers()
Retrieves all users.
|
void |
initialize(UserGroupProviderInitializationContext initializationContext)
Called immediately after instance creation for implementers to perform additional setup
|
void |
onConfigured(AuthorizerConfigurationContext configurationContext)
Called to configure the Authorizer.
|
void |
preDestruction()
Called immediately before instance destruction for implementers to release resources.
|
Set<User> getUsers() throws AuthorizationAccessException
AuthorizationAccessException - if there was an unexpected error performing the operationUser getUser(String identifier) throws AuthorizationAccessException
identifier - the id of the user to retrieveAuthorizationAccessException - if there was an unexpected error performing the operationUser getUserByIdentity(String identity) throws AuthorizationAccessException
identity - the identity of the user to retrieveAuthorizationAccessException - if there was an unexpected error performing the operationSet<Group> getGroups() throws AuthorizationAccessException
AuthorizationAccessException - if there was an unexpected error performing the operationGroup getGroup(String identifier) throws AuthorizationAccessException
identifier - the identifier of the Group to retrieveAuthorizationAccessException - if there was an unexpected error performing the operationdefault Group getGroupByName(String name) throws AuthorizationAccessException
name - the name of the group to retrieveAuthorizationAccessException - if there was an unexpected error performing the operationUserAndGroups getUserAndGroups(String identity) throws AuthorizationAccessException
AuthorizationAccessException - if there was an unexpected error performing the operationvoid initialize(UserGroupProviderInitializationContext initializationContext) throws AuthorizerCreationException
initializationContext - in which to initializeAuthorizerCreationExceptionvoid onConfigured(AuthorizerConfigurationContext configurationContext) throws AuthorizerCreationException
configurationContext - at the time of configurationAuthorizerCreationException - for any issues configuring the providervoid preDestruction()
throws AuthorizerDestructionException
AuthorizerDestructionException - If pre-destruction fails.Copyright © 2023 Apache NiFi Project. All rights reserved.