public class UpgradeNodeTypesTemplatesService
extends org.exoplatform.commons.upgrade.UpgradeProductPlugin
asyncUpgradeExecution, executeOnlyOnce, OLD_PRODUCT_GROUP_ID, oldProductGroupId, PRODUCT_GROUP_ID, productGroupId, targetVersion, UPGRADE_COMPLETED_STATUS, UPGRADE_PLUGIN_ASYNC, UPGRADE_PLUGIN_ENABLE, UPGRADE_PLUGIN_EXECUTE_ONCE_PARAMETER, UPGRADE_PLUGIN_EXECUTION_ORDER, UPGRADE_PLUGIN_TARGET_PARAMETER| Constructor and Description |
|---|
UpgradeNodeTypesTemplatesService(org.exoplatform.services.jcr.RepositoryService repositoryService,
org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator nodeHierarchyCreator,
org.exoplatform.services.cms.impl.DMSConfiguration dmsConfiguration,
org.exoplatform.services.cms.templates.TemplateService templateService,
org.exoplatform.container.configuration.ConfigurationManager configurationManager,
org.exoplatform.container.xml.InitParams initParams) |
| Modifier and Type | Method and Description |
|---|---|
void |
addNodeVersion(javax.jcr.Node nodeToAddVersion,
String versionLabel)
Add node's version with a label.
|
void |
processUpgrade(String oldVersion,
String newVersion) |
boolean |
shouldProceedToUpgrade(String previousVersion,
String newVersion) |
afterUpgrade, beforeUpgrade, equals, getPluginExecutionOrder, getProductGroupId, getTargetVersion, getValue, hashCode, isAsyncUpgradeExecution, isEnabled, isExecuteOnlyOnce, shouldProceedToUpgrade, storeValueForPluginpublic UpgradeNodeTypesTemplatesService(org.exoplatform.services.jcr.RepositoryService repositoryService,
org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator nodeHierarchyCreator,
org.exoplatform.services.cms.impl.DMSConfiguration dmsConfiguration,
org.exoplatform.services.cms.templates.TemplateService templateService,
org.exoplatform.container.configuration.ConfigurationManager configurationManager,
org.exoplatform.container.xml.InitParams initParams)
public void processUpgrade(String oldVersion, String newVersion)
processUpgrade in class org.exoplatform.commons.upgrade.UpgradeProductPluginpublic boolean shouldProceedToUpgrade(String previousVersion, String newVersion)
shouldProceedToUpgrade in class org.exoplatform.commons.upgrade.UpgradeProductPluginpublic void addNodeVersion(javax.jcr.Node nodeToAddVersion,
String versionLabel)
throws javax.jcr.nodetype.NoSuchNodeTypeException,
javax.jcr.version.VersionException,
javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.lock.LockException,
javax.jcr.AccessDeniedException,
javax.jcr.ItemExistsException,
javax.jcr.InvalidItemStateException,
javax.jcr.ReferentialIntegrityException,
javax.jcr.RepositoryException
nodeToAddVersion - the node that will be versionedversionLabel - the label to apply to the new created versionjavax.jcr.nodetype.NoSuchNodeTypeExceptionjavax.jcr.version.VersionExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.lock.LockExceptionjavax.jcr.AccessDeniedExceptionjavax.jcr.ItemExistsExceptionjavax.jcr.InvalidItemStateExceptionjavax.jcr.ReferentialIntegrityExceptionjavax.jcr.RepositoryExceptionCopyright © 2003–2020 eXo Platform SAS. All rights reserved.