Package org.opencms.db.oracle
Class CmsUserDriver
java.lang.Object
org.opencms.db.generic.CmsUserDriver
org.opencms.db.oracle.CmsUserDriver
- All Implemented Interfaces:
I_CmsDriver
,I_CmsUserDriver
Oracle implementation of the user driver methods.
- Since:
- 6.0.0
-
Field Summary
Fields inherited from class org.opencms.db.generic.CmsUserDriver
m_digest, m_digestAlgorithm, m_digestFileEncoding, m_driverManager, m_sqlManager, ORGUNIT_BASE_FOLDER, REQ_ATTR_DONT_DIGEST_PASSWORD
Fields inherited from interface org.opencms.db.I_CmsDriver
AND_CONDITION, BEGIN_CONDITION, BEGIN_EXCLUDE_CONDITION, BEGIN_INCLUDE_CONDITION, END_CONDITION, OR_CONDITION
Fields inherited from interface org.opencms.db.I_CmsUserDriver
DRIVER_TYPE_ID
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreates a new user query builder.static OutputStream
getOutputStreamFromBlob
(ResultSet res, String name) Generates an Output stream that writes to a blob, also truncating the existing blob if required.initSqlManager
(String classname) Initializes the SQL manager for this driver.protected void
internalUpdateUserInfo
(CmsDbContext dbc, CmsUUID userId, String key, Object value) Updates additional user info.protected void
internalUpdateUserInfoData
(CmsDbContext dbc, CmsUUID userId, String key, Object value) Updates the given user information entry.protected void
internalWriteUserInfo
(CmsDbContext dbc, CmsUUID userId, String key, Object value) Writes a new additional user info.Methods inherited from class org.opencms.db.generic.CmsUserDriver
addResourceToOrganizationalUnit, countUsers, createAccessControlEntry, createGroup, createOrganizationalUnit, createRoleQuery, createRootOrganizationalUnit, createUser, createUserInGroup, createUserQuery, deleteGroup, deleteOrganizationalUnit, deleteUser, deleteUserInfos, deleteUserInGroup, destroy, existsGroup, existsUser, fillDefaults, getGroups, getOrganizationalUnits, getResourcesForOrganizationalUnit, getSqlManager, getUsers, getUsersWithoutAdditionalInfo, init, internalCreateAce, internalCreateAce, internalCreateDefaultGroups, internalCreateGroup, internalCreateOrgUnitFromResource, internalCreateResourceForOrgUnit, internalCreateUser, internalDeleteOrgUnitResource, internalDeleteUserInfo, internalGetUsers, internalOrgUnitFolder, internalResourcesForOrgUnit, internalUpdateRoleGroup, internalValidateResourceForOrgUnit, internalValidateUserInGroup, internalWriteOrgUnitProperty, internalWriteUserInfos, publishAccessControlEntries, readAccessControlEntries, readAccessControlEntry, readChildGroups, readGroup, readGroup, readGroupsOfUser, readOrganizationalUnit, readUser, readUser, readUser, readUserInfos, readUsersOfGroup, removeAccessControlEntries, removeAccessControlEntriesForPrincipal, removeAccessControlEntry, removeResourceFromOrganizationalUnit, searchUsers, setDriverManager, setSqlManager, setUsersOrganizationalUnit, writeAccessControlEntry, writeGroup, writeOrganizationalUnit, writePassword, writeUser, writeUserInfo
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.opencms.db.I_CmsDriver
toString
-
Constructor Details
-
CmsUserDriver
public CmsUserDriver()
-
-
Method Details
-
getOutputStreamFromBlob
Generates an Output stream that writes to a blob, also truncating the existing blob if required.Apparently Oracle requires some non-standard handling here.
- Parameters:
res
- the result set where the blob is located inname
- the name of the database column where the blob is located- Returns:
- an Output stream from a blob
- Throws:
SQLException
- if something goes wring
-
createUserQueryBuilder
Description copied from class:CmsUserDriver
Creates a new user query builder.- Overrides:
createUserQueryBuilder
in classCmsUserDriver
- Returns:
- the new user query builder
- See Also:
-
initSqlManager
Description copied from interface:I_CmsUserDriver
Initializes the SQL manager for this driver.To obtain JDBC connections from different pools, further {online|offline|history} pool Urls have to be specified.
- Specified by:
initSqlManager
in interfaceI_CmsUserDriver
- Overrides:
initSqlManager
in classCmsUserDriver
- Parameters:
classname
- the classname of the SQL manager- Returns:
- the SQL manager for this driver
- See Also:
-
internalUpdateUserInfo
protected void internalUpdateUserInfo(CmsDbContext dbc, CmsUUID userId, String key, Object value) throws CmsDataAccessException Updates additional user info.- Overrides:
internalUpdateUserInfo
in classCmsUserDriver
- Parameters:
dbc
- the current dbcuserId
- the user id to add the user info forkey
- the name of the additional user infovalue
- the value of the additional user info- Throws:
CmsDataAccessException
- if something goes wrong
-
internalUpdateUserInfoData
protected void internalUpdateUserInfoData(CmsDbContext dbc, CmsUUID userId, String key, Object value) throws CmsDataAccessException Updates the given user information entry.- Parameters:
dbc
- the current database contextuserId
- the id of the user to updatekey
- the user info entry keyvalue
- the user info entry value- Throws:
CmsDataAccessException
- if something goes wrong
-
internalWriteUserInfo
protected void internalWriteUserInfo(CmsDbContext dbc, CmsUUID userId, String key, Object value) throws CmsDataAccessException Writes a new additional user info.- Overrides:
internalWriteUserInfo
in classCmsUserDriver
- Parameters:
dbc
- the current dbcuserId
- the user id to add the user info forkey
- the name of the additional user infovalue
- the value of the additional user info- Throws:
CmsDataAccessException
- if something goes wrong
-