Class AddFileUpgradeOperation

  • All Implemented Interfaces:
    org.craftercms.commons.upgrade.UpgradeOperation<String>, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.web.context.ServletContextAware

    public class AddFileUpgradeOperation
    extends AbstractUpgradeOperation
    Implementation of UpgradeOperation that adds a new file to a repository.

    Supported YAML properties:

    • path: (required) the relative path to write the file in the repository
    • file: (required) the location of the file to copy
    Author:
    joseross
    • Field Detail

      • path

        protected String path
        The path to write the file.
      • file

        protected org.springframework.core.io.Resource file
        The file to copy from the classpath.
    • Constructor Detail

      • AddFileUpgradeOperation

        public AddFileUpgradeOperation​(StudioConfiguration studioConfiguration)
    • Method Detail

      • doInit

        public void doInit​(org.apache.commons.configuration2.HierarchicalConfiguration config)
        Overrides:
        doInit in class org.craftercms.commons.upgrade.impl.operations.AbstractUpgradeOperation<String>