|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opencms.db.generic.CmsUserDriver
org.opencms.db.oracle.CmsUserDriver
public class CmsUserDriver
Oracle implementation of the user driver methods.
| Field Summary |
|---|
| Fields inherited from class org.opencms.db.generic.CmsUserDriver |
|---|
m_adminUserName, m_digest, m_digestAlgorithm, m_digestFileEncoding, m_driverManager, m_sqlManager |
| Fields inherited from interface org.opencms.db.I_CmsUserDriver |
|---|
DRIVER_TYPE_ID |
| Constructor Summary | |
|---|---|
CmsUserDriver()
|
|
| Method Summary | |
|---|---|
CmsUser |
createUser(CmsDbContext dbc,
String name,
String password,
String description,
String firstname,
String lastname,
String email,
long lastlogin,
int flags,
Map additionalInfos,
String address,
int type)
Creates a new user. |
static OutputStream |
getOutputStreamFromBlob(ResultSet res,
String name)
Generates an Output stream that writes to a blob, also truncating the existing blob if required. |
CmsUser |
importUser(CmsDbContext dbc,
CmsUUID id,
String name,
String password,
String description,
String firstname,
String lastname,
String email,
long lastlogin,
int flags,
Map additionalInfos,
String address,
int type,
Object reservedParam)
Creates a new user by import. |
CmsSqlManager |
initSqlManager(String classname)
Initializes the SQL manager for this driver. |
void |
writeUser(CmsDbContext dbc,
CmsUser user)
Updates the user information. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CmsUserDriver()
| Method Detail |
|---|
public static OutputStream getOutputStreamFromBlob(ResultSet res,
String name)
throws SQLException
Apparently Oracle requires some non-standard handling here.
res - the result set where the blob is located inname - the name of the database column where the blob is located
SQLException - if something goes wring
public CmsUser createUser(CmsDbContext dbc,
String name,
String password,
String description,
String firstname,
String lastname,
String email,
long lastlogin,
int flags,
Map additionalInfos,
String address,
int type)
throws CmsDataAccessException,
CmsPasswordEncryptionException
I_CmsUserDriver
createUser in interface I_CmsUserDrivercreateUser in class CmsUserDriverdbc - the current database contextname - the user namepassword - the user passworddescription - the user descriptionfirstname - the user firstnamelastname - the user lastnameemail - the user emaillastlogin - the user lastlogin timeflags - the user flagsadditionalInfos - the user additional infosaddress - the user default addresstype - the user type
CmsDataAccessException - if something goes wrong
CmsPasswordEncryptionException - if the user password could not be encryptedI_CmsUserDriver.createUser(org.opencms.db.CmsDbContext, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, long, int, java.util.Map, java.lang.String, int)
public CmsUser importUser(CmsDbContext dbc,
CmsUUID id,
String name,
String password,
String description,
String firstname,
String lastname,
String email,
long lastlogin,
int flags,
Map additionalInfos,
String address,
int type,
Object reservedParam)
throws CmsDataAccessException
I_CmsUserDriver
importUser in interface I_CmsUserDriverimportUser in class CmsUserDriverdbc - the current database contextid - the id of the username - the new name for the userpassword - the new password for the userdescription - the description for the userfirstname - the firstname of the userlastname - the lastname of the useremail - the email of the userlastlogin - the user lastlogin timeflags - the flags for a user (e.g. I_CmsPrincipal.FLAG_ENABLED)additionalInfos - a Map with additional infos for the user. These
infos may be stored into the Usertables (depending on the implementation).address - the address of the usertype - the type of the userreservedParam - reserved optional parameter, should be null on standard OpenCms installations
CmsUser object representing the added user
CmsDataAccessException - if operation was not successfulI_CmsUserDriver.importUser(org.opencms.db.CmsDbContext, org.opencms.util.CmsUUID, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, long, int, java.util.Map, java.lang.String, int, java.lang.Object)public CmsSqlManager initSqlManager(String classname)
I_CmsUserDriverTo obtain JDBC connections from different pools, further {online|offline|backup} pool Urls have to be specified.
initSqlManager in interface I_CmsUserDriverinitSqlManager in class CmsUserDriverclassname - the classname of the SQL manager
I_CmsUserDriver.initSqlManager(String)
public void writeUser(CmsDbContext dbc,
CmsUser user)
throws CmsDataAccessException
I_CmsUserDriver
The user id has to be a valid OpenCms user id.
The user with the given id will be completely overriden
by the given data.
writeUser in interface I_CmsUserDriverwriteUser in class CmsUserDriverdbc - the current database contextuser - the user to update
CmsDataAccessException - if something goes wrongI_CmsUserDriver.writeUser(org.opencms.db.CmsDbContext, org.opencms.file.CmsUser)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||