jfullam.vfabric.jenkins.plugin.rest
Class UserInterfaceDataRestService

java.lang.Object
  extended by jfullam.vfabric.jenkins.plugin.rest.UserInterfaceDataRestService
All Implemented Interfaces:
UserInterfaceDataService

public class UserInterfaceDataRestService
extends Object
implements UserInterfaceDataService

Calls Application Director REST API to retrieve values for UI select controls.

Author:
Jonathan Fullam

Constructor Summary
UserInterfaceDataRestService()
           
 
Method Summary
 hudson.util.ListBoxModel getApplications()
           
 hudson.util.ListBoxModel getComponents(String deploymentId)
           
 hudson.util.ListBoxModel getDeploymentProfiles(String applicationId)
           
 hudson.util.ListBoxModel getDeployments()
           
 hudson.util.ListBoxModel getUpdateProperties(String component)
           
 void setRestProvider(RestProvider restProvider)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserInterfaceDataRestService

public UserInterfaceDataRestService()
Method Detail

getDeployments

public hudson.util.ListBoxModel getDeployments()
                                        throws ServiceException
Specified by:
getDeployments in interface UserInterfaceDataService
Returns:
ListBoxModel - list of current deployments
Throws:
ServiceException

getComponents

public hudson.util.ListBoxModel getComponents(String deploymentId)
                                       throws ServiceException
Specified by:
getComponents in interface UserInterfaceDataService
Parameters:
deploymentId - - ID of a current deployment
Returns:
ListBoxModel - List of application components
Throws:
ServiceException

getUpdateProperties

public hudson.util.ListBoxModel getUpdateProperties(String component)
Specified by:
getUpdateProperties in interface UserInterfaceDataService
Parameters:
component - - Name of an existing component
Returns:
ListBoxModel - List of update propertes for the component

getApplications

public hudson.util.ListBoxModel getApplications()
                                         throws ServiceException
Specified by:
getApplications in interface UserInterfaceDataService
Returns:
ListBoxModel - List of applications in App. Dir.
Throws:
ServiceException

getDeploymentProfiles

public hudson.util.ListBoxModel getDeploymentProfiles(String applicationId)
                                               throws ServiceException
Specified by:
getDeploymentProfiles in interface UserInterfaceDataService
Returns:
ListBoxModel - List of deployment profile for a given application
Throws:
ServiceException

setRestProvider

public void setRestProvider(RestProvider restProvider)
Specified by:
setRestProvider in interface UserInterfaceDataService


Copyright © 2004-2012. All Rights Reserved.