Interface User
public interface User
This interface represents a user.
-
Method Summary
Modifier and TypeMethodDescriptiongetAttribute
(String name) Get the attribute with the specified name.Get the attributes.Get the group with the specified name.Get the groups.Get the username.
-
Method Details
-
getUsername
String getUsername()Get the username.- Returns:
- The username.
-
getGroups
Get the groups. If the user has no group, this method returns an empty list.- Returns:
- The groups.
-
getGroup
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
Get the attributes. If the user has no attribute, this method returns an empty list.- Returns:
- The attributes.
-
getAttribute
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.
-