站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.6 API 英文版文档

MigrationModule22_24 - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.migration
Class MigrationModule22_24

java.lang.Object
  extended byorg.jboss.portal.migration.MigrationModule
      extended byorg.jboss.portal.migration.MigrationModule22_24

public class MigrationModule22_24
extends MigrationModule

Handles batch processing tasks for migration from 2.2 to 2.4.

TODO: Move all CMS migration methods to use StatelessSession process.

Version:
$Revision: 5449 $
Author:
Roy Russo, Boleslaw Dawidowicz

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

SQL_REPOSITORYENTRY

private static final java.lang.String SQL_REPOSITORYENTRY
See Also:
Constant Field Values

SQL_CMSENTRY

private static final java.lang.String SQL_CMSENTRY
See Also:
Constant Field Values

SQL_VERSIONENTRY

private static final java.lang.String SQL_VERSIONENTRY
See Also:
Constant Field Values

SQL_VERSIONBINVAL

private static final java.lang.String SQL_VERSIONBINVAL
See Also:
Constant Field Values

SQL_VERSIONNODE

private static final java.lang.String SQL_VERSIONNODE
See Also:
Constant Field Values

SQL_VERSIONPROP

private static final java.lang.String SQL_VERSIONPROP
See Also:
Constant Field Values

SQL_VERSIONREFS

private static final java.lang.String SQL_VERSIONREFS
See Also:
Constant Field Values

SQL_WSPBINVAL

private static final java.lang.String SQL_WSPBINVAL
See Also:
Constant Field Values

SQL_WSPNODE

private static final java.lang.String SQL_WSPNODE
See Also:
Constant Field Values

SQL_WSPPROP

private static final java.lang.String SQL_WSPPROP
See Also:
Constant Field Values

SQL_WSPREFS

private static final java.lang.String SQL_WSPREFS
See Also:
Constant Field Values

SQL_ROLE

private static final java.lang.String SQL_ROLE
See Also:
Constant Field Values

SQL_USER

private static final java.lang.String SQL_USER
See Also:
Constant Field Values

SQL_OBJECT

private static final java.lang.String SQL_OBJECT
See Also:
Constant Field Values

log

private final org.apache.log4j.Logger log
Constructor Detail

MigrationModule22_24

public MigrationModule22_24()
Method Detail

init

public void init()
          throws java.lang.Exception
Throws:
java.lang.Exception

migrateStateless

private void migrateStateless(java.lang.String SQL)
                       throws java.lang.Exception
Generic method that uses the StatelessSession to replicate tables, given a source SQL Select.

Parameters:
SQL -
Throws:
java.lang.Exception

migrateRoles

private void migrateRoles()
                   throws java.lang.Exception
Throws:
java.lang.Exception

migrateUsers

private void migrateUsers()
                   throws java.lang.Exception
Throws:
java.lang.Exception

migrateUserRoleRelations

private void migrateUserRoleRelations()
                               throws java.lang.Exception
migrate relations between users and roles

Throws:
java.lang.Exception

migrateObjectNodes

private void migrateObjectNodes()
                         throws java.lang.Exception
Method finds root node of ObjectNode table and fire recurrence migration

Throws:
java.lang.Exception

migrateObjectNode

private ObjectNode24 migrateObjectNode(ObjectNode22 node22)
                                throws java.lang.Exception
Recurrence migration of ObjectNode

Parameters:
node22 -
Returns:
Throws:
java.lang.Exception

migrateInstances

private void migrateInstances()
                       throws java.lang.Exception
migrate Instance22Impl table with instance prefs

Throws:
java.lang.Exception

migrateUserPreferences

private void migrateUserPreferences()
                             throws java.lang.Exception
migrate user prefs - AFTER portlet instances were migrated

Throws:
java.lang.Exception

migrateSecurityPolicy

private void migrateSecurityPolicy()
                            throws java.lang.Exception
Throws:
java.lang.Exception

cutPath

private java.lang.String cutPath(java.lang.String parentRef,
                                 java.lang.String reference)

migrateCMSData

public void migrateCMSData()
                    throws java.lang.Exception
Throws:
java.lang.Exception

migrateUsersRoles

public void migrateUsersRoles()
                       throws java.lang.Exception
Throws:
java.lang.Exception

migratePortalObjects

public void migratePortalObjects()
                          throws java.lang.Exception
Throws:
java.lang.Exception

migratePortletInstances

public void migratePortletInstances()
                             throws java.lang.Exception
Throws:
java.lang.Exception

migrateSecurity

public void migrateSecurity()
                     throws java.lang.Exception
Throws:
java.lang.Exception