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 Details

    • getAccessPolicy

      AccessPolicy getAccessPolicy(String resourceIdentifier, RequestAction action)
      Retrieves the set of access policies for a given resource and action.
      Parameters:
      resourceIdentifier - the resource identifier to retrieve policies for
      action - the action to retrieve policies for
      Returns:
      the access policy for the given resource and action
    • getUser

      User getUser(String identity)
      Retrieves a user by an identity string.
      Parameters:
      identity - the identity of the user to retrieve
      Returns:
      the user with the given identity
    • getGroups

      Set<Group> getGroups(String userIdentity)
      Retrieves the groups for a given user identity.
      Parameters:
      userIdentity - a user identity
      Returns:
      the set of groups for the given user identity