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

public abstract class AbstractXsltFileUpgradeOperation extends AbstractUpgradeOperation
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 Details

    • CONFIG_KEY_TEMPLATE

      public static final String CONFIG_KEY_TEMPLATE
      See Also:
    • template

      protected org.springframework.core.io.Resource template
      Template file to be applied.
  • Constructor Details

    • AbstractXsltFileUpgradeOperation

      public AbstractXsltFileUpgradeOperation(StudioConfiguration studioConfiguration)
  • Method Details

    • setTemplate

      public void setTemplate(org.springframework.core.io.Resource template)
    • doInit

      protected void doInit(org.apache.commons.configuration2.HierarchicalConfiguration config)
      Overrides:
      doInit in class org.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

      protected URIResolver getURIResolver(StudioUpgradeContext context)