public interface ConfigurableUserGroupProvider extends UserGroupProvider
| Modifier and Type | Method and Description |
|---|---|
Group |
addGroup(Group group)
Adds a new group.
|
User |
addUser(User user)
Adds the given user.
|
void |
checkInheritability(String proposedFingerprint)
When the fingerprints are not equal, this method will check if the proposed fingerprint is inheritable.
|
Group |
deleteGroup(Group group)
Deletes the given group.
|
User |
deleteUser(User user)
Deletes the given user.
|
void |
forciblyInheritFingerprint(String fingerprint)
Parses the fingerprint and determines whether or not the fingerprint can be inherited in the same manner as
inheritFingerprint(String). |
String |
getFingerprint()
Returns a fingerprint representing the authorizations managed by this authorizer.
|
void |
inheritFingerprint(String fingerprint)
Parses the fingerprint and adds any users and groups to the current Authorizer.
|
default boolean |
isConfigurable(Group group)
Determines whether the specified group is configurable.
|
default boolean |
isConfigurable(User user)
Determines whether the specified user is configurable.
|
Group |
updateGroup(Group group)
The group represented by the provided instance will be updated based on the provided instance.
|
User |
updateUser(User user)
The user represented by the provided instance will be updated based on the provided instance.
|
getGroup, getGroupByName, getGroups, getUser, getUserAndGroups, getUserByIdentity, getUsers, initialize, onConfigured, preDestructionString getFingerprint() throws AuthorizationAccessException
AuthorizationAccessException - if there was an unexpected error performing the operationvoid inheritFingerprint(String fingerprint) throws AuthorizationAccessException
fingerprint - the fingerprint that was obtained from calling getFingerprint() on another Authorizer.AuthorizationAccessException - if there was an unexpected error performing the operationvoid forciblyInheritFingerprint(String fingerprint) throws AuthorizationAccessException
inheritFingerprint(String). If so, will inherit as such.
Otherwise, a backup of the existing user group provider will be made, if possible, and the policies will be replaced with those in the given fingerprint.fingerprint - the fingerprint to replace the existing policies withAuthorizationAccessException - if unable to perform the operationvoid checkInheritability(String proposedFingerprint) throws AuthorizationAccessException, UninheritableAuthorizationsException
AuthorizationAccessException - if there was an unexpected error performing the operationUninheritableAuthorizationsException - if the proposed fingerprint was uninheritableUser addUser(User user) throws AuthorizationAccessException
user - the user to addAuthorizationAccessException - if there was an unexpected error performing the operationIllegalStateException - if there is already a user with the same identitydefault boolean isConfigurable(User user)
user - the userUser updateUser(User user) throws AuthorizationAccessException
user - an updated user instanceAuthorizationAccessException - if there was an unexpected error performing the operationIllegalStateException - if there is already a user with the same identityUser deleteUser(User user) throws AuthorizationAccessException
user - the user to deleteAuthorizationAccessException - if there was an unexpected error performing the operationGroup addGroup(Group group) throws AuthorizationAccessException
group - the Group to addAuthorizationAccessException - if there was an unexpected error performing the operationIllegalStateException - if a group with the same name already existsdefault boolean isConfigurable(Group group)
group - the groupGroup updateGroup(Group group) throws AuthorizationAccessException
group - an updated group instanceAuthorizationAccessException - if there was an unexpected error performing the operationIllegalStateException - if there is already a group with the same nameGroup deleteGroup(Group group) throws AuthorizationAccessException
group - the group to deleteAuthorizationAccessException - if there was an unexpected error performing the operationCopyright © 2023 Apache NiFi Project. All rights reserved.