Package org.apache.nifi.authorization
Interface UsersAndAccessPolicies
public interface UsersAndAccessPolicies
A holder object to provide atomic access to policies for a given resource and users by
identity. Implementations must ensure consistent access to the data backing this instance.
-
Method Summary
Modifier and TypeMethodDescriptiongetAccessPolicy
(String resourceIdentifier, RequestAction action) Retrieves the set of access policies for a given resource and action.Retrieves the groups for a given user identity.Retrieves a user by an identity string.
-
Method Details
-
getAccessPolicy
Retrieves the set of access policies for a given resource and action.- Parameters:
resourceIdentifier
- the resource identifier to retrieve policies foraction
- the action to retrieve policies for- Returns:
- the access policy for the given resource and action
-
getUser
Retrieves a user by an identity string.- Parameters:
identity
- the identity of the user to retrieve- Returns:
- the user with the given identity
-
getGroups
Retrieves the groups for a given user identity.- Parameters:
userIdentity
- a user identity- Returns:
- the set of groups for the given user identity
-