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 String
static final String
protected String
Path of the file to use as inputprotected String
Path of the file to use as outputFields inherited from class org.craftercms.studio.impl.v2.upgrade.operations.site.AbstractXsltFileUpgradeOperation
CONFIG_KEY_TEMPLATE, template
Fields inherited from class org.craftercms.studio.impl.v2.upgrade.operations.AbstractUpgradeOperation
changedFiles, commitDetails, CONFIG_KEY_COMMIT_DETAILS, deletedFiles, servletContext, studioConfiguration
Fields 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 TypeMethodDescriptionvoid
doExecute
(StudioUpgradeContext context) void
doInit
(org.apache.commons.configuration2.HierarchicalConfiguration config) void
Methods inherited from class org.craftercms.studio.impl.v2.upgrade.operations.site.AbstractXsltFileUpgradeOperation
executeTemplate, getURIResolver, setTemplate
Methods inherited from class org.craftercms.studio.impl.v2.upgrade.operations.AbstractUpgradeOperation
commitAllChanges, doExecute, getCommitMessage, init, loadResource, setServletContext, trackChangedFiles, trackDeletedFiles
Methods 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:
doInit
in classAbstractXsltFileUpgradeOperation
-
doExecute
- Specified by:
doExecute
in classAbstractUpgradeOperation
- Throws:
Exception
-