Class SupportAutomatedBundleConfiguration

    • Constructor Detail

      • SupportAutomatedBundleConfiguration

        public SupportAutomatedBundleConfiguration()
    • Method Detail

      • getComponentIds

        public List<String> getComponentIds()
      • getDefaultComponentIds

        public static List<String> getDefaultComponentIds()
        Get the default list of Component Ids for the automated bundle generation.
        Returns:
        a list of String
      • isEnabled

        public boolean isEnabled()
      • getPeriod

        public int getPeriod()
      • setComponentIds

        @DataBoundSetter
        public void setComponentIds​(List<String> componentIds)
      • setEnabled

        @DataBoundSetter
        public void setEnabled​(boolean enabled)
      • isEnforcedDisabled

        public boolean isEnforcedDisabled()
        Return if the enabled is enforced to false by the System Property SupportPlugin.AUTO_BUNDLE_PERIOD_HOURS. That is if the system property value is 0.
        Returns:
        true if enforced by system property, false otherwise
      • setPeriod

        @DataBoundSetter
        public void setPeriod​(Integer period)
      • getComponents

        public List<Component> getComponents()
        Get the list of Component currently configured for automated bundle generation.
        Returns:
        The list of Component currently configured
      • isComponentSelected

        public boolean isComponentSelected​(Component component)
      • getApplicableComponents

        public static List<Component> getApplicableComponents()
        Get the list of applicable (and therefore selectable) Component for the automated bundle generation.
        Returns:
        a list of Component
      • parseRequest

        protected final List<String> parseRequest​(org.kohsuke.stapler.StaplerRequest req,
                                                  net.sf.json.JSONObject json)
        Parse the stapler JSON output and retrieve configured components.
        Parameters:
        req - the request
        Returns:
        the DescribableList of components