Class 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 Detail

      • template

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

      • AbstractXsltFileUpgradeOperation

        public AbstractXsltFileUpgradeOperation​(StudioConfiguration studioConfiguration)
    • Method Detail

      • 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