@Extension @Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) @Symbol(value="automatedBundleConfiguration") public class SupportAutomatedBundleConfiguration extends GlobalConfiguration
SupportPlugin.PeriodicWorkImpl
.Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
ExtensionPoint.LegacyInstancesAreScopedToHudson
clazz
Constructor and Description |
---|
SupportAutomatedBundleConfiguration() |
Modifier and Type | Method and Description |
---|---|
boolean |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject json) |
FormValidation |
doCheckPeriod(String value) |
static SupportAutomatedBundleConfiguration |
get()
Gets the singleton instance.
|
static List<Component> |
getApplicableComponents()
Get the list of applicable (and therefore selectable)
Component for the automated bundle generation. |
GlobalConfigurationCategory |
getCategory() |
List<String> |
getComponentIds() |
List<Component> |
getComponents()
Get the list of
Component currnetly configured for automated bundle generation. |
static List<String> |
getDefaultComponentIds()
Get the default list of Component Ids for the automated bundle generation.
|
String |
getDisplayName() |
int |
getPeriod() |
boolean |
isComponentSelected(Component component) |
boolean |
isEnabled() |
boolean |
isEnforcedDisabled()
Return if the
enabled is enforced to false by the System Property
SupportPlugin.AUTO_BUNDLE_PERIOD_HOURS . |
boolean |
isEnforcedPeriod()
Return if the
period is enforced by the System Property
SupportPlugin.AUTO_BUNDLE_PERIOD_HOURS . |
protected List<String> |
parseRequest(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject json)
Parse the stapler JSON output and retrieve configured components.
|
void |
setComponentIds(List<String> componentIds) |
void |
setEnabled(boolean enabled) |
void |
setPeriod(Integer period) |
all, getDescriptor, getGlobalConfigPage
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, findByDescribableClassName, findById, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
@NonNull public static SupportAutomatedBundleConfiguration get()
public static List<String> getDefaultComponentIds()
String
public boolean isEnabled()
public int getPeriod()
public boolean isEnforcedPeriod()
period
is enforced by the System Property
SupportPlugin.AUTO_BUNDLE_PERIOD_HOURS
.String
@DataBoundSetter public void setEnabled(boolean enabled)
public boolean isEnforcedDisabled()
enabled
is enforced to false by the System Property
SupportPlugin.AUTO_BUNDLE_PERIOD_HOURS
. That is if the system property value is 0.String
@DataBoundSetter public void setPeriod(Integer period)
@NonNull public String getDisplayName()
getDisplayName
in class Descriptor<GlobalConfiguration>
public List<Component> getComponents()
Component
currnetly configured for automated bundle generation.Component
currently configuredpublic boolean isComponentSelected(Component component)
public static List<Component> getApplicableComponents()
Component
for the automated bundle generation.Component
@POST public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json) throws Descriptor.FormException
configure
in class GlobalConfiguration
Descriptor.FormException
protected final List<String> parseRequest(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json)
req
- the requestDescribableList
of components@NonNull public GlobalConfigurationCategory getCategory()
getCategory
in class Descriptor<GlobalConfiguration>
public FormValidation doCheckPeriod(@QueryParameter String value)
Copyright © 2016–2022. All rights reserved.