Package io.fabric8.jenkins.openshiftsync
Class GlobalPluginConfiguration
- java.lang.Object
-
- hudson.model.Descriptor<GlobalConfiguration>
-
- jenkins.model.GlobalConfiguration
-
- io.fabric8.jenkins.openshiftsync.GlobalPluginConfiguration
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<GlobalConfiguration>
,Saveable
,OnMaster
@Extension public class GlobalPluginConfiguration extends GlobalConfiguration
-
-
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 GlobalPluginConfiguration()
GlobalPluginConfiguration(boolean enable, String server, String namespace, boolean foldersEnabled, String credentialsId, String jobNamePattern, String skipOrganizationPrefix, String skipBranchSuffix, int buildListInterval, int buildConfigListInterval, int configMapListInterval, int secretListInterval, int imageStreamListInterval, boolean useClusterMode, boolean syncConfigMaps, boolean syncSecrets, boolean syncImageStreams, boolean syncBuildsConfigAndBuilds, int maxConnections)
-
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)
static ListBoxModel
doFillCredentialsIdItems(String credentialsId)
FormValidation
doValidate(boolean useClusterMode, boolean syncConfigMaps, boolean syncSecrets, boolean syncImageStreams, boolean syncBuildConfigsAndBuilds, int maxConnections, String namespace, Job job)
Validates OpenShift Sync Configuration form by checstatic GlobalPluginConfiguration
get()
int
getBuildConfigListInterval()
int
getBuildListInterval()
int
getConfigMapListInterval()
String
getCredentialsId()
String
getDisplayName()
boolean
getFoldersEnabled()
int
getImageStreamListInterval()
String
getJobNamePattern()
int
getMaxConnections()
String
getNamespace()
int
getSecretListInterval()
String
getServer()
String
getSkipBranchSuffix()
String
getSkipOrganizationPrefix()
boolean
isEnabled()
boolean
isSyncBuildConfigsAndBuilds()
boolean
isSyncConfigMaps()
boolean
isSyncImageStreams()
boolean
isSyncSecrets()
boolean
isUseClusterMode()
void
setBuildConfigListInterval(int buildConfigListInterval)
void
setBuildListInterval(int buildListInterval)
void
setConfigMapListInterval(int configMapListInterval)
void
setCredentialsId(String credentialsId)
void
setEnabled(boolean enabled)
void
setFoldersEnabled(boolean foldersEnabled)
void
setImageStreamListInterval(int imageStreamListInterval)
void
setJobNamePattern(String jobNamePattern)
void
setMaxConnections(int maxConnections)
void
setNamespace(String namespace)
void
setSecretListInterval(int secretListInterval)
void
setServer(String server)
void
setSkipBranchSuffix(String skipBranchSuffix)
void
setSkipOrganizationPrefix(String skipOrganizationPrefix)
void
setSyncBuildConfigsAndBuilds(boolean syncBuildConfigsAndBuilds)
void
setSyncConfigMaps(boolean syncConfigMaps)
void
setSyncImageStreams(boolean syncImageStreams)
void
setSyncSecrets(boolean syncSecrets)
void
setUseClusterMode(boolean useClusterMode)
-
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, 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
-
GlobalPluginConfiguration
@DataBoundConstructor public GlobalPluginConfiguration(boolean enable, String server, String namespace, boolean foldersEnabled, String credentialsId, String jobNamePattern, String skipOrganizationPrefix, String skipBranchSuffix, int buildListInterval, int buildConfigListInterval, int configMapListInterval, int secretListInterval, int imageStreamListInterval, boolean useClusterMode, boolean syncConfigMaps, boolean syncSecrets, boolean syncImageStreams, boolean syncBuildsConfigAndBuilds, int maxConnections)
-
GlobalPluginConfiguration
public GlobalPluginConfiguration()
-
-
Method Detail
-
get
public static GlobalPluginConfiguration get()
-
doValidate
@POST public FormValidation doValidate(@QueryParameter("useClusterMode") boolean useClusterMode, @QueryParameter("syncConfigMaps") boolean syncConfigMaps, @QueryParameter("syncSecrets") boolean syncSecrets, @QueryParameter("syncImageStreams") boolean syncImageStreams, @QueryParameter("syncBuildConfigsAndBuilds") boolean syncBuildConfigsAndBuilds, @QueryParameter("maxConnections") int maxConnections, @QueryParameter("namespace") String namespace, @AncestorInPath Job job) throws IOException, javax.servlet.ServletException
Validates OpenShift Sync Configuration form by chec- Throws:
IOException
javax.servlet.ServletException
-
getDisplayName
public String getDisplayName()
- Overrides:
getDisplayName
in classDescriptor<GlobalConfiguration>
-
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json) throws Descriptor.FormException
- Overrides:
configure
in classGlobalConfiguration
- Throws:
Descriptor.FormException
-
doFillCredentialsIdItems
public static ListBoxModel doFillCredentialsIdItems(String credentialsId)
-
isEnabled
public boolean isEnabled()
-
setEnabled
public void setEnabled(boolean enabled)
-
getServer
public String getServer()
-
setServer
public void setServer(String server)
-
getCredentialsId
public String getCredentialsId()
-
setCredentialsId
public void setCredentialsId(String credentialsId)
-
getNamespace
public String getNamespace()
-
setNamespace
public void setNamespace(String namespace)
-
getFoldersEnabled
public boolean getFoldersEnabled()
-
setFoldersEnabled
public void setFoldersEnabled(boolean foldersEnabled)
-
getJobNamePattern
public String getJobNamePattern()
-
setJobNamePattern
public void setJobNamePattern(String jobNamePattern)
-
getSkipOrganizationPrefix
public String getSkipOrganizationPrefix()
-
setSkipOrganizationPrefix
public void setSkipOrganizationPrefix(String skipOrganizationPrefix)
-
getSkipBranchSuffix
public String getSkipBranchSuffix()
-
setSkipBranchSuffix
public void setSkipBranchSuffix(String skipBranchSuffix)
-
getBuildListInterval
public int getBuildListInterval()
-
setBuildListInterval
public void setBuildListInterval(int buildListInterval)
-
getBuildConfigListInterval
public int getBuildConfigListInterval()
-
setBuildConfigListInterval
public void setBuildConfigListInterval(int buildConfigListInterval)
-
getSecretListInterval
public int getSecretListInterval()
-
setSecretListInterval
public void setSecretListInterval(int secretListInterval)
-
getConfigMapListInterval
public int getConfigMapListInterval()
-
setConfigMapListInterval
public void setConfigMapListInterval(int configMapListInterval)
-
getImageStreamListInterval
public int getImageStreamListInterval()
-
setImageStreamListInterval
public void setImageStreamListInterval(int imageStreamListInterval)
-
isUseClusterMode
public boolean isUseClusterMode()
-
setUseClusterMode
public void setUseClusterMode(boolean useClusterMode)
-
isSyncConfigMaps
public boolean isSyncConfigMaps()
-
setSyncConfigMaps
public void setSyncConfigMaps(boolean syncConfigMaps)
-
isSyncSecrets
public boolean isSyncSecrets()
-
setSyncSecrets
public void setSyncSecrets(boolean syncSecrets)
-
isSyncImageStreams
public boolean isSyncImageStreams()
-
setSyncImageStreams
public void setSyncImageStreams(boolean syncImageStreams)
-
isSyncBuildConfigsAndBuilds
public boolean isSyncBuildConfigsAndBuilds()
-
setSyncBuildConfigsAndBuilds
public void setSyncBuildConfigsAndBuilds(boolean syncBuildConfigsAndBuilds)
-
getMaxConnections
public int getMaxConnections()
-
setMaxConnections
public void setMaxConnections(int maxConnections)
-
-