Package io.jenkins.plugins.cloudaeye
Class CloudAEyeGlobalKeyConfiguration
java.lang.Object
hudson.model.Descriptor<GlobalConfiguration>
jenkins.model.GlobalConfiguration
io.jenkins.plugins.cloudaeye.CloudAEyeGlobalKeyConfiguration
- All Implemented Interfaces:
ExtensionPoint,Describable<GlobalConfiguration>,Saveable,Loadable,OnMaster
Handles the global key configuration for the plugin
-
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 TypeMethodDescriptiondoCheckTenantKey(String tenantKey) Validates the tenantKeydoCheckToken(String token) doTestConnection(Secret tenantKey, Secret token) Makes a dynamic ping to test the connectivity with the CloudAEye webhookget()getToken()voidsetTenantKey(Secret tenantKey) voidMethods inherited from class jenkins.model.GlobalConfiguration
all, configure, 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, 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
-
Constructor Details
-
CloudAEyeGlobalKeyConfiguration
public CloudAEyeGlobalKeyConfiguration()
-
-
Method Details
-
get
- Returns:
- the singleton instance
-
getTenantKey
-
setTenantKey
-
getToken
-
setToken
-
doCheckTenantKey
Validates the tenantKey- Parameters:
tenantKey- CloudAEye webhook tenantKey- Returns:
- Valid form
-
doCheckToken
-
doTestConnection
@POST public FormValidation doTestConnection(@QueryParameter("tenantKey") Secret tenantKey, @QueryParameter("token") Secret token) throws IOException, javax.servlet.ServletException Makes a dynamic ping to test the connectivity with the CloudAEye webhook- Parameters:
tenantKey- Unique key assigned to the tenanttoken- Secret token- Returns:
- A valid/invalid form response
- Throws:
IOExceptionjavax.servlet.ServletException
-