Interface User


public interface User
This interface represents a user.
  • Method Details

    • getUsername

      String getUsername()
      Get the username.
      Returns:
      The username.
    • getGroups

      List<Group> getGroups()
      Get the groups. If the user has no group, this method returns an empty list.
      Returns:
      The groups.
    • getGroup

      Group getGroup(String name)
      Get the group with the specified name. If such group does not exist, this method returns NULL.
      Parameters:
      name - The group name.
      Returns:
      The group.
    • getAttributes

      List<Attribute> getAttributes()
      Get the attributes. If the user has no attribute, this method returns an empty list.
      Returns:
      The attributes.
    • getAttribute

      Attribute getAttribute(String name)
      Get the attribute with the specified name. If such attribute does not exist, this method returns NULL.
      Parameters:
      name - The attribute name.
      Returns:
      The attribute.