Class PolarisGlobalConfig
- java.lang.Object
-
- hudson.model.Descriptor<GlobalConfiguration>
-
- jenkins.model.GlobalConfiguration
-
- com.blackduck.integration.jenkins.polaris.extensions.global.PolarisGlobalConfig
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<GlobalConfiguration>
,Saveable
,Serializable
,Loadable
,OnMaster
@Extension public class PolarisGlobalConfig extends GlobalConfiguration implements Serializable
- See Also:
- Serialized Form
-
-
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 PolarisGlobalConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PolarisServerConfigBuilder
createPolarisServerConfigBuilder(com.blackduck.integration.jenkins.wrapper.BlackduckCredentialsHelper blackduckCredentialsHelper, com.blackduck.integration.jenkins.wrapper.JenkinsProxyHelper jenkinsProxyHelper, String polarisUrl, String credentialsId, int timeout)
void
doConfigDotXml(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
ListBoxModel
doFillPolarisCredentialsIdItems()
FormValidation
doTestPolarisConnection(String polarisUrl, String polarisCredentialsId, String polarisTimeout)
String
getPolarisCredentialsId()
PolarisServerConfig
getPolarisServerConfig(com.blackduck.integration.jenkins.wrapper.BlackduckCredentialsHelper credentialsHelper, com.blackduck.integration.jenkins.wrapper.JenkinsProxyHelper jenkinsProxyHelper)
PolarisServerConfigBuilder
getPolarisServerConfigBuilder(com.blackduck.integration.jenkins.wrapper.BlackduckCredentialsHelper credentialsHelper, com.blackduck.integration.jenkins.wrapper.JenkinsProxyHelper jenkinsProxyHelper)
int
getPolarisTimeout()
String
getPolarisUrl()
void
setPolarisCredentialsId(String polarisCredentialsId)
void
setPolarisTimeout(int polarisTimeout)
void
setPolarisUrl(String polarisUrl)
-
Methods inherited from class jenkins.model.GlobalConfiguration
all, configure, 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
-
-
-
-
Method Detail
-
getPolarisUrl
public String getPolarisUrl()
-
setPolarisUrl
@DataBoundSetter public void setPolarisUrl(String polarisUrl)
-
getPolarisCredentialsId
public String getPolarisCredentialsId()
-
setPolarisCredentialsId
@DataBoundSetter public void setPolarisCredentialsId(String polarisCredentialsId)
-
getPolarisTimeout
public int getPolarisTimeout()
-
setPolarisTimeout
@DataBoundSetter public void setPolarisTimeout(int polarisTimeout)
-
getPolarisServerConfig
public PolarisServerConfig getPolarisServerConfig(com.blackduck.integration.jenkins.wrapper.BlackduckCredentialsHelper credentialsHelper, com.blackduck.integration.jenkins.wrapper.JenkinsProxyHelper jenkinsProxyHelper) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
getPolarisServerConfigBuilder
public PolarisServerConfigBuilder getPolarisServerConfigBuilder(com.blackduck.integration.jenkins.wrapper.BlackduckCredentialsHelper credentialsHelper, com.blackduck.integration.jenkins.wrapper.JenkinsProxyHelper jenkinsProxyHelper) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
doFillPolarisCredentialsIdItems
public ListBoxModel doFillPolarisCredentialsIdItems()
-
doTestPolarisConnection
@POST public FormValidation doTestPolarisConnection(@QueryParameter("polarisUrl") String polarisUrl, @QueryParameter("polarisCredentialsId") String polarisCredentialsId, @QueryParameter("polarisTimeout") String polarisTimeout)
-
doConfigDotXml
@WebMethod(name="config.xml") public void doConfigDotXml(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException, javax.servlet.ServletException, ParserConfigurationException
- Throws:
IOException
javax.servlet.ServletException
ParserConfigurationException
-
createPolarisServerConfigBuilder
public PolarisServerConfigBuilder createPolarisServerConfigBuilder(com.blackduck.integration.jenkins.wrapper.BlackduckCredentialsHelper blackduckCredentialsHelper, com.blackduck.integration.jenkins.wrapper.JenkinsProxyHelper jenkinsProxyHelper, String polarisUrl, String credentialsId, int timeout)
-
-