Class AbstractXsltFileUpgradeOperation
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
- All Implemented Interfaces:
org.craftercms.commons.upgrade.UpgradeOperation<String>,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware,org.springframework.web.context.ServletContextAware
- Direct Known Subclasses:
BatchXsltFileUpgradeOperation,XsltFileUpgradeOperation
Base implementation of
UpgradeOperation for all operations related
to an XSLT template.
Supported YAML properties:
- template: (required) the path to the XSLT template to apply
- Since:
- 3.1.1
- Author:
- joseross
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected org.springframework.core.io.ResourceTemplate file to be applied.Fields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoInit(org.apache.commons.configuration2.HierarchicalConfiguration config) protected voidexecuteTemplate(StudioUpgradeContext context, String path, OutputStream os) protected URIResolvergetURIResolver(StudioUpgradeContext context) voidsetTemplate(org.springframework.core.io.Resource template) Methods inherited from class org.craftercms.studio.impl.v2.upgrade.operations.AbstractUpgradeOperation
commitAllChanges, doExecute, doExecute, getCommitMessage, init, loadResource, setServletContext, trackChangedFiles, trackDeletedFilesMethods inherited from class org.craftercms.commons.upgrade.impl.operations.AbstractUpgradeOperation
execute, setApplicationContext, setEnabled
-
Field Details
-
CONFIG_KEY_TEMPLATE
- See Also:
-
template
protected org.springframework.core.io.Resource templateTemplate file to be applied.
-
-
Constructor Details
-
AbstractXsltFileUpgradeOperation
-
-
Method Details
-
setTemplate
public void setTemplate(org.springframework.core.io.Resource template) -
doInit
protected void doInit(org.apache.commons.configuration2.HierarchicalConfiguration config) - Overrides:
doInitin classorg.craftercms.commons.upgrade.impl.operations.AbstractUpgradeOperation<String>
-
executeTemplate
protected void executeTemplate(StudioUpgradeContext context, String path, OutputStream os) throws org.craftercms.commons.upgrade.exception.UpgradeException - Throws:
org.craftercms.commons.upgrade.exception.UpgradeException
-
getURIResolver
-