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

MigrationUtils - JBOSS Portal 2.4 API 英文版文档


org.jboss.portal.migration
Class MigrationUtils

java.lang.Object
  extended byorg.jboss.portal.migration.MigrationUtils

public class MigrationUtils
extends java.lang.Object

Helper class for doing operations need for migration


Constructor Summary
MigrationUtils()
           
 
Method Summary
static InstanceSecurityBinding cloneConstraintToInstanceConstraint(HbmSecurityConstraint hsc)
          converts HbmSecurityBinding into InstanceSecurityBinding.
static ObjectNodeSecurityConstraint cloneConstraintToObjectNodeConstraint(HbmSecurityConstraint hsc)
          converts HbmSecurityConstratint into ObjectNodeSecurityConstraint.
static Context24Impl cloneContext22ImplTo24(Context22Impl context22)
          Creates new Context24Impl and copys data from provided Context22Impl object.
static Instance24Impl cloneInstance22ImplTo24(Instance22Impl instance22)
          Clone Instance22Impl to Instance24Impl.
static PersistentStateEntry24 cloneInstancePrefToPortletState(InstancePreference22Impl pref22)
          convert InstancePreference22Impl into PersistentStateEntry24
static ObjectNode24 cloneObjectNode22To24(ObjectNode22 node22)
          Clones ObjectNode22 to newly created ObjectNode24.
static Page24Impl clonePage22ImplTo24(Page22Impl page22)
          Creates new Page24Impl and copys data from provided Page22Impl object.
static Portal24Impl clonePortal22ImplTo24(Portal22Impl portal22)
          Creates new Portal24Impl and copys data from provided Portal22Impl object.
static PortalObject24Impl clonePortalObject(PortalObject22Impl object22)
          Method migrates PortalObject associated with ObjectNode
static Role22Impl cloneRoleTo22(Role20Impl role20Impl)
          Creating new Role22Impl object copying content from Role20Impl.
static Role24Impl cloneRoleTo24(Role22Impl role22Impl)
          Creating new Role22Impl object copying content from Role20Impl.
static PersistentStateEntry24 cloneUserPrefToPortletState(UserPreference22Impl pref22)
          convert UserPreference22Impl into PersistentStateEntry24
static User22Impl cloneUserTo22(User20Impl user20Impl)
          Creating new User22Impl object copying content fom User20Impl.
static User24Impl cloneUserTo24(User22Impl user22Impl)
          Creating new User24Impl object copying content fom User22Impl.
static Window24Impl cloneWindow22ImplTo24(Window22Impl window22)
          Creates new Window24Impl and copys data from provided Window22Impl object.
static void parseUserPrefSet20To22(UserPrefSet20 userPrefSet20, java.util.Map prefMap, java.lang.String name, boolean concatenate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MigrationUtils

public MigrationUtils()
Method Detail

cloneUserTo22

public static User22Impl cloneUserTo22(User20Impl user20Impl)
Creating new User22Impl object copying content fom User20Impl. Not copying id and maps of objects like roles, prefSets

Parameters:
user20Impl -
Returns:
user22Impl

cloneUserTo24

public static User24Impl cloneUserTo24(User22Impl user22Impl)
Creating new User24Impl object copying content fom User22Impl. Not copying id and maps of objects like roles, prefSets

Parameters:
user22Impl -
Returns:
user24Impl

cloneRoleTo22

public static Role22Impl cloneRoleTo22(Role20Impl role20Impl)
Creating new Role22Impl object copying content from Role20Impl. Not copying users set.

Parameters:
role20Impl -
Returns:
Role22Impl

cloneRoleTo24

public static Role24Impl cloneRoleTo24(Role22Impl role22Impl)
Creating new Role22Impl object copying content from Role20Impl. Not copying users set.

Parameters:
role22Impl -
Returns:
Role24Impl

parseUserPrefSet20To22

public static void parseUserPrefSet20To22(UserPrefSet20 userPrefSet20,
                                          java.util.Map prefMap,
                                          java.lang.String name,
                                          boolean concatenate)

cloneWindow22ImplTo24

public static Window24Impl cloneWindow22ImplTo24(Window22Impl window22)
Creates new Window24Impl and copys data from provided Window22Impl object. Does not copy ObjectNode reference

Parameters:
window22 -
Returns:

clonePage22ImplTo24

public static Page24Impl clonePage22ImplTo24(Page22Impl page22)
Creates new Page24Impl and copys data from provided Page22Impl object. Does not copy ObjectNode reference

Parameters:
page22 -
Returns:

cloneContext22ImplTo24

public static Context24Impl cloneContext22ImplTo24(Context22Impl context22)
Creates new Context24Impl and copys data from provided Context22Impl object. Does not copy ObjectNode reference

Parameters:
context22 -
Returns:

clonePortal22ImplTo24

public static Portal24Impl clonePortal22ImplTo24(Portal22Impl portal22)
Creates new Portal24Impl and copys data from provided Portal22Impl object. Does not copy ObjectNode reference

Parameters:
portal22 -
Returns:

cloneObjectNode22To24

public static ObjectNode24 cloneObjectNode22To24(ObjectNode22 node22)
Clones ObjectNode22 to newly created ObjectNode24. Does not copy object, children and parent properties

Parameters:
node22 -
Returns:

clonePortalObject

public static PortalObject24Impl clonePortalObject(PortalObject22Impl object22)
                                            throws java.lang.Exception
Method migrates PortalObject associated with ObjectNode

Throws:
java.lang.Exception

cloneInstance22ImplTo24

public static Instance24Impl cloneInstance22ImplTo24(Instance22Impl instance22)
Clone Instance22Impl to Instance24Impl. Does not copy preferences Map


cloneInstancePrefToPortletState

public static PersistentStateEntry24 cloneInstancePrefToPortletState(InstancePreference22Impl pref22)
convert InstancePreference22Impl into PersistentStateEntry24

Parameters:
pref22 -
Returns:

cloneUserPrefToPortletState

public static PersistentStateEntry24 cloneUserPrefToPortletState(UserPreference22Impl pref22)
convert UserPreference22Impl into PersistentStateEntry24

Parameters:
pref22 -
Returns:

cloneConstraintToObjectNodeConstraint

public static ObjectNodeSecurityConstraint cloneConstraintToObjectNodeConstraint(HbmSecurityConstraint hsc)
converts HbmSecurityConstratint into ObjectNodeSecurityConstraint. Does not converts ObjectNode reference

Parameters:
hsc -
Returns:

cloneConstraintToInstanceConstraint

public static InstanceSecurityBinding cloneConstraintToInstanceConstraint(HbmSecurityConstraint hsc)
converts HbmSecurityBinding into InstanceSecurityBinding. Does not converts ObjectNode reference

Parameters:
hsc -
Returns: