org.exoplatform.ecms.upgrade.path
Class NodePathUpgradePlugin
java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.commons.upgrade.UpgradeProductPlugin
org.exoplatform.ecms.upgrade.path.NodePathUpgradePlugin
- All Implemented Interfaces:
- Comparable<org.exoplatform.commons.upgrade.UpgradeProductPlugin>, org.exoplatform.container.component.ComponentPlugin
public class NodePathUpgradePlugin
- extends org.exoplatform.commons.upgrade.UpgradeProductPlugin
This class is used to migrade nodes which path is changed. It will move these nodes to new position. We must
configured source node and target node in configuration.xml via two variable source.node and target.node.
source.node must contains the workspace name.
Ex: source.node=collaboration:/sites content/live
target.node=/sites
| Fields inherited from class org.exoplatform.commons.upgrade.UpgradeProductPlugin |
oldProductGroupId, productGroupId |
| Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin |
desc, name |
|
Constructor Summary |
NodePathUpgradePlugin(org.exoplatform.services.jcr.RepositoryService repoService,
org.exoplatform.container.xml.InitParams initParams)
|
| Methods inherited from class org.exoplatform.commons.upgrade.UpgradeProductPlugin |
addNodeVersion, compareTo, equals, getOldProductGroupId, getPluginExecutionOrder, getProductGroupId, hashCode, isEnabled |
| Methods inherited from class org.exoplatform.container.component.BaseComponentPlugin |
getDescription, getName, setDescription, setName |
NodePathUpgradePlugin
public NodePathUpgradePlugin(org.exoplatform.services.jcr.RepositoryService repoService,
org.exoplatform.container.xml.InitParams initParams)
processUpgrade
public void processUpgrade(String oldVersion,
String newVersion)
- Specified by:
processUpgrade in class org.exoplatform.commons.upgrade.UpgradeProductPlugin
shouldProceedToUpgrade
public boolean shouldProceedToUpgrade(String newVersion,
String previousVersion)
- Specified by:
shouldProceedToUpgrade in class org.exoplatform.commons.upgrade.UpgradeProductPlugin
Copyright © 2003–2014 eXo Platform SAS. All rights reserved.