Interface User
-
public interface User
This interface represents a user.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Attribute
getAttribute(java.lang.String name)
Get the attribute with the specified name.java.util.List<Attribute>
getAttributes()
Get the attributes.Group
getGroup(java.lang.String name)
Get the group with the specified name.java.util.List<Group>
getGroups()
Get the groups.java.lang.String
getUsername()
Get the username.
-
-
-
Method Detail
-
getUsername
java.lang.String getUsername()
Get the username.- Returns:
- The username.
-
getGroups
java.util.List<Group> getGroups()
Get the groups. If the user has no group, this method returns an empty list.- Returns:
- The groups.
-
getGroup
Group getGroup(java.lang.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
java.util.List<Attribute> getAttributes()
Get the attributes. If the user has no attribute, this method returns an empty list.- Returns:
- The attributes.
-
getAttribute
Attribute getAttribute(java.lang.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.
-
-