|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.model.Descriptor<jenkins.model.GlobalConfiguration>
jenkins.model.GlobalConfiguration
org.jenkinsci.plugins.relution.GlobalConfigurationImpl
@Extension public class GlobalConfigurationImpl
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class hudson.model.Descriptor |
|---|
hudson.model.Descriptor.FormException, hudson.model.Descriptor.PropertyType, hudson.model.Descriptor.Self |
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
|---|
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Field Summary |
|---|
| Fields inherited from class hudson.model.Descriptor |
|---|
clazz |
| Fields inherited from interface hudson.model.Saveable |
|---|
NOOP |
| Constructor Summary | |
|---|---|
GlobalConfigurationImpl()
executed during startup of the Plugin and instantiate different GlobalConfiguration-Objects. |
|
GlobalConfigurationImpl(String apiEndpoint,
String apiUsername,
String apiPassword,
String apiOrganization,
String apiReleaseStatus,
String proxyHost,
int proxyPort)
These constructor will be executed every time when the save/submit button will be triggered in the Jenkins. |
|
| Method Summary | |
|---|---|
boolean |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData)
These method is responsible for the save the entered values in the GlobalConfigurationFields. |
hudson.util.FormValidation |
doCheckApiEndpoint(String value)
Performs on-the-fly validation of the form field 'name'. |
hudson.util.FormValidation |
doCheckApplicationFile(hudson.model.AbstractProject project,
String value)
Performs on-the-fly validation of the form field 'applicationFile'. |
hudson.util.FormValidation |
doCheckApplicationUUID(String value)
Performs on-the-fly validation of the form field 'applicationUUID'. |
hudson.util.ListBoxModel |
doFillApiReleaseStatusItems()
List of the Statuses to an App. |
hudson.util.FormValidation |
doTestConnection(String endpoint,
String username,
String organization,
String password)
Validates the given Credentials are right |
String |
getApiEndpoint()
|
String |
getApiOrganization()
|
String |
getApiPassword()
|
String |
getApiReleaseStatus()
|
String |
getApiUsername()
|
String |
getDisplayName()
This human readable name is used in the configuration screen. |
List<GlobalConfigurationImpl> |
getInstances()
|
Map |
getLoginCredentials()
|
String |
getProxyHost()
|
int |
getProxyPort()
|
boolean |
isApplicable(Class<? extends hudson.model.AbstractProject> aClass)
Returns true if this GlobalConfiguration type is applicable to the given project. |
void |
setApiEndpoint(String apiEndpoint)
|
void |
setApiOrganization(String apiOrganization)
|
void |
setApiPassword(String apiPassword)
|
void |
setApiReleaseStatus(String apiReleaseStatus)
|
void |
setApiUsername(String apiUsername)
|
void |
setInstances(List<GlobalConfigurationImpl> instances)
|
void |
setProxyHost(String proxyHost)
|
void |
setProxyPort(int proxyPort)
|
| Methods inherited from class jenkins.model.GlobalConfiguration |
|---|
all, getCategory, getDescriptor, getGlobalConfigPage |
| Methods inherited from class hudson.model.Descriptor |
|---|
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GlobalConfigurationImpl()
@DataBoundConstructor
public GlobalConfigurationImpl(String apiEndpoint,
String apiUsername,
String apiPassword,
String apiOrganization,
String apiReleaseStatus,
String proxyHost,
int proxyPort)
apiEndpoint - URL to which the app should communicateapiUsername - User which should be logged in.apiPassword - Password for the given User.apiOrganization - Organization for the given User.apiReleaseStatus - ReleaseStatus to the given AppproxyHost - proxyPort - | Method Detail |
|---|
public hudson.util.FormValidation doCheckApiEndpoint(@QueryParameter
String value)
throws IOException,
javax.servlet.ServletException
value - This parameter receives the value that the user has typed.
IOException
javax.servlet.ServletException
public hudson.util.FormValidation doCheckApplicationFile(@AncestorInPath
hudson.model.AbstractProject project,
@QueryParameter
String value)
throws IOException,
javax.servlet.ServletException
value - This parameter receives the value that the user has typed.
IOException
javax.servlet.ServletException
public hudson.util.FormValidation doCheckApplicationUUID(@QueryParameter
String value)
value - This parameter receives the value that the user has typed.
public hudson.util.ListBoxModel doFillApiReleaseStatusItems()
public boolean isApplicable(Class<? extends hudson.model.AbstractProject> aClass)
public String getDisplayName()
getDisplayName in class jenkins.model.GlobalConfigurationpublic List<GlobalConfigurationImpl> getInstances()
public void setInstances(List<GlobalConfigurationImpl> instances)
sets - an new instances added in the GlobalConfigurationscreen.
public boolean configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData)
throws hudson.model.Descriptor.FormException
configure in class hudson.model.Descriptor<jenkins.model.GlobalConfiguration>req - Request that should be send.formData - Represents all fields parsed into an JSONObject.
hudson.model.Descriptor.FormException
public hudson.util.FormValidation doTestConnection(@QueryParameter(value="apiEndpoint")
String endpoint,
@QueryParameter(value="apiUsername")
String username,
@QueryParameter(value="apiOrganization")
String organization,
@QueryParameter(value="apiPassword")
String password)
throws IOException,
javax.servlet.ServletException
endpoint - URL to connect tousername - User to connect to the specified URLorganization - Organization for the given Userpassword - Password for the given User
IOException
javax.servlet.ServletExceptionpublic String getApiEndpoint()
public void setApiEndpoint(String apiEndpoint)
apiEndpointURL - Communication endpoint to set.public String getApiUsername()
public void setApiUsername(String apiUsername)
apiUsername - Sets entry of the textfield apiUsername.public String getApiPassword()
public void setApiPassword(String apiPassword)
apiPassword - Sets entry of the textfield apiPassword.public String getApiOrganization()
public void setApiOrganization(String apiOrganization)
apiOrganization - Sets entry of the textfield apiOrganization.public String getProxyHost()
public void setProxyHost(String proxyHost)
proxyHost - Sets entry of the textfield proxyHost.public int getProxyPort()
public void setProxyPort(int proxyPort)
proxyPort - Sets entry of the textfield proxyPort.public Map getLoginCredentials()
public void setApiReleaseStatus(String apiReleaseStatus)
apiReleaseStatus - Sets entry of the textfield apiReleaseStatus.public String getApiReleaseStatus()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||