Package org.opencms.setup.db.update6to7
Class CmsUpdateDBHistoryPrincipals
java.lang.Object
org.opencms.setup.db.A_CmsUpdateDBPart
org.opencms.setup.db.update6to7.CmsUpdateDBHistoryPrincipals
- All Implemented Interfaces:
I_CmsUpdateDBPart
- Direct Known Subclasses:
CmsUpdateDBHistoryPrincipals
,CmsUpdateDBHistoryPrincipals
,CmsUpdateDBHistoryPrincipals
This class inserts formerly deleted users/groups in the CMS_HISTORY_PRINCIPALS table.
These users/groups are read out of the following tables:
- CMS_BACKUP_RESOURCES
- CMS_BACKUP_PROJECTS
- Since:
- 7.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final String
Constant for sql query to create the history principals table.protected static final String
Constant for the CMS_HISTORY_PRINICIPALS table.Fields inherited from class org.opencms.setup.db.A_CmsUpdateDBPart
m_poolData, m_queries
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Creates the CMS_HISTORY_PRINCIPALS table if it does not exist yet.protected void
internalExecute
(CmsSetupDb dbCon) Does the hard work.Methods inherited from class org.opencms.setup.db.A_CmsUpdateDBPart
execute, getPoolData, getPropertyFileLocation, isKeepHistory, loadQueryProperties, readQuery
-
Field Details
-
QUERY_HISTORY_PRINCIPALS_CREATE_TABLE
Constant for sql query to create the history principals table.- See Also:
-
TABLE_CMS_HISTORY_PRINCIPALS
Constant for the CMS_HISTORY_PRINICIPALS table.- See Also:
-
-
Constructor Details
-
CmsUpdateDBHistoryPrincipals
Constructor.- Throws:
IOException
- if the sql queries properties file could not be read
-
-
Method Details
-
createHistPrincipalsTable
Creates the CMS_HISTORY_PRINCIPALS table if it does not exist yet.- Parameters:
dbCon
- the db connection interface- Throws:
SQLException
- if soemthing goes wrong
-
internalExecute
Description copied from class:A_CmsUpdateDBPart
Does the hard work.- Specified by:
internalExecute
in classA_CmsUpdateDBPart
- Parameters:
dbCon
- the db connection interface- Throws:
SQLException
- if something goes wrong- See Also:
-