public class BatchXsltFileUpgradeOperation extends AbstractXsltFileUpgradeOperation
UpgradeOperation
that updates multiple files using a XSLT template.
Supported YAML properties:
Modifier and Type | Field and Description |
---|---|
static String |
CONFIG_KEY_REGEX |
protected String |
regex |
CONFIG_KEY_TEMPLATE, SAXON_CLASS, template
applicationContext, commitDetails, CONFIG_KEY_COMMIT_DETAILS, contentRepository, currentVersion, dataSource, generalLockService, nextVersion, servletContext, studioConfiguration
Constructor and Description |
---|
BatchXsltFileUpgradeOperation() |
Modifier and Type | Method and Description |
---|---|
protected void |
doInit(org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> config) |
void |
execute(String site)
Performs a single upgrade operation.
|
executeTemplate, getURIResolver, setTemplate
commitAllChanges, getCommitMessage, getConnection, getContentRepository, getGeneralLockService, getProperty, getRepositoryPath, init, loadResource, setApplicationContext, setContentRepository, setDataSource, setGeneralLockService, setServletContext, setStudioConfiguration, writeToRepo
public static final String CONFIG_KEY_REGEX
protected String regex
protected void doInit(org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> config)
doInit
in class AbstractXsltFileUpgradeOperation
public void execute(String site) throws UpgradeException
UpgradeOperation
site
- the name of the siteUpgradeException
- if there is any error performing the upgradeCopyright © 2023 CrafterCMS. All rights reserved.