|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opencms.db.generic.CmsUserDriver
public class CmsUserDriver
Generic (ANSI-SQL) database server implementation of the user driver methods.
| Field Summary | |
|---|---|
protected String |
m_adminUserName
The name of the admin user. |
protected MessageDigest |
m_digest
A digest to encrypt the passwords. |
protected String |
m_digestAlgorithm
The algorithm used to encode passwords. |
protected String |
m_digestFileEncoding
The file.encoding to code passwords after encryption with digest. |
protected CmsDriverManager |
m_driverManager
The driver manager. |
protected CmsSqlManager |
m_sqlManager
The SQL manager. |
| Fields inherited from interface org.opencms.db.I_CmsUserDriver |
|---|
DRIVER_TYPE_ID |
| Constructor Summary | |
|---|---|
CmsUserDriver()
|
|
| Method Summary | |
|---|---|
void |
createAccessControlEntry(CmsDbContext dbc,
CmsProject project,
CmsUUID resource,
CmsUUID principal,
int allowed,
int denied,
int flags)
Creates an access control entry. |
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. |
void |
createUserInGroup(CmsDbContext dbc,
CmsUUID userid,
CmsUUID groupid,
Object reservedParam)
Adds a user to a group. |
void |
deleteAccessControlEntries(CmsDbContext dbc,
CmsProject project,
CmsUUID resource)
Deletes all access control entries (ACEs) belonging to a resource. |
void |
deleteGroup(CmsDbContext dbc,
String name)
Deletes a group. |
void |
deleteUser(CmsDbContext dbc,
String userName)
Deletes a user. |
void |
deleteUserInGroup(CmsDbContext dbc,
CmsUUID userId,
CmsUUID groupId)
Removes a user from a group. |
void |
destroy()
Destroys this driver. |
boolean |
existsGroup(CmsDbContext dbc,
String groupName,
Object reservedParam)
Tests if a group with the specified name exists. |
boolean |
existsUser(CmsDbContext dbc,
String username,
int usertype,
Object reservedParam)
Tests if a user with the specified name exists. |
protected void |
finalize()
|
CmsSqlManager |
getSqlManager()
Returns the SqlManager of this driver. |
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. |
void |
init(CmsDbContext dbc,
CmsConfigurationManager configurationManager,
List successiveDrivers,
CmsDriverManager driverManager)
Initializes the driver. |
CmsSqlManager |
initSqlManager(String classname)
Initializes the SQL manager for this driver. |
protected CmsGroup |
internalCreateGroup(ResultSet res)
Semi-constructor to create a CmsGroup instance from a JDBC result set. |
protected CmsUser |
internalCreateUser(ResultSet res)
Semi-constructor to create a CmsUser instance from a JDBC result set. |
protected byte[] |
internalSerializeAdditionalUserInfo(Map additionalUserInfo)
Serialize additional user information to write it as byte array in the database. |
void |
publishAccessControlEntries(CmsDbContext dbc,
CmsProject offlineProject,
CmsProject onlineProject,
CmsUUID offlineId,
CmsUUID onlineId)
Publish all access control entries of a resource from the given offline project to the online project. |
List |
readAccessControlEntries(CmsDbContext dbc,
CmsProject project,
CmsUUID resource,
boolean inheritedOnly)
Reads all relevant access control entries for a given resource. |
CmsAccessControlEntry |
readAccessControlEntry(CmsDbContext dbc,
CmsProject project,
CmsUUID resource,
CmsUUID principal)
Reads an access control entry for a given principal that is attached to a resource. |
List |
readChildGroups(CmsDbContext dbc,
String groupname)
Reads all child groups of a group. |
CmsGroup |
readGroup(CmsDbContext dbc,
CmsUUID groupId)
Reads a group based on the group id. |
CmsGroup |
readGroup(CmsDbContext dbc,
String groupName)
Reads a group based on the group name. |
List |
readGroups(CmsDbContext dbc)
Reads all existing groups. |
List |
readGroupsOfUser(CmsDbContext dbc,
CmsUUID userId,
String paramStr)
Reads all groups the given user is a member in. |
CmsUser |
readUser(CmsDbContext dbc,
CmsUUID id)
Reads a user based on the user id. |
CmsUser |
readUser(CmsDbContext dbc,
String name,
int type)
Reads a user based in the user name and user type. |
CmsUser |
readUser(CmsDbContext dbc,
String name,
String password,
int type)
Reads a user from the database, only if the password is correct. |
CmsUser |
readUser(CmsDbContext dbc,
String name,
String password,
String remoteAddress,
int type)
Reads a user from the database, only if the password is correct. |
List |
readUsers(CmsDbContext dbc,
int type)
Reads all existing users of the given type. |
List |
readUsersOfGroup(CmsDbContext dbc,
String name,
int type)
Reads all users that are members of the given group. |
void |
removeAccessControlEntries(CmsDbContext dbc,
CmsProject project,
CmsUUID resource)
Removes all access control entries belonging to a resource. |
void |
removeAccessControlEntriesForPrincipal(CmsDbContext dbc,
CmsProject project,
CmsProject onlineProject,
CmsUUID principal)
Removes all access control entries belonging to a principal. |
void |
removeAccessControlEntry(CmsDbContext dbc,
CmsProject project,
CmsUUID resource,
CmsUUID principal)
Removes an access control entry. |
void |
writeAccessControlEntry(CmsDbContext dbc,
CmsProject project,
CmsAccessControlEntry acEntry)
Writes an access control entry. |
void |
writeGroup(CmsDbContext dbc,
CmsGroup group)
Writes an already existing group. |
void |
writePassword(CmsDbContext dbc,
String userName,
int type,
String oldPassword,
String newPassword)
Sets a new password for a user. |
void |
writeUser(CmsDbContext dbc,
CmsUser user)
Updates the user information. |
void |
writeUserType(CmsDbContext dbc,
CmsUUID userId,
int userType)
Changes the user type of the given user. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String m_adminUserName
protected MessageDigest m_digest
protected String m_digestAlgorithm
protected String m_digestFileEncoding
protected CmsDriverManager m_driverManager
protected CmsSqlManager m_sqlManager
| Constructor Detail |
|---|
public CmsUserDriver()
| Method Detail |
|---|
public void createAccessControlEntry(CmsDbContext dbc,
CmsProject project,
CmsUUID resource,
CmsUUID principal,
int allowed,
int denied,
int flags)
throws CmsDataAccessException
I_CmsUserDriver
createAccessControlEntry in interface I_CmsUserDriverdbc - the current database contextproject - the project to write the entryresource - the id of the resourceprincipal - the id of the principal (user or group)allowed - the bitset of allowed permissionsdenied - the bitset of denied permissionsflags - flags
CmsDataAccessException - if something goes wrongI_CmsUserDriver.createAccessControlEntry(org.opencms.db.CmsDbContext, org.opencms.file.CmsProject, org.opencms.util.CmsUUID, org.opencms.util.CmsUUID, int, int, int)
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_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_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 void createUserInGroup(CmsDbContext dbc,
CmsUUID userid,
CmsUUID groupid,
Object reservedParam)
throws CmsDataAccessException
I_CmsUserDriver
createUserInGroup in interface I_CmsUserDriverdbc - the current database contextuserid - the id of the user that is to be added to the groupgroupid - the id of the groupreservedParam - reserved optional parameter, should be null on standard OpenCms installations
CmsDataAccessException - if operation was not succesfullI_CmsUserDriver.createUserInGroup(org.opencms.db.CmsDbContext, org.opencms.util.CmsUUID, org.opencms.util.CmsUUID, java.lang.Object)
public void deleteAccessControlEntries(CmsDbContext dbc,
CmsProject project,
CmsUUID resource)
throws CmsDataAccessException
I_CmsUserDriver
deleteAccessControlEntries in interface I_CmsUserDriverdbc - the current database contextproject - the project to delete the ACEs inresource - the id of the resource to delete the ACEs from
CmsDataAccessException - if something goes wrongI_CmsUserDriver.deleteAccessControlEntries(org.opencms.db.CmsDbContext, org.opencms.file.CmsProject, org.opencms.util.CmsUUID)
public void deleteGroup(CmsDbContext dbc,
String name)
throws CmsDataAccessException
I_CmsUserDriverOnly groups that contain no subgroups can be deleted.
deleteGroup in interface I_CmsUserDriverdbc - the current database contextname - the name of the group that is to be deleted
CmsDataAccessException - if something goes wrongI_CmsUserDriver.deleteGroup(org.opencms.db.CmsDbContext, java.lang.String)
public void deleteUser(CmsDbContext dbc,
String userName)
throws CmsDataAccessException
I_CmsUserDriver
deleteUser in interface I_CmsUserDriverdbc - the current database contextuserName - the name of the user to delete
CmsDataAccessException - if something goes wrongI_CmsUserDriver.deleteUser(org.opencms.db.CmsDbContext, java.lang.String)
public void deleteUserInGroup(CmsDbContext dbc,
CmsUUID userId,
CmsUUID groupId)
throws CmsDataAccessException
I_CmsUserDriver
deleteUserInGroup in interface I_CmsUserDriverdbc - the current database contextuserId - the id of the user that is to be removed from the groupgroupId - the id of the group
CmsDataAccessException - if something goes wrongI_CmsUserDriver.deleteUserInGroup(org.opencms.db.CmsDbContext, org.opencms.util.CmsUUID, org.opencms.util.CmsUUID)
public void destroy()
throws Throwable
I_CmsUserDriver
destroy in interface I_CmsUserDriverThrowable - if something goes wrongI_CmsUserDriver.destroy()
public boolean existsGroup(CmsDbContext dbc,
String groupName,
Object reservedParam)
throws CmsDataAccessException
I_CmsUserDriver
existsGroup in interface I_CmsUserDriverdbc - the current database contextgroupName - the user name to be checkedreservedParam - reserved optional parameter, should be null on standard OpenCms installations
CmsDataAccessException - if something goes wrongI_CmsUserDriver.existsGroup(org.opencms.db.CmsDbContext, java.lang.String, java.lang.Object)
public boolean existsUser(CmsDbContext dbc,
String username,
int usertype,
Object reservedParam)
throws CmsDataAccessException
I_CmsUserDriver
existsUser in interface I_CmsUserDriverdbc - the current database contextusername - the user name to be checkedusertype - the type of the userreservedParam - reserved optional parameter, should be null on standard OpenCms installations
CmsDataAccessException - if something goes wrongI_CmsUserDriver.existsUser(org.opencms.db.CmsDbContext, java.lang.String, int, java.lang.Object)public CmsSqlManager getSqlManager()
I_CmsUserDriver
getSqlManager in interface I_CmsUserDriverI_CmsUserDriver.getSqlManager()
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_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 void init(CmsDbContext dbc,
CmsConfigurationManager configurationManager,
List successiveDrivers,
CmsDriverManager driverManager)
I_CmsDriver
init in interface I_CmsDriverdbc - the current database contextconfigurationManager - the configuration managersuccessiveDrivers - a list of successive drivers to be initializeddriverManager - the initialized OpenCms driver managerI_CmsDriver.init(org.opencms.db.CmsDbContext, org.opencms.configuration.CmsConfigurationManager, java.util.List, org.opencms.db.CmsDriverManager)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_CmsUserDriverclassname - the classname of the SQL manager
I_CmsUserDriver.initSqlManager(String)
public void publishAccessControlEntries(CmsDbContext dbc,
CmsProject offlineProject,
CmsProject onlineProject,
CmsUUID offlineId,
CmsUUID onlineId)
throws CmsDataAccessException
I_CmsUserDriverWithin the given project, the resource is identified by its offlineId, in the online project, it is identified by the given onlineId.
publishAccessControlEntries in interface I_CmsUserDriverdbc - the current database contextofflineProject - an offline projectonlineProject - the onlie projectofflineId - the offline resource idonlineId - the online resource id
CmsDataAccessException - if something goes wrongI_CmsUserDriver.publishAccessControlEntries(org.opencms.db.CmsDbContext, org.opencms.file.CmsProject, org.opencms.file.CmsProject, org.opencms.util.CmsUUID, org.opencms.util.CmsUUID)
public List readAccessControlEntries(CmsDbContext dbc,
CmsProject project,
CmsUUID resource,
boolean inheritedOnly)
throws CmsDataAccessException
I_CmsUserDriver
readAccessControlEntries in interface I_CmsUserDriverdbc - the current database contextproject - the project to write the entryresource - the id of the resourceinheritedOnly - flag to indicate that only inherited entries should be returned
CmsAccessControlEntry objects defining all permissions for the given resource
CmsDataAccessException - if something goes wrongI_CmsUserDriver.readAccessControlEntries(org.opencms.db.CmsDbContext, org.opencms.file.CmsProject, org.opencms.util.CmsUUID, boolean)
public CmsAccessControlEntry readAccessControlEntry(CmsDbContext dbc,
CmsProject project,
CmsUUID resource,
CmsUUID principal)
throws CmsDataAccessException
I_CmsUserDriver
readAccessControlEntry in interface I_CmsUserDriverdbc - the current database contextproject - the project to write the entryresource - the id of the resourceprincipal - the id of the principal
CmsDataAccessException - if something goes wrongI_CmsUserDriver.readAccessControlEntry(org.opencms.db.CmsDbContext, org.opencms.file.CmsProject, org.opencms.util.CmsUUID, org.opencms.util.CmsUUID)
public List readChildGroups(CmsDbContext dbc,
String groupname)
throws CmsDataAccessException
I_CmsUserDriver
readChildGroups in interface I_CmsUserDriverdbc - the current database contextgroupname - the name of the group to read the child groups from
CmsGroup objects or null
CmsDataAccessException - if operation was not succesfulI_CmsUserDriver.readChildGroups(org.opencms.db.CmsDbContext, java.lang.String)
public CmsGroup readGroup(CmsDbContext dbc,
CmsUUID groupId)
throws CmsDataAccessException
I_CmsUserDriver
readGroup in interface I_CmsUserDriverdbc - the current database contextgroupId - the id of the group that is to be read
CmsDataAccessException - if something goes wrongI_CmsUserDriver.readGroup(org.opencms.db.CmsDbContext, org.opencms.util.CmsUUID)
public CmsGroup readGroup(CmsDbContext dbc,
String groupName)
throws CmsDataAccessException
I_CmsUserDriver
readGroup in interface I_CmsUserDriverdbc - the current database contextgroupName - the name of the group that is to be read
CmsDataAccessException - if something goes wrongI_CmsUserDriver.readGroup(org.opencms.db.CmsDbContext, java.lang.String)
public List readGroups(CmsDbContext dbc)
throws CmsDataAccessException
I_CmsUserDriver
readGroups in interface I_CmsUserDriverdbc - the current database context
CmsGroup objects
CmsDataAccessException - if something goes wrongI_CmsUserDriver.readGroups(org.opencms.db.CmsDbContext)
public List readGroupsOfUser(CmsDbContext dbc,
CmsUUID userId,
String paramStr)
throws CmsDataAccessException
I_CmsUserDriver
readGroupsOfUser in interface I_CmsUserDriverdbc - the current database contextuserId - the id of the userparamStr - additional parameter
CmsGroup objects
CmsDataAccessException - if something goes wrongI_CmsUserDriver.readGroupsOfUser(org.opencms.db.CmsDbContext, org.opencms.util.CmsUUID, java.lang.String)
public CmsUser readUser(CmsDbContext dbc,
CmsUUID id)
throws CmsDataAccessException
I_CmsUserDriver
readUser in interface I_CmsUserDriverdbc - the current database contextid - the id of the user to read
CmsDataAccessException - if something goes wrongI_CmsUserDriver.readUser(org.opencms.db.CmsDbContext, org.opencms.util.CmsUUID)
public CmsUser readUser(CmsDbContext dbc,
String name,
int type)
throws CmsDataAccessException
I_CmsUserDriver
readUser in interface I_CmsUserDriverdbc - the current database contextname - the name of the user to readtype - the type of the user to read
CmsDataAccessException - if something goes wrongI_CmsUserDriver.readUser(org.opencms.db.CmsDbContext, java.lang.String, int)
public CmsUser readUser(CmsDbContext dbc,
String name,
String password,
int type)
throws CmsDataAccessException,
CmsPasswordEncryptionException
I_CmsUserDriver
If the user/pwd pair is not valid a is thrown.CmsDataAccessException
readUser in interface I_CmsUserDriverdbc - the current database contextname - the name of the userpassword - the password of the usertype - the type of the user
CmsDataAccessException - if something goes wrong
CmsPasswordEncryptionException - if the password of the user could not be encryptedI_CmsUserDriver.readUser(org.opencms.db.CmsDbContext, java.lang.String, java.lang.String, int)
public CmsUser readUser(CmsDbContext dbc,
String name,
String password,
String remoteAddress,
int type)
throws CmsDataAccessException,
CmsPasswordEncryptionException
I_CmsUserDriver
readUser in interface I_CmsUserDriverdbc - the current database contextname - the name of the userpassword - the password of the userremoteAddress - the remote address of the requesttype - the type of the user
CmsDataAccessException - if something goes wrong
CmsPasswordEncryptionException - if the password of the user could not be encryptedI_CmsUserDriver.readUser(org.opencms.db.CmsDbContext, java.lang.String, java.lang.String, java.lang.String, int)
public List readUsers(CmsDbContext dbc,
int type)
throws CmsDataAccessException
I_CmsUserDriver
readUsers in interface I_CmsUserDriverdbc - the current database contexttype - the type to read the users for
CmsUser objects of the given type
CmsDataAccessException - if something goes wrongI_CmsUserDriver.readUsers(org.opencms.db.CmsDbContext, int)
public List readUsersOfGroup(CmsDbContext dbc,
String name,
int type)
throws CmsDataAccessException
I_CmsUserDriver
readUsersOfGroup in interface I_CmsUserDriverdbc - the current database contextname - the name of the group to read the users fromtype - the type of the users to read
CmsUser objects in the group
CmsDataAccessException - if something goes wrongI_CmsUserDriver.readUsersOfGroup(org.opencms.db.CmsDbContext, java.lang.String, int)
public void removeAccessControlEntries(CmsDbContext dbc,
CmsProject project,
CmsUUID resource)
throws CmsDataAccessException
I_CmsUserDriver
removeAccessControlEntries in interface I_CmsUserDriverdbc - the current database contextproject - the project to write the entryresource - the id of the resource
CmsDataAccessException - if something goes wrongI_CmsUserDriver.removeAccessControlEntries(org.opencms.db.CmsDbContext, org.opencms.file.CmsProject, org.opencms.util.CmsUUID)
public void removeAccessControlEntriesForPrincipal(CmsDbContext dbc,
CmsProject project,
CmsProject onlineProject,
CmsUUID principal)
throws CmsDataAccessException
I_CmsUserDriver
removeAccessControlEntriesForPrincipal in interface I_CmsUserDriverdbc - the current database contextproject - the project to write the entryonlineProject - the online projectprincipal - the id of the principal
CmsDataAccessException - if something goes wrongI_CmsUserDriver.removeAccessControlEntriesForPrincipal(org.opencms.db.CmsDbContext, org.opencms.file.CmsProject, org.opencms.file.CmsProject, org.opencms.util.CmsUUID)
public void removeAccessControlEntry(CmsDbContext dbc,
CmsProject project,
CmsUUID resource,
CmsUUID principal)
throws CmsDataAccessException
I_CmsUserDriver
removeAccessControlEntry in interface I_CmsUserDriverdbc - the current database contextproject - the project to write the entryresource - the id of the resourceprincipal - the id of the principal
CmsDataAccessException - if something goes wrongI_CmsUserDriver.removeAccessControlEntry(org.opencms.db.CmsDbContext, org.opencms.file.CmsProject, org.opencms.util.CmsUUID, org.opencms.util.CmsUUID)
public void writeAccessControlEntry(CmsDbContext dbc,
CmsProject project,
CmsAccessControlEntry acEntry)
throws CmsDataAccessException
I_CmsUserDriver
writeAccessControlEntry in interface I_CmsUserDriverdbc - the current database contextproject - the project to write the entryacEntry - the entry to write
CmsDataAccessException - if something goes wrongI_CmsUserDriver.writeAccessControlEntry(org.opencms.db.CmsDbContext, org.opencms.file.CmsProject, org.opencms.security.CmsAccessControlEntry)
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_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 writePassword(CmsDbContext dbc,
String userName,
int type,
String oldPassword,
String newPassword)
throws CmsDataAccessException,
CmsPasswordEncryptionException
I_CmsUserDriver
writePassword in interface I_CmsUserDriverdbc - the current database contextuserName - the user to set the password fortype - the type of the useroldPassword - the current passwordnewPassword - the password to set
CmsDataAccessException - if something goes wrong
CmsPasswordEncryptionException - if the (new) password could not be encryptedI_CmsUserDriver.writePassword(org.opencms.db.CmsDbContext, java.lang.String, int, java.lang.String, java.lang.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_CmsUserDriverdbc - the current database contextuser - the user to update
CmsDataAccessException - if something goes wrongI_CmsUserDriver.writeUser(org.opencms.db.CmsDbContext, org.opencms.file.CmsUser)
public void writeUserType(CmsDbContext dbc,
CmsUUID userId,
int userType)
throws CmsDataAccessException
I_CmsUserDriver
writeUserType in interface I_CmsUserDriverdbc - the current database contextuserId - the id of the user to changeuserType - the new type of the user
CmsDataAccessException - if something goes wrongI_CmsUserDriver.writeUserType(org.opencms.db.CmsDbContext, org.opencms.util.CmsUUID, int)
protected void finalize()
throws Throwable
finalize in class ObjectThrowableObject.finalize()
protected CmsGroup internalCreateGroup(ResultSet res)
throws SQLException
res - the JDBC ResultSet
SQLException - in case the result set does not include a requested table attribute
protected CmsUser internalCreateUser(ResultSet res)
throws SQLException,
IOException,
ClassNotFoundException
res - the JDBC ResultSet
SQLException - in case the result set does not include a requested table attribute
IOException - if there is an error in deserializing the user info
ClassNotFoundException - if there is an error in deserializing the user info
protected byte[] internalSerializeAdditionalUserInfo(Map additionalUserInfo)
throws IOException
additionalUserInfo - the HashTable with additional information
IOException - if something goes wrong
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||