Class HALMGlobalConfig
- java.lang.Object
-
- hudson.model.Descriptor<GlobalConfiguration>
-
- jenkins.model.GlobalConfiguration
-
- com.perforce.halm.jenkins.globalconfig.HALMGlobalConfig
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<GlobalConfiguration>
,Saveable
,OnMaster
@Extension public class HALMGlobalConfig extends GlobalConfiguration
Helix ALM Global Configuration
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
-
Fields inherited from class hudson.model.Descriptor
clazz
-
-
Constructor Summary
Constructors Constructor Description HALMGlobalConfig()
ConstructorHALMGlobalConfig(List<HALMConnection> connections)
Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json)
List<? extends Descriptor>
descriptors()
static HALMGlobalConfig
get()
HALMConnection
getConnectionByNameOrID(String nameOrID)
This looks up a connection by either its name or ID.List<HALMConnection>
getConnections()
Returns the list of connectionsvoid
setConnections(List<HALMConnection> connections)
Sets the connections-
Methods inherited from class jenkins.model.GlobalConfiguration
all, getDescriptor, getGlobalConfigPage
-
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, 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
-
-
-
-
Constructor Detail
-
HALMGlobalConfig
@Inject public HALMGlobalConfig()
Constructor
-
HALMGlobalConfig
public HALMGlobalConfig(List<HALMConnection> connections)
Constructor- Parameters:
connections
- Connections to use to initialize internal connections
-
-
Method Detail
-
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json) throws Descriptor.FormException
- Overrides:
configure
in classGlobalConfiguration
- Throws:
Descriptor.FormException
-
get
public static HALMGlobalConfig get()
-
getConnections
public List<HALMConnection> getConnections()
Returns the list of connections- Returns:
- List of configured connections
-
setConnections
public void setConnections(List<HALMConnection> connections)
Sets the connections- Parameters:
connections
- List of connection to store
-
getConnectionByNameOrID
public HALMConnection getConnectionByNameOrID(String nameOrID)
This looks up a connection by either its name or ID. Useful in the context of a pipeline where we could have either. Names are not unique, but IDs are.- Parameters:
nameOrID
- Name or ID to search for- Returns:
- Returns the first match it finds, without regard for the order of the list.
-
descriptors
public List<? extends Descriptor> descriptors()
-
-