Package com.openshift.jenkins.plugins
Class OpenShift.DescriptorImpl
- java.lang.Object
-
- hudson.model.Descriptor<OpenShift>
-
- com.openshift.jenkins.plugins.OpenShift.DescriptorImpl
-
- Enclosing class:
- OpenShift
@Extension public static class OpenShift.DescriptorImpl extends Descriptor<OpenShift>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
-
-
Field Summary
Fields Modifier and Type Field Description List<ClusterConfig>
clusterConfigs
String
ocTool
-
Fields inherited from class hudson.model.Descriptor
clazz
-
-
Constructor Summary
Constructors Constructor Description DescriptorImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addClusterConfig(ClusterConfig clusterConfig)
boolean
configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json)
ListBoxModel
doFillLogLevelItems()
String
getClientToolName()
ClusterConfig
getClusterConfig(String name)
Determines if a cluster has been configured with a given name.List<ClusterConfig>
getClusterConfigs()
String
getDisplayName()
void
removeClusterConfig(ClusterConfig clusterConfig)
void
setClusterConfigs(List<ClusterConfig> configs)
-
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, getGlobalConfigPage, 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
-
-
-
-
Field Detail
-
clusterConfigs
public List<ClusterConfig> clusterConfigs
-
ocTool
public String ocTool
-
-
Method Detail
-
getDisplayName
public String getDisplayName()
- Overrides:
getDisplayName
in classDescriptor<OpenShift>
-
getClientToolName
public String getClientToolName()
-
removeClusterConfig
public void removeClusterConfig(ClusterConfig clusterConfig) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
addClusterConfig
public void addClusterConfig(ClusterConfig clusterConfig)
-
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json) throws Descriptor.FormException
- Overrides:
configure
in classDescriptor<OpenShift>
- Throws:
Descriptor.FormException
-
doFillLogLevelItems
public ListBoxModel doFillLogLevelItems()
-
getClusterConfigs
public List<ClusterConfig> getClusterConfigs()
-
setClusterConfigs
public void setClusterConfigs(List<ClusterConfig> configs)
-
getClusterConfig
public ClusterConfig getClusterConfig(String name)
Determines if a cluster has been configured with a given name. If a cluster has been configured with the name, its definition is returned.- Parameters:
name
- The name of the cluster config to find- Returns:
- A ClusterConfig for the supplied parameters OR null.
-
-