org.opencms.setup.update6to7.generic
Class CmsUpdateDBHistoryPrincipals

java.lang.Object
  extended by org.opencms.setup.update6to7.A_CmsUpdateDBPart
      extended by org.opencms.setup.update6to7.generic.CmsUpdateDBHistoryPrincipals
All Implemented Interfaces:
I_CmsUpdateDBPart
Direct Known Subclasses:
CmsUpdateDBHistoryPrincipals, CmsUpdateDBHistoryPrincipals

public class CmsUpdateDBHistoryPrincipals
extends A_CmsUpdateDBPart

This class inserts formerly deleted users/groups in the CMS_HISTORY_PRINCIPALS table.

These users/groups are read out of the following tables:

Since:
7.0.0
Version:
$Revision: 1.2 $
Author:
Raphael Schnuck

Field Summary
protected static java.lang.String QUERY_HISTORY_PRINCIPALS_CREATE_TABLE
          Constant for sql query to create the history principals table.
protected static java.lang.String TABLE_CMS_HISTORY_PRINCIPALS
          Constant for the CMS_HISTORY_PRINICIPALS table.
 
Fields inherited from class org.opencms.setup.update6to7.A_CmsUpdateDBPart
m_poolData, m_queries, QUERY_PROPERTIES_PREFIX
 
Constructor Summary
CmsUpdateDBHistoryPrincipals()
          Constructor.
 
Method Summary
protected  void createHistPrincipalsTable(CmsSetupDb dbCon)
          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.update6to7.A_CmsUpdateDBPart
execute, getDbInstance, getPoolData, isKeepHistory, loadQueryProperties, readQuery, setPoolData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

QUERY_HISTORY_PRINCIPALS_CREATE_TABLE

protected static final java.lang.String QUERY_HISTORY_PRINCIPALS_CREATE_TABLE
Constant for sql query to create the history principals table.

See Also:
Constant Field Values

TABLE_CMS_HISTORY_PRINCIPALS

protected static final java.lang.String TABLE_CMS_HISTORY_PRINCIPALS
Constant for the CMS_HISTORY_PRINICIPALS table.

See Also:
Constant Field Values
Constructor Detail

CmsUpdateDBHistoryPrincipals

public CmsUpdateDBHistoryPrincipals()
                             throws java.io.IOException
Constructor.

Throws:
java.io.IOException - if the sql queries properties file could not be read
Method Detail

createHistPrincipalsTable

protected void createHistPrincipalsTable(CmsSetupDb dbCon)
                                  throws java.sql.SQLException
Creates the CMS_HISTORY_PRINCIPALS table if it does not exist yet.

Parameters:
dbCon - the db connection interface
Throws:
java.sql.SQLException - if soemthing goes wrong

internalExecute

protected void internalExecute(CmsSetupDb dbCon)
                        throws java.sql.SQLException
Description copied from class: A_CmsUpdateDBPart
Does the hard work.

Specified by:
internalExecute in class A_CmsUpdateDBPart
Parameters:
dbCon - the db connection interface
Throws:
java.sql.SQLException - if somethign goes wrong
See Also:
A_CmsUpdateDBPart.internalExecute(org.opencms.setup.CmsSetupDb)