jfullam.vfabric.jenkins.plugin
Class ApplicationDirectorPostBuildDeployer.Descriptor

java.lang.Object
  extended by hudson.model.Descriptor<hudson.tasks.BuildWrapper>
      extended by hudson.tasks.BuildWrapperDescriptor
          extended by jfullam.vfabric.jenkins.plugin.ApplicationDirectorPostBuildDeployer.Descriptor
All Implemented Interfaces:
hudson.model.Saveable
Enclosing class:
ApplicationDirectorPostBuildDeployer

@Extension
public static class ApplicationDirectorPostBuildDeployer.Descriptor
extends hudson.tasks.BuildWrapperDescriptor

BuildWrapper plugin descriptor.

Author:
Jonathan Fullam

Nested Class Summary
 
Nested classes/interfaces inherited from class hudson.model.Descriptor
hudson.model.Descriptor.FormException, hudson.model.Descriptor.PropertyType, hudson.model.Descriptor.Self
 
Field Summary
 
Fields inherited from class hudson.model.Descriptor
clazz
 
Fields inherited from interface hudson.model.Saveable
NOOP
 
Constructor Summary
ApplicationDirectorPostBuildDeployer.Descriptor()
           
 
Method Summary
 boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData)
           
 hudson.util.ListBoxModel doFillApplicationItems()
          Gets a list of Application that are currently in Application Director
 hudson.util.ListBoxModel doFillComponentItems(String deployment)
          Get the list of components for a specific deployment.
 hudson.util.ListBoxModel doFillDeploymentItems()
           
 hudson.util.ListBoxModel doFillDeploymentProfileItems(String application)
          Gets a list of deployment profile for a given application currently configured in Application Director
 hudson.util.ListBoxModel doFillUpdatePropertyItems(String component)
          Gets a list of update properties for a specific component.
 hudson.util.FormValidation doValidateConnection(String appDirBaseURI, String userName, String password)
          Called when the connection validation button is clicked on the global connection screen.
 String getAppDirBaseURI()
           
 String getDisplayName()
           
 String getPassword()
           
 String getUserName()
           
 boolean isApplicable(hudson.model.AbstractProject<?,?> item)
           
 
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, getCheckUrl, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, 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

ApplicationDirectorPostBuildDeployer.Descriptor

public ApplicationDirectorPostBuildDeployer.Descriptor()
Method Detail

isApplicable

public boolean isApplicable(hudson.model.AbstractProject<?,?> item)
Specified by:
isApplicable in class hudson.tasks.BuildWrapperDescriptor

getDisplayName

public String getDisplayName()
Specified by:
getDisplayName in class hudson.model.Descriptor<hudson.tasks.BuildWrapper>

doValidateConnection

public hudson.util.FormValidation doValidateConnection(@QueryParameter(value="appDirBaseURI")
                                                       String appDirBaseURI,
                                                       @QueryParameter(value="userName")
                                                       String userName,
                                                       @QueryParameter(value="password")
                                                       String password)
Called when the connection validation button is clicked on the global connection screen.

Parameters:
appDirBaseURI -
userName -
password -
Returns:
FormValidation - indicates if the connection data on the global page is valid.

doFillDeploymentItems

public hudson.util.ListBoxModel doFillDeploymentItems()
Returns:
ListBoxModel - A list of the current deployments found in Applicaiton Director

doFillComponentItems

public hudson.util.ListBoxModel doFillComponentItems(@QueryParameter
                                                     String deployment)
Get the list of components for a specific deployment.

Parameters:
deployment - - a deployment id
Returns:
ListBoxModel - list of components

doFillUpdatePropertyItems

public hudson.util.ListBoxModel doFillUpdatePropertyItems(@QueryParameter
                                                          String component)
Gets a list of update properties for a specific component.

Parameters:
component -
Returns:
ListBoxModel - the list of update properties for the component

doFillApplicationItems

public hudson.util.ListBoxModel doFillApplicationItems()
Gets a list of Application that are currently in Application Director

Returns:
ListBoxModel - List of Applications

doFillDeploymentProfileItems

public hudson.util.ListBoxModel doFillDeploymentProfileItems(@QueryParameter
                                                             String application)
Gets a list of deployment profile for a given application currently configured in Application Director

Parameters:
application - - application name / id combination (ie SpringTravel,325)
Returns:
ListBoxModel - list of deployment profile

configure

public boolean configure(org.kohsuke.stapler.StaplerRequest req,
                         net.sf.json.JSONObject formData)
                  throws hudson.model.Descriptor.FormException
Overrides:
configure in class hudson.model.Descriptor<hudson.tasks.BuildWrapper>
Throws:
hudson.model.Descriptor.FormException

getAppDirBaseURI

public String getAppDirBaseURI()

getUserName

public String getUserName()

getPassword

public String getPassword()


Copyright © 2004-2012. All Rights Reserved.