Interface StudioUpgradeManager

  • All Superinterfaces:
    org.craftercms.commons.upgrade.UpgradeManager<String>
    All Known Implementing Classes:
    StudioUpgradeManagerImpl

    public interface StudioUpgradeManager
    extends org.craftercms.commons.upgrade.UpgradeManager<String>
    Extension of UpgradeManager that adds Studio specific operations.
    Since:
    3.1.0
    Author:
    joseross
    • Method Detail

      • upgradeDatabaseAndConfiguration

        void upgradeDatabaseAndConfiguration()
                                      throws org.craftercms.commons.upgrade.exception.UpgradeException,
                                             org.craftercms.commons.config.ConfigurationException
        Executes all required upgrades for the system.
        Throws:
        org.craftercms.commons.upgrade.exception.UpgradeException - if any of the upgrades fails
        org.craftercms.commons.config.ConfigurationException
      • upgradeSiteConfiguration

        void upgradeSiteConfiguration​(StudioUpgradeContext context)
                               throws org.craftercms.commons.upgrade.exception.UpgradeException
        Executes the upgrades for all managed configurations in the given site.
        Parameters:
        context - the context for the upgrades
        Throws:
        org.craftercms.commons.upgrade.exception.UpgradeException - if any of the upgrades fails
      • upgradeExistingSites

        void upgradeExistingSites()
                           throws org.craftercms.commons.upgrade.exception.UpgradeException
        Executes the upgrades for all existing sites.
        Throws:
        org.craftercms.commons.upgrade.exception.UpgradeException - if any of the upgrades fails
      • upgradeBlueprints

        void upgradeBlueprints()
                        throws org.craftercms.commons.upgrade.exception.UpgradeException,
                               org.craftercms.commons.config.ConfigurationException
        Executes all required upgrades for the blueprints.
        Throws:
        org.craftercms.commons.upgrade.exception.UpgradeException - if any of the upgrades fails
        org.craftercms.commons.config.ConfigurationException
      • getExistingEnvironments

        List<String> getExistingEnvironments​(String site)
        Returns all existing environments for the given site
        Parameters:
        site - the id of the site
        Returns:
        the list of environments