Users and Groups
that can be maintained by an application, along with definitions of
corresponding Roles, and referenced by a Realm for
authentication and access control.
| Modifier and Type | Method and Description |
|---|---|
| public default void | backgroundProcess()
Perform any background processing (e.g. checking for changes in persisted storage) required for the user database. |
| public void | |
| public Group | Returns: The new groupThe group name of the new group (must be unique) groupname, String The description of this group description)Create and return a new |
| public Role | Returns: The new roleThe role name of the new role (must be unique) rolename, String The description of this role description)Create and return a new |
| public User | Returns: The new userThe logon username of the new user (must be unique) username, String The logon password of the new user password, String The full name of the new user fullName)Create and return a new |
| public Group | |
| public Role | |
| public User | |
| public Iterator | |
| public String | |
| public Iterator | |
| public Iterator | |
| public default boolean | |
| public default boolean | |
| public default void | modifiedGroup(Group
The group that has been modified group)Signal the specified |
| public default void | modifiedRole(Role
The role that has been modified role)Signal the specified |
| public default void | modifiedUser(User
The user that has been modified user)Signal the specified |
| public void | |
| public void | |
| public void | |
| public void | |
| public void |
| backgroundProcess | back to summary |
|---|---|
| public default void backgroundProcess() Perform any background processing (e.g. checking for changes in persisted storage) required for the user database. | |
| close | back to summary |
|---|---|
| public void close() throws Exception Finalize access to this user database.
| |
| createGroup | back to summary |
|---|---|
| public Group createGroup(String groupname, String description) Create and return a new | |
| createRole | back to summary |
|---|---|
| public Role createRole(String rolename, String description) Create and return a new | |
| createUser | back to summary |
|---|---|
| public User createUser(String username, String password, String fullName) Create and return a new | |
| findGroup | back to summary |
|---|---|
| public Group findGroup(String groupname) | |
| findRole | back to summary |
|---|---|
| public Role findRole(String rolename) | |
| findUser | back to summary |
|---|---|
| public User findUser(String username) | |
| getGroups | back to summary |
|---|---|
| public Iterator | |
| getId | back to summary |
|---|---|
public String getId()
| |
| getRoles | back to summary |
|---|---|
| public Iterator | |
| getUsers | back to summary |
|---|---|
| public Iterator | |
| isAvailable | back to summary |
|---|---|
| public default boolean isAvailable() Is the database available.
| |
| isSparse | back to summary |
|---|---|
| public default boolean isSparse() Is the database data loaded on demand. This is used to avoid eager loading of the full database data, for example for JMX registration of all objects.
| |
| modifiedGroup | back to summary |
|---|---|
| public default void modifiedGroup(Group group) Signal the specified
| |
| modifiedRole | back to summary |
|---|---|
| public default void modifiedRole(Role role) Signal the specified
| |
| modifiedUser | back to summary |
|---|---|
| public default void modifiedUser(User user) Signal the specified
| |
| open | back to summary |
|---|---|
| public void open() throws Exception Initialize access to this user database.
| |
| removeGroup | back to summary |
|---|---|
| public void removeGroup(Group group) Remove the specified
| |
| removeRole | back to summary |
|---|---|
| public void removeRole(Role role) Remove the specified
| |
| removeUser | back to summary |
|---|---|
| public void removeUser(User user) Remove the specified
| |
| save | back to summary |
|---|---|
| public void save() throws Exception Save any updated information to the persistent storage location for this user database.
| |