Class GlobalConfig
java.lang.Object
hudson.model.Descriptor<GlobalConfiguration>
jenkins.model.GlobalConfiguration
io.jenkins.plugins.railflow.jenkins.admin.GlobalConfig
- All Implemented Interfaces:
ExtensionPoint,Describable<GlobalConfiguration>,Saveable,Loadable,OnMaster
Global configuration page.
- Author:
- Sergey Oplavin, Liu Yang
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.SelfNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.model.Descriptor
clazz -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanconfigure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json) org.kohsuke.stapler.HttpResponsedoActivateLicenseKey(String licenseKey) org.kohsuke.stapler.HttpResponsedoUploadLicenseFile(org.kohsuke.stapler.StaplerRequest req) Used from the Jelly.booleanbooleanisTrial()booleanvoidsetLicenseContent(Secret licenseContent) voidsetOnlineActivation(boolean onlineActivation) voidsetTestRailServers(List<TestRailServerConfig> testRailServers) voidsetTrial(boolean trial) voidsetUploadStatistics(boolean uploadStatistics) Methods inherited from class jenkins.model.GlobalConfiguration
all, getDescriptor, getGlobalConfigPageMethods 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, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
GlobalConfig
public GlobalConfig()
-
-
Method Details
-
getDisplayName
- Overrides:
getDisplayNamein classDescriptor<GlobalConfiguration>
-
configure
@POST public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json) throws Descriptor.FormException - Overrides:
configurein classGlobalConfiguration- Throws:
Descriptor.FormException
-
doUploadLicenseFile
@POST public org.kohsuke.stapler.HttpResponse doUploadLicenseFile(org.kohsuke.stapler.StaplerRequest req) throws javax.servlet.ServletException, IOException - Throws:
javax.servlet.ServletExceptionIOException
-
doActivateLicenseKey
@POST public org.kohsuke.stapler.HttpResponse doActivateLicenseKey(@QueryParameter String licenseKey) -
getTestRailServers
-
setTestRailServers
-
isOnlineActivation
public boolean isOnlineActivation() -
setOnlineActivation
@DataBoundSetter public void setOnlineActivation(boolean onlineActivation) -
getLicenseContent
-
setLicenseContent
-
isUploadStatistics
public boolean isUploadStatistics() -
setUploadStatistics
@DataBoundSetter public void setUploadStatistics(boolean uploadStatistics) -
isTrial
public boolean isTrial() -
setTrial
@DataBoundSetter public void setTrial(boolean trial) -
getLicenseExpirationDate
-
getLicenseExpirationDateString
Used from the Jelly.- Returns:
- license expiration date as sting to be displayed in the UI.
-