|
||||||||||
| 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.postgresql.CmsUserDriver
public class CmsUserDriver
PostgreSql 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 | |
|---|---|
CmsGroup |
createGroup(CmsDbContext dbc,
CmsUUID groupId,
String groupName,
String description,
int flags,
String parentGroupName,
Object reservedParam)
Creates a new group. |
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. |
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 |
writeGroup(CmsDbContext dbc,
CmsGroup group)
Writes an already existing group. |
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 CmsGroup createGroup(CmsDbContext dbc,
CmsUUID groupId,
String groupName,
String description,
int flags,
String parentGroupName,
Object reservedParam)
throws CmsDataAccessException
I_CmsUserDriver
createGroup in interface I_CmsUserDrivercreateGroup in class CmsUserDriverdbc - the current database contextgroupId - the id of the new groupgroupName - the name of the new groupdescription - The description for the new groupflags - the flags for the new groupparentGroupName - the name of the parent group (or null if the group has no parent)reservedParam - reserved optional parameter, should be null on standard OpenCms installations
CmsDataAccessException - if something goes wrongI_CmsUserDriver.createGroup(org.opencms.db.CmsDbContext, org.opencms.util.CmsUUID, java.lang.String, java.lang.String, int, java.lang.String, java.lang.Object)
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 writeGroup(CmsDbContext dbc,
CmsGroup group)
throws CmsDataAccessException
I_CmsUserDriver
The group id has to be a valid OpenCms group id.
The group with the given id will be completely overriden
by the given data.
writeGroup in interface I_CmsUserDriverwriteGroup in class CmsUserDriverdbc - the current database contextgroup - the group to update
CmsDataAccessException - if something goes wrongI_CmsUserDriver.writeGroup(org.opencms.db.CmsDbContext, org.opencms.file.CmsGroup)
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 | |||||||||