Class XsltFileUpgradeOperation
java.lang.Object
org.craftercms.commons.upgrade.impl.operations.AbstractUpgradeOperation<String>
org.craftercms.studio.impl.v2.upgrade.operations.AbstractUpgradeOperation
org.craftercms.studio.impl.v2.upgrade.operations.site.AbstractXsltFileUpgradeOperation
org.craftercms.studio.impl.v2.upgrade.operations.site.XsltFileUpgradeOperation
- All Implemented Interfaces:
org.craftercms.commons.upgrade.UpgradeOperation<String>,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware,org.springframework.web.context.ServletContextAware
Implementation of
UpgradeOperation that updates a single file using
an XSLT template.
Supported YAML properties:
- path: (optional) the relative path to update in the repository
- target: (optional) the relative path in the repository to use as output
- Since:
- 3.1.0
- Author:
- joseross
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringprotected StringPath of the file to use as inputprotected StringPath of the file to use as outputFields inherited from class org.craftercms.studio.impl.v2.upgrade.operations.site.AbstractXsltFileUpgradeOperation
CONFIG_KEY_TEMPLATE, templateFields inherited from class org.craftercms.studio.impl.v2.upgrade.operations.AbstractUpgradeOperation
changedFiles, commitDetails, CONFIG_KEY_COMMIT_DETAILS, deletedFiles, servletContext, studioConfigurationFields inherited from class org.craftercms.commons.upgrade.impl.operations.AbstractUpgradeOperation
applicationContext, currentVersion, enabled, nextVersion -
Constructor Summary
ConstructorsConstructorDescriptionXsltFileUpgradeOperation(StudioConfiguration studioConfiguration, DataSource dataSource) -
Method Summary
Modifier and TypeMethodDescriptionvoiddoExecute(StudioUpgradeContext context) voiddoInit(org.apache.commons.configuration2.HierarchicalConfiguration config) voidMethods inherited from class org.craftercms.studio.impl.v2.upgrade.operations.site.AbstractXsltFileUpgradeOperation
executeTemplate, getURIResolver, setTemplateMethods inherited from class org.craftercms.studio.impl.v2.upgrade.operations.AbstractUpgradeOperation
commitAllChanges, doExecute, getCommitMessage, init, loadResource, setServletContext, trackChangedFiles, trackDeletedFilesMethods inherited from class org.craftercms.commons.upgrade.impl.operations.AbstractUpgradeOperation
execute, setApplicationContext, setEnabled
-
Field Details
-
CONFIG_KEY_PATH
- See Also:
-
CONFIG_KEY_TARGET
- See Also:
-
path
Path of the file to use as input -
target
Path of the file to use as output
-
-
Constructor Details
-
XsltFileUpgradeOperation
-
-
Method Details
-
setPath
-
doInit
public void doInit(org.apache.commons.configuration2.HierarchicalConfiguration config) - Overrides:
doInitin classAbstractXsltFileUpgradeOperation
-
doExecute
- Specified by:
doExecutein classAbstractUpgradeOperation- Throws:
Exception
-