Concrete implementation of org. for a
UserDatabase.
| Modifier and Type | Field and Description |
|---|---|
| protected final UD | database
The |
| protected final CopyOnWriteArrayList | |
| protected final CopyOnWriteArrayList |
| Access | Constructor and Description |
|---|---|
| pack-priv | GenericUser(UD
The database, String UserDatabase that owns this userLogon username of the new user username, String Logon password of the new user password, String Full name of the new user fullName, List<Group> The groups of this user groups, List<Role> The roles of this user roles)Package-private constructor used by the factory method in
|
| Modifier and Type | Method and Description |
|---|---|
| public void | addGroup(Group
The new group group)Implements abstract org. Implements org. Add a new |
| public void | addRole(Role
The new role role)Implements abstract org. Implements org. Add a new |
| public boolean | equals(Object
Principal to compare with.Overrides java. Implements java. Compares this |
| public Iterator | getGroups()
Implements abstract org. Implements org. Return the set of |
| public Iterator | getRoles()
Implements abstract org. Implements org. Return the set of |
| public UserDatabase | getUserDatabase()
Implements org. Return the |
| public int | hashCode()
Overrides java. Implements java. Returns a hashcode for this |
| public boolean | isInGroup(Group
The group to check group)Implements abstract org. Implements org. Is this user in the specified group? |
| public boolean | isInRole(Role
The role to check role)Implements abstract org. Implements org. Is this user specifically assigned the specified |
| public void | removeGroup(Group
The old group group)Implements abstract org. Implements org. Remove a |
| public void | removeGroups()
Implements abstract org. Implements org. Remove all |
| public void | removeRole(Role
The old role role)Implements abstract org. Implements org. Remove a |
| public void | removeRoles()
Implements abstract org. Implements org. Remove all |
| public void | setFullName(String
The new full name fullName)Overrides org. Implements org. Set the full name of this user. |
| public void | setPassword(String
The new logon password password)Overrides org. Implements org. Set the logon password of this user, optionally prefixed with the
identifier of an encoding scheme surrounded by curly braces, such as
|
| public void | setUsername(String
The new logon username username)Overrides org. Implements org. Set the logon username of this user, which must be unique within
the scope of a |
| database | back to summary |
|---|---|
| protected final UD database The | |
| groups | back to summary |
|---|---|
| protected final CopyOnWriteArrayList<Group> groups The set of | |
| roles | back to summary |
|---|---|
| protected final CopyOnWriteArrayList<Role> roles The set of | |
| GenericUser | back to summary |
|---|---|
| pack-priv GenericUser(UD database, String username, String password, String fullName, List<Group> groups, List<Role> roles) Package-private constructor used by the factory method in
| |
| addGroup | back to summary |
|---|---|
| public void addGroup(Group group) Implements abstract org. Implements org. Add a new | |
| addRole | back to summary |
|---|---|
| public void addRole(Role role) Implements abstract org. Implements org. Add a new | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Implements java. Doc from java. Compares this | |
| getGroups | back to summary |
|---|---|
| public Iterator Implements abstract org. Implements org. Return the set of
| |
| getRoles | back to summary |
|---|---|
| public Iterator Implements abstract org. Implements org. Return the set of
| |
| getUserDatabase | back to summary |
|---|---|
| public UserDatabase getUserDatabase() Implements org. Return the
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Implements java. Doc from java. Returns a hashcode for this
| |
| isInGroup | back to summary |
|---|---|
| public boolean isInGroup(Group group) Implements abstract org. Implements org. Is this user in the specified group?
| |
| isInRole | back to summary |
|---|---|
| public boolean isInRole(Role role) Implements abstract org. Implements org. Is this user specifically assigned the specified
| |
| removeGroup | back to summary |
|---|---|
| public void removeGroup(Group group) Implements abstract org. Implements org. Remove a | |
| removeGroups | back to summary |
|---|---|
| public void removeGroups() Implements abstract org. Implements org. Remove all
| |
| removeRole | back to summary |
|---|---|
| public void removeRole(Role role) Implements abstract org. Implements org. Remove a | |
| removeRoles | back to summary |
|---|---|
| public void removeRoles() Implements abstract org. Implements org. Remove all
| |
| setFullName | back to summary |
|---|---|
| public void setFullName(String fullName) Overrides org. Implements org. Doc from org. Set the full name of this user. | |
| setPassword | back to summary |
|---|---|
| public void setPassword(String password) Overrides org. Implements org. Doc from org. Set the logon password of this user, optionally prefixed with the
identifier of an encoding scheme surrounded by curly braces, such as
| |
| setUsername | back to summary |
|---|---|
| public void setUsername(String username) Overrides org. Implements org. Doc from org. Set the logon username of this user, which must be unique within
the scope of a | |