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
-
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
ConstructorsConstructorDescriptionGlobalPluginConfiguration
(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
Modifier and TypeMethodDescriptionboolean
configure
(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json) static ListBoxModel
doFillCredentialsIdItems
(String credentialsId) 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
int
int
boolean
int
int
int
boolean
boolean
boolean
boolean
boolean
boolean
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
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 Details
-
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 Details
-
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
- 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
-
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled) -
getServer
-
setServer
-
getCredentialsId
-
setCredentialsId
-
getNamespace
-
setNamespace
-
getFoldersEnabled
public boolean getFoldersEnabled() -
setFoldersEnabled
public void setFoldersEnabled(boolean foldersEnabled) -
getJobNamePattern
-
setJobNamePattern
-
getSkipOrganizationPrefix
-
setSkipOrganizationPrefix
-
getSkipBranchSuffix
-
setSkipBranchSuffix
-
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)
-