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
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 -
Method Summary
Modifier and TypeMethodDescriptionprotected 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, String id, String key, 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 Details
-
CmsUpdateDBCmsUsers
Constructor.- Throws:
IOException
- if the sql queries properties file could not be read
-
-
Method Details
-
internalExecute
Description copied from class:A_CmsUpdateDBPart
Does the hard work.- Overrides:
internalExecute
in classCmsUpdateDBCmsUsers
- Parameters:
dbCon
- the db connection interface- See Also:
-
createUserDataTable
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:
SQLException
- if soemthing goes wrong- See Also:
-
writeUserInfo
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
-