| Modifier and Type | Field and Description |
|---|---|
| private volatile boolean | connectionSuccess
Last connection attempt. |
| protected final ConcurrentHashMap | |
| protected final ConcurrentHashMap | |
| protected final ConcurrentHashMap | |
| protected final DataSource | dataSource
DataSource to use. |
| protected String | dataSourceName
The name of the JNDI JDBC DataSource |
| private final ReentrantReadWriteLock | |
| private final Lock | |
| private final Lock | |
| protected String | groupNameCol
The column in the user group table that names a group |
| protected String | groupRoleTable
The table that holds the relation between groups and roles |
| private final ReentrantReadWriteLock | |
| private final Lock | |
| private final Lock | |
| protected String | groupTable
The table that holds user data. |
| protected final String | id
The unique global identifier of this user database. |
| private static final Log | |
| protected final ConcurrentHashMap | |
| protected final ConcurrentHashMap | |
| protected final ConcurrentHashMap | |
| private String | preparedAllGroups
The generated string for the all groups PreparedStatement |
| private String | preparedAllRoles
The generated string for the all roles PreparedStatement |
| private String | preparedAllUsers
The generated string for the all users PreparedStatement |
| private String | preparedGroup
The generated string for the group PreparedStatement |
| private String | preparedGroupRoles
The generated string for the groups PreparedStatement |
| private String | preparedRole
The generated string for the role PreparedStatement |
| private String | preparedUser
The generated string for the user PreparedStatement |
| private String | preparedUserGroups
The generated string for the groups PreparedStatement |
| private String | preparedUserRoles
The generated string for the roles PreparedStatement |
| protected boolean | readonly
A flag, indicating if the user database is read only. |
| protected final ConcurrentHashMap | |
| protected final ConcurrentHashMap | |
| protected final ConcurrentHashMap | |
| protected String | roleAndGroupDescriptionCol
The column in the role and group tables for the description |
| protected String | roleNameCol
The column in the user role table that names a role |
| private final ReentrantReadWriteLock | |
| private final Lock | |
| private final Lock | |
| protected String | roleTable
The table that holds user data. |
| private static final StringManager | |
| protected String | userCredCol
The column in the user table that holds the user's credentials |
| protected String | userFullNameCol
The column in the user table that holds the user's full name |
| protected String | userGroupTable
The table that holds the relation between users and groups |
| protected String | userNameCol
The column in the user table that holds the user's name |
| protected String | userRoleTable
The table that holds the relation between users and roles |
| private final ReentrantReadWriteLock | |
| private final Lock | |
| private final Lock | |
| protected String | userTable
The table that holds user data. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| protected void | closeConnection(Connection
The connection to be closed dbConnection)Close the specified database connection. |
| public Group | createGroup(String
The group name of the new group (must be unique) groupname, String The description of this group description)Implements org. Create and return a new |
| public Role | createRole(String
The role name of the new role (must be unique) rolename, String The description of this role description)Implements org. Create and return a new |
| public User | createUser(String
The 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)Implements org. Create and return a new |
| public Group | findGroup(String
Name of the group to return groupname)Implements org.
|
| public Group | |
| public Role | findRole(String
Name of the role to return rolename)Implements org.
|
| public Role | |
| public User | findUser(String
Name of the user to return username)Implements org.
|
| public User | |
| public String | |
| public String | |
| public String | |
| public Iterator | |
| public String | |
| public String | |
| public boolean | |
| public String | |
| public String | |
| public Iterator | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public String | |
| public Iterator | |
| public String | |
| public boolean | isAvailable()
Overrides default org. Is the database available. |
| protected boolean | Returns: true when groups are usedOnly use groups if the tables are fully defined. |
| protected boolean | Returns: true when roles are usedOnly use roles if the tables are fully defined. |
| public void | modifiedGroup(Group
The group that has been modified group)Overrides default org. Signal the specified |
| public void | modifiedRole(Role
The role that has been modified role)Overrides default org. Signal the specified |
| public void | modifiedUser(User
The user that has been modified user)Overrides default org. Signal the specified |
| public void | |
| protected Connection | |
| public void | removeGroup(Group
The group to be removed group)Implements org. Remove the specified |
| public void | removeRole(Role
The role to be removed role)Implements org. Remove the specified |
| public void | removeUser(User
The user to be removed user)Implements org. Remove the specified |
| public void | save()
Implements org. Save any updated information to the persistent storage location for this user database. |
| protected void | |
| public void | setDataSourceName(String
the name of the JNDI JDBC DataSource dataSourceName)Set the name of the JNDI JDBC DataSource. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setRoleAndGroupDescriptionCol(String
the roleAndGroupDescriptionCol to set roleAndGroupDescriptionCol)
|
| public void | setRoleNameCol(String
The column name roleNameCol)Set the column in the user role table that names a role. |
| public void | |
| public void | setUserCredCol(String
The column name userCredCol)Set the column in the user table that holds the user's credentials. |
| public void | |
| public void | |
| public void | setUserNameCol(String
The column name userNameCol)Set the column in the user table that holds the user's name. |
| public void | setUserRoleTable(String
The table name userRoleTable)Set the table that holds the relation between user's and roles. |
| public void |
| connectionSuccess | back to summary |
|---|---|
| private volatile boolean connectionSuccess Last connection attempt. | |
| createdGroups | back to summary |
|---|---|
| protected final ConcurrentHashMap<String, Group> createdGroups | |
| createdRoles | back to summary |
|---|---|
| protected final ConcurrentHashMap<String, Role> createdRoles | |
| createdUsers | back to summary |
|---|---|
| protected final ConcurrentHashMap<String, User> createdUsers | |
| dataSource | back to summary |
|---|---|
| protected final DataSource dataSource DataSource to use. | |
| dataSourceName | back to summary |
|---|---|
| protected String dataSourceName The name of the JNDI JDBC DataSource | |
| dbLock | back to summary |
|---|---|
| private final ReentrantReadWriteLock dbLock | |
| dbReadLock | back to summary |
|---|---|
| private final Lock dbReadLock | |
| dbWriteLock | back to summary |
|---|---|
| private final Lock dbWriteLock | |
| groupNameCol | back to summary |
|---|---|
| protected String groupNameCol The column in the user group table that names a group | |
| groupRoleTable | back to summary |
|---|---|
| protected String groupRoleTable The table that holds the relation between groups and roles | |
| groupsLock | back to summary |
|---|---|
| private final ReentrantReadWriteLock groupsLock | |
| groupsReadLock | back to summary |
|---|---|
| private final Lock groupsReadLock | |
| groupsWriteLock | back to summary |
|---|---|
| private final Lock groupsWriteLock | |
| groupTable | back to summary |
|---|---|
| protected String groupTable The table that holds user data. | |
| id | back to summary |
|---|---|
| protected final String id The unique global identifier of this user database. | |
| log | back to summary |
|---|---|
| private static final Log log | |
| modifiedGroups | back to summary |
|---|---|
| protected final ConcurrentHashMap<String, Group> modifiedGroups | |
| modifiedRoles | back to summary |
|---|---|
| protected final ConcurrentHashMap<String, Role> modifiedRoles | |
| modifiedUsers | back to summary |
|---|---|
| protected final ConcurrentHashMap<String, User> modifiedUsers | |
| preparedAllGroups | back to summary |
|---|---|
| private String preparedAllGroups The generated string for the all groups PreparedStatement | |
| preparedAllRoles | back to summary |
|---|---|
| private String preparedAllRoles The generated string for the all roles PreparedStatement | |
| preparedAllUsers | back to summary |
|---|---|
| private String preparedAllUsers The generated string for the all users PreparedStatement | |
| preparedGroup | back to summary |
|---|---|
| private String preparedGroup The generated string for the group PreparedStatement | |
| preparedGroupRoles | back to summary |
|---|---|
| private String preparedGroupRoles The generated string for the groups PreparedStatement | |
| preparedRole | back to summary |
|---|---|
| private String preparedRole The generated string for the role PreparedStatement | |
| preparedUser | back to summary |
|---|---|
| private String preparedUser The generated string for the user PreparedStatement | |
| preparedUserGroups | back to summary |
|---|---|
| private String preparedUserGroups The generated string for the groups PreparedStatement | |
| preparedUserRoles | back to summary |
|---|---|
| private String preparedUserRoles The generated string for the roles PreparedStatement | |
| readonly | back to summary |
|---|---|
| protected boolean readonly A flag, indicating if the user database is read only. | |
| removedGroups | back to summary |
|---|---|
| protected final ConcurrentHashMap<String, Group> removedGroups | |
| removedRoles | back to summary |
|---|---|
| protected final ConcurrentHashMap<String, Role> removedRoles | |
| removedUsers | back to summary |
|---|---|
| protected final ConcurrentHashMap<String, User> removedUsers | |
| roleAndGroupDescriptionCol | back to summary |
|---|---|
| protected String roleAndGroupDescriptionCol The column in the role and group tables for the description | |
| roleNameCol | back to summary |
|---|---|
| protected String roleNameCol The column in the user role table that names a role | |
| rolesLock | back to summary |
|---|---|
| private final ReentrantReadWriteLock rolesLock | |
| rolesReadLock | back to summary |
|---|---|
| private final Lock rolesReadLock | |
| rolesWriteLock | back to summary |
|---|---|
| private final Lock rolesWriteLock | |
| roleTable | back to summary |
|---|---|
| protected String roleTable The table that holds user data. | |
| sm | back to summary |
|---|---|
| private static final StringManager sm | |
| userCredCol | back to summary |
|---|---|
| protected String userCredCol The column in the user table that holds the user's credentials | |
| userFullNameCol | back to summary |
|---|---|
| protected String userFullNameCol The column in the user table that holds the user's full name | |
| userGroupTable | back to summary |
|---|---|
| protected String userGroupTable The table that holds the relation between users and groups | |
| userNameCol | back to summary |
|---|---|
| protected String userNameCol The column in the user table that holds the user's name | |
| userRoleTable | back to summary |
|---|---|
| protected String userRoleTable The table that holds the relation between users and roles | |
| usersLock | back to summary |
|---|---|
| private final ReentrantReadWriteLock usersLock | |
| usersReadLock | back to summary |
|---|---|
| private final Lock usersReadLock | |
| usersWriteLock | back to summary |
|---|---|
| private final Lock usersWriteLock | |
| userTable | back to summary |
|---|---|
| protected String userTable The table that holds user data. | |
| DataSourceUserDatabase | back to summary |
|---|---|
| public DataSourceUserDatabase(DataSource dataSource, String id) | |
| close | back to summary |
|---|---|
| public void close() throws Exception Implements org. Doc from org. Finalize access to this user database. | |
| closeConnection | back to summary |
|---|---|
| protected void closeConnection(Connection dbConnection) Close the specified database connection.
| |
| createGroup | back to summary |
|---|---|
| public Group createGroup(String groupname, String description) Implements org. Doc from org. Create and return a new | |
| createRole | back to summary |
|---|---|
| public Role createRole(String rolename, String description) Implements org. Doc from org. Create and return a new | |
| createUser | back to summary |
|---|---|
| public User createUser(String username, String password, String fullName) Implements org. Doc from org. Create and return a new | |
| findGroup | back to summary |
|---|---|
| public Group findGroup(String groupname) Implements org.
| |
| findGroupInternal | back to summary |
|---|---|
| public Group findGroupInternal(Connection dbConnection, String groupName) | |
| findRole | back to summary |
|---|---|
| public Role findRole(String rolename) Implements org.
| |
| findRoleInternal | back to summary |
|---|---|
| public Role findRoleInternal(Connection dbConnection, String roleName) | |
| findUser | back to summary |
|---|---|
| public User findUser(String username) Implements org.
| |
| findUserInternal | back to summary |
|---|---|
| public User findUserInternal(Connection dbConnection, String userName) | |
| getDataSourceName | back to summary |
|---|---|
public String getDataSourceName()
| |
| getGroupNameCol | back to summary |
|---|---|
public String getGroupNameCol()
| |
| getGroupRoleTable | back to summary |
|---|---|
public String getGroupRoleTable()
| |
| getGroups | back to summary |
|---|---|
| public Iterator Implements org.
| |
| getGroupTable | back to summary |
|---|---|
public String getGroupTable()
| |
| getId | back to summary |
|---|---|
| public String getId() Implements org.
| |
| getReadonly | back to summary |
|---|---|
public boolean getReadonly()
| |
| getRoleAndGroupDescriptionCol | back to summary |
|---|---|
public String getRoleAndGroupDescriptionCol()
| |
| getRoleNameCol | back to summary |
|---|---|
public String getRoleNameCol()
| |
| getRoles | back to summary |
|---|---|
| public Iterator Implements org.
| |
| getRoleTable | back to summary |
|---|---|
public String getRoleTable()
| |
| getUserCredCol | back to summary |
|---|---|
public String getUserCredCol()
| |
| getUserFullNameCol | back to summary |
|---|---|
public String getUserFullNameCol()
| |
| getUserGroupTable | back to summary |
|---|---|
public String getUserGroupTable()
| |
| getUserNameCol | back to summary |
|---|---|
public String getUserNameCol()
| |
| getUserRoleTable | back to summary |
|---|---|
public String getUserRoleTable()
| |
| getUsers | back to summary |
|---|---|
| public Iterator Implements org.
| |
| getUserTable | back to summary |
|---|---|
public String getUserTable()
| |
| isAvailable | back to summary |
|---|---|
| public boolean isAvailable() Overrides default org. Doc from org. Is the database available.
| |
| isGroupStoreDefined | back to summary |
|---|---|
| protected boolean isGroupStoreDefined() Only use groups if the tables are fully defined.
| |
| isRoleStoreDefined | back to summary |
|---|---|
| protected boolean isRoleStoreDefined() Only use roles if the tables are fully defined.
| |
| modifiedGroup | back to summary |
|---|---|
| public void modifiedGroup(Group group) Overrides default org. Doc from org. Signal the specified | |
| modifiedRole | back to summary |
|---|---|
| public void modifiedRole(Role role) Overrides default org. Doc from org. Signal the specified | |
| modifiedUser | back to summary |
|---|---|
| public void modifiedUser(User user) Overrides default org. Doc from org. Signal the specified | |
| open | back to summary |
|---|---|
| public void open() throws Exception Implements org. Doc from org. Initialize access to this user database. | |
| openConnection | back to summary |
|---|---|
| protected Connection openConnection() Open the specified database connection.
| |
| removeGroup | back to summary |
|---|---|
| public void removeGroup(Group group) Implements org. Doc from org. Remove the specified | |
| removeRole | back to summary |
|---|---|
| public void removeRole(Role role) Implements org. Doc from org. Remove the specified | |
| removeUser | back to summary |
|---|---|
| public void removeUser(User user) Implements org. Doc from org. Remove the specified | |
| save | back to summary |
|---|---|
| public void save() throws Exception Implements org. Doc from org. Save any updated information to the persistent storage location for this user database. | |
| saveInternal | back to summary |
|---|---|
| protected void saveInternal(Connection dbConnection) | |
| setDataSourceName | back to summary |
|---|---|
| public void setDataSourceName(String dataSourceName) Set the name of the JNDI JDBC DataSource.
| |
| setGroupNameCol | back to summary |
|---|---|
public void setGroupNameCol(String groupNameCol)
| |
| setGroupRoleTable | back to summary |
|---|---|
public void setGroupRoleTable(String groupRoleTable)
| |
| setGroupTable | back to summary |
|---|---|
public void setGroupTable(String groupTable)
| |
| setReadonly | back to summary |
|---|---|
public void setReadonly(boolean readonly)
| |
| setRoleAndGroupDescriptionCol | back to summary |
|---|---|
public void setRoleAndGroupDescriptionCol(String roleAndGroupDescriptionCol)
| |
| setRoleNameCol | back to summary |
|---|---|
| public void setRoleNameCol(String roleNameCol) Set the column in the user role table that names a role.
| |
| setRoleTable | back to summary |
|---|---|
public void setRoleTable(String roleTable)
| |
| setUserCredCol | back to summary |
|---|---|
| public void setUserCredCol(String userCredCol) Set the column in the user table that holds the user's credentials.
| |
| setUserFullNameCol | back to summary |
|---|---|
public void setUserFullNameCol(String userFullNameCol)
| |
| setUserGroupTable | back to summary |
|---|---|
public void setUserGroupTable(String userGroupTable)
| |
| setUserNameCol | back to summary |
|---|---|
| public void setUserNameCol(String userNameCol) Set the column in the user table that holds the user's name.
| |
| setUserRoleTable | back to summary |
|---|---|
| public void setUserRoleTable(String userRoleTable) Set the table that holds the relation between user's and roles.
| |
| setUserTable | back to summary |
|---|---|
| public void setUserTable(String userTable) Set the table that holds user data.
| |