Interface UserAndGroups


public interface UserAndGroups
A holder object to provide atomic access to a user and their groups.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final UserAndGroups
    A static, immutable, empty implementation of the UserAndGroups interface.
  • Method Summary

    Modifier and Type
    Method
    Description
    Retrieves the groups for the user, or null if the user is unknown or has no groups.
    Retrieves the user, or null if the user is unknown
  • Field Details

    • EMPTY

      static final UserAndGroups EMPTY
      A static, immutable, empty implementation of the UserAndGroups interface.
  • Method Details

    • getUser

      User getUser()
      Retrieves the user, or null if the user is unknown
      Returns:
      the user with the given identity
    • getGroups

      Set<Group> getGroups()
      Retrieves the groups for the user, or null if the user is unknown or has no groups.
      Returns:
      the set of groups for the given user identity