|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.portal.migration.MigrationModule org.jboss.portal.migration.MigrationModule22_24
Handles batch processing tasks for migration from 2.2 to 2.4.
TODO: Move all CMS migration methods to use StatelessSession process.
Field Summary | |
private org.apache.log4j.Logger |
log
|
private static java.lang.String |
SQL_CMSENTRY
|
private static java.lang.String |
SQL_OBJECT
|
private static java.lang.String |
SQL_REPOSITORYENTRY
|
private static java.lang.String |
SQL_ROLE
|
private static java.lang.String |
SQL_USER
|
private static java.lang.String |
SQL_VERSIONBINVAL
|
private static java.lang.String |
SQL_VERSIONENTRY
|
private static java.lang.String |
SQL_VERSIONNODE
|
private static java.lang.String |
SQL_VERSIONPROP
|
private static java.lang.String |
SQL_VERSIONREFS
|
private static java.lang.String |
SQL_WSPBINVAL
|
private static java.lang.String |
SQL_WSPNODE
|
private static java.lang.String |
SQL_WSPPROP
|
private static java.lang.String |
SQL_WSPREFS
|
Fields inherited from class org.jboss.portal.migration.MigrationModule |
fromConfiguration, fromSession, fromSessionFactory, fromStatelessSession, fromTx, toConfiguration, toSession, toSessionFactory, toStatelessSession, toTx |
Constructor Summary | |
MigrationModule22_24()
|
Method Summary | |
private java.lang.String |
cutPath(java.lang.String parentRef,
java.lang.String reference)
|
void |
init()
|
void |
migrateCMSData()
|
private void |
migrateInstances()
migrate Instance22Impl table with instance prefs |
private ObjectNode24 |
migrateObjectNode(ObjectNode22 node22)
Recurrence migration of ObjectNode |
private void |
migrateObjectNodes()
Method finds root node of ObjectNode table and fire recurrence migration |
void |
migratePortalObjects()
|
void |
migratePortletInstances()
|
private void |
migrateRoles()
|
void |
migrateSecurity()
|
private void |
migrateSecurityPolicy()
|
private void |
migrateStateless(java.lang.String SQL)
Generic method that uses the StatelessSession to replicate tables, given a source SQL Select. |
private void |
migrateUserPreferences()
migrate user prefs - AFTER portlet instances were migrated |
private void |
migrateUserRoleRelations()
migrate relations between users and roles |
private void |
migrateUsers()
|
void |
migrateUsersRoles()
|
Methods inherited from class org.jboss.portal.migration.MigrationModule |
close, getCurrentFromSession, getCurrentToSession, getFromConfiguration, getFromSessionFactory, getToConfiguration, getToSessionFactory, nextFromSession, nextFromStatelessSession, nextToSession, nextToStatelessSession, setFromConfiguration, setFromSessionFactory, setToConfiguration, setToSessionFactory, tearDown |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.lang.String SQL_REPOSITORYENTRY
private static final java.lang.String SQL_CMSENTRY
private static final java.lang.String SQL_VERSIONENTRY
private static final java.lang.String SQL_VERSIONBINVAL
private static final java.lang.String SQL_VERSIONNODE
private static final java.lang.String SQL_VERSIONPROP
private static final java.lang.String SQL_VERSIONREFS
private static final java.lang.String SQL_WSPBINVAL
private static final java.lang.String SQL_WSPNODE
private static final java.lang.String SQL_WSPPROP
private static final java.lang.String SQL_WSPREFS
private static final java.lang.String SQL_ROLE
private static final java.lang.String SQL_USER
private static final java.lang.String SQL_OBJECT
private final org.apache.log4j.Logger log
Constructor Detail |
public MigrationModule22_24()
Method Detail |
public void init() throws java.lang.Exception
java.lang.Exception
private void migrateStateless(java.lang.String SQL) throws java.lang.Exception
SQL
-
java.lang.Exception
private void migrateRoles() throws java.lang.Exception
java.lang.Exception
private void migrateUsers() throws java.lang.Exception
java.lang.Exception
private void migrateUserRoleRelations() throws java.lang.Exception
java.lang.Exception
private void migrateObjectNodes() throws java.lang.Exception
java.lang.Exception
private ObjectNode24 migrateObjectNode(ObjectNode22 node22) throws java.lang.Exception
node22
-
java.lang.Exception
private void migrateInstances() throws java.lang.Exception
java.lang.Exception
private void migrateUserPreferences() throws java.lang.Exception
java.lang.Exception
private void migrateSecurityPolicy() throws java.lang.Exception
java.lang.Exception
private java.lang.String cutPath(java.lang.String parentRef, java.lang.String reference)
public void migrateCMSData() throws java.lang.Exception
java.lang.Exception
public void migrateUsersRoles() throws java.lang.Exception
java.lang.Exception
public void migratePortalObjects() throws java.lang.Exception
java.lang.Exception
public void migratePortletInstances() throws java.lang.Exception
java.lang.Exception
public void migrateSecurity() throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |