Class CmsUpdateDBCmsUsers
- java.lang.Object
-
- org.opencms.setup.db.A_CmsUpdateDBPart
-
- org.opencms.setup.db.update6to7.CmsUpdateDBCmsUsers
-
- org.opencms.setup.db.update6to7.postgresql.CmsUpdateDBCmsUsers
-
- All Implemented Interfaces:
I_CmsUpdateDBPart
public class CmsUpdateDBCmsUsers extends CmsUpdateDBCmsUsers
PostgreSQL implementation of the generic update class for the Users.- Since:
- 7.0.2
-
-
Field Summary
-
Fields inherited from class org.opencms.setup.db.update6to7.CmsUpdateDBCmsUsers
QUERY_CREATE_TABLE_USERDATA, QUERY_INSERT_CMS_USERDATA
-
Fields inherited from class org.opencms.setup.db.A_CmsUpdateDBPart
m_poolData, m_queries
-
-
Constructor Summary
Constructors Constructor Description CmsUpdateDBCmsUsers()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
createUserDataTable(CmsSetupDb dbCon)
Creates the CMS_USERDATA table if it does not exist yet.protected void
internalExecute(CmsSetupDb dbCon)
Does the hard work.protected void
writeUserInfo(CmsSetupDb dbCon, java.lang.String id, java.lang.String key, java.lang.Object value)
Writes one set of additional user info (key and its value) to the CMS_USERDATA table.-
Methods inherited from class org.opencms.setup.db.update6to7.CmsUpdateDBCmsUsers
addUserDateCreated, addWebusersToGroup, checkUserDataTable, createWebusersGroup, removeUnnecessaryColumns, writeAdditionalUserInfo
-
Methods inherited from class org.opencms.setup.db.A_CmsUpdateDBPart
execute, getPoolData, getPropertyFileLocation, isKeepHistory, loadQueryProperties, readQuery
-
-
-
-
Constructor Detail
-
CmsUpdateDBCmsUsers
public CmsUpdateDBCmsUsers() throws java.io.IOException
Constructor.- Throws:
java.io.IOException
- if the sql queries properties file could not be read
-
-
Method Detail
-
internalExecute
protected void internalExecute(CmsSetupDb dbCon)
Description copied from class:A_CmsUpdateDBPart
Does the hard work.- Overrides:
internalExecute
in classCmsUpdateDBCmsUsers
- Parameters:
dbCon
- the db connection interface- See Also:
A_CmsUpdateDBPart.internalExecute(org.opencms.setup.CmsSetupDb)
-
createUserDataTable
protected void createUserDataTable(CmsSetupDb dbCon) throws java.sql.SQLException
Description copied from class:CmsUpdateDBCmsUsers
Creates the CMS_USERDATA table if it does not exist yet.- Overrides:
createUserDataTable
in classCmsUpdateDBCmsUsers
- Parameters:
dbCon
- the db connection interface- Throws:
java.sql.SQLException
- if soemthing goes wrong- See Also:
CmsUpdateDBCmsUsers.createUserDataTable(org.opencms.setup.CmsSetupDb)
-
writeUserInfo
protected void writeUserInfo(CmsSetupDb dbCon, java.lang.String id, java.lang.String key, java.lang.Object value)
Writes one set of additional user info (key and its value) to the CMS_USERDATA table.- Overrides:
writeUserInfo
in classCmsUpdateDBCmsUsers
- Parameters:
dbCon
- the db connection interfaceid
- the user idkey
- the data keyvalue
- the data value
-
-