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
public class CmsUserDriver extends 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
Constructors Constructor Description CmsUserDriver()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CmsUserQueryBuilder
createUserQueryBuilder()
Creates a new user query builder.static java.io.OutputStream
getOutputStreamFromBlob(java.sql.ResultSet res, java.lang.String name)
Generates an Output stream that writes to a blob, also truncating the existing blob if required.CmsSqlManager
initSqlManager(java.lang.String classname)
Initializes the SQL manager for this driver.protected void
internalUpdateUserInfo(CmsDbContext dbc, CmsUUID userId, java.lang.String key, java.lang.Object value)
Updates additional user info.protected void
internalUpdateUserInfoData(CmsDbContext dbc, CmsUUID userId, java.lang.String key, java.lang.Object value)
Updates the given user information entry.protected void
internalWriteUserInfo(CmsDbContext dbc, CmsUUID userId, java.lang.String key, java.lang.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 Detail
-
CmsUserDriver
public CmsUserDriver()
-
-
Method Detail
-
getOutputStreamFromBlob
public static java.io.OutputStream getOutputStreamFromBlob(java.sql.ResultSet res, java.lang.String name) throws java.sql.SQLException
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:
java.sql.SQLException
- if something goes wring
-
createUserQueryBuilder
public CmsUserQueryBuilder createUserQueryBuilder()
Description copied from class:CmsUserDriver
Creates a new user query builder.- Overrides:
createUserQueryBuilder
in classCmsUserDriver
- Returns:
- the new user query builder
- See Also:
CmsUserDriver.createUserQueryBuilder()
-
initSqlManager
public CmsSqlManager initSqlManager(java.lang.String classname)
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:
I_CmsUserDriver.initSqlManager(String)
-
internalUpdateUserInfo
protected void internalUpdateUserInfo(CmsDbContext dbc, CmsUUID userId, java.lang.String key, java.lang.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, java.lang.String key, java.lang.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, java.lang.String key, java.lang.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
-
-