Class ProvisioningAction


  • public class ProvisioningAction
    extends Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      List<License> getPendingLicenses​(org.jboss.galleon.config.ProvisioningConfig provisioningConfig, List<org.wildfly.channel.Channel> channels)
      List agreements and licenses that need to be accepted before installing the required Feature Packs.
      void provision​(org.jboss.galleon.config.ProvisioningConfig provisioningConfig, List<org.wildfly.channel.Channel> channels)
      Provision installation according to given ProvisioningDefinition.
      void provision​(org.jboss.galleon.config.ProvisioningConfig provisioningConfig, List<org.wildfly.channel.Channel> channels, List<org.wildfly.channel.Repository> overwriteRepositories)
      Provision installation according to given ProvisioningDefinition.
    • Constructor Detail

      • ProvisioningAction

        public ProvisioningAction​(Path installDir,
                                  MavenOptions mvnOptions,
                                  Console console)
                           throws org.jboss.galleon.ProvisioningException
        Throws:
        org.jboss.galleon.ProvisioningException
    • Method Detail

      • provision

        public void provision​(org.jboss.galleon.config.ProvisioningConfig provisioningConfig,
                              List<org.wildfly.channel.Channel> channels)
                       throws MalformedURLException,
                              org.jboss.galleon.ProvisioningException,
                              OperationException
        Provision installation according to given ProvisioningDefinition. NOTE: All required licenses are assumed to be accepted by calling this method.
        Parameters:
        provisioningConfig - prospero provisioning definition
        channels - list of channels to resolve installed artifacts
        Throws:
        MalformedURLException
        org.jboss.galleon.ProvisioningException
        OperationException
      • provision

        public void provision​(org.jboss.galleon.config.ProvisioningConfig provisioningConfig,
                              List<org.wildfly.channel.Channel> channels,
                              List<org.wildfly.channel.Repository> overwriteRepositories)
                       throws org.jboss.galleon.ProvisioningException,
                              OperationException,
                              MalformedURLException
        Provision installation according to given ProvisioningDefinition. The overrideRepositories replace any repositories defined in channels for duration of this operation. They are not persisted in the provisioned configuration. NOTE: All required licenses are assumed to be accepted by calling this method.
        Parameters:
        provisioningConfig - prospero provisioning definition
        channels - list of channels to resolve installed artifacts
        overwriteRepositories - list of repositories to resolve installed artifacts from. They do not alter persisted channel definitions.
        Throws:
        org.jboss.galleon.ProvisioningException
        OperationException
        MalformedURLException
      • getPendingLicenses

        public List<License> getPendingLicenses​(org.jboss.galleon.config.ProvisioningConfig provisioningConfig,
                                                List<org.wildfly.channel.Channel> channels)
                                         throws OperationException
        List agreements and licenses that need to be accepted before installing the required Feature Packs.
        Parameters:
        provisioningConfig - - list of Feature Packs being installed
        channels - - list of channels used to resolve the Feature Packs
        Returns:
        - list of License, or empty list if no licenses were required
        Throws:
        OperationException