org.hudsonci.plugins.vault.ui
Class BundleUI

java.lang.Object
  extended by org.hudsonci.utils.plugin.ui.UIComponentSupport<P>
      extended by org.hudsonci.utils.plugin.ui.AdministratorUIComponent<VaultUI>
          extended by org.hudsonci.plugins.vault.ui.BundleUI
All Implemented Interfaces:
hudson.model.Action, hudson.model.ModelObject

public class BundleUI
extends org.hudsonci.utils.plugin.ui.AdministratorUIComponent<VaultUI>

User-interface for Bundle.

Author:
Jason Dillon

Field Summary
 
Fields inherited from class org.hudsonci.utils.plugin.ui.UIComponentSupport
log, parent
 
Constructor Summary
BundleUI(VaultUI parent, Bundle data)
           
 
Method Summary
 void doCreatePackage(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse resp, String path, String includes, String excludes, String properties, String description)
           
 void doDelete(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse resp)
           
 void doUpdate(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse resp, String name, String type, String description)
           
 Bundle getData()
           
 String getDisplayName()
           
 Object getDynamic(String id, org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse resp)
           
 String getIconFileName()
           
 Collection<Package> getPackages()
           
 String renderProperties(Package pkg)
          Render package properties suitable for display in the package table.
 
Methods inherited from class org.hudsonci.utils.plugin.ui.AdministratorUIComponent
checkPermission, getViewPermission
 
Methods inherited from class org.hudsonci.utils.plugin.ui.UIComponentSupport
checkPermission, getBaseRestURI, getHelpPath, getIconFileName, getIconPath, getImagesPath, getPageTitle, getParent, getPluginName, getPluginPath, getPluginWrapper, getRootPath, getSidePanelOwner, getUrlName, redirect, redirectAncestor, redirectAncestor, redirectParent, redirectSelf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BundleUI

public BundleUI(VaultUI parent,
                Bundle data)
Method Detail

getData

@JellyAccessible
public Bundle getData()

getPackages

@JellyAccessible
public Collection<Package> getPackages()

getDisplayName

public String getDisplayName()

getIconFileName

public String getIconFileName()
Specified by:
getIconFileName in interface hudson.model.Action
Overrides:
getIconFileName in class org.hudsonci.utils.plugin.ui.UIComponentSupport<VaultUI>

getDynamic

@StaplerAccessible
public Object getDynamic(String id,
                                           org.kohsuke.stapler.StaplerRequest req,
                                           org.kohsuke.stapler.StaplerResponse resp)

renderProperties

@JellyAccessible
public String renderProperties(Package pkg)
Render package properties suitable for display in the package table.


doUpdate

@StaplerAccessible
public void doUpdate(org.kohsuke.stapler.StaplerRequest req,
                                       org.kohsuke.stapler.StaplerResponse resp,
                                       @QueryParameter(value="name",required=true,fixEmpty=true)
                                       String name,
                                       @QueryParameter(value="type",required=true,fixEmpty=true)
                                       String type,
                                       @QueryParameter(value="description",required=false,fixEmpty=true)
                                       String description)
              throws Exception
Throws:
Exception

doDelete

@StaplerAccessible
public void doDelete(org.kohsuke.stapler.StaplerRequest req,
                                       org.kohsuke.stapler.StaplerResponse resp)
              throws Exception
Throws:
Exception

doCreatePackage

@StaplerAccessible
public void doCreatePackage(org.kohsuke.stapler.StaplerRequest req,
                                              org.kohsuke.stapler.StaplerResponse resp,
                                              @QueryParameter(value="path",required=true,fixEmpty=true)
                                              String path,
                                              @QueryParameter(value="includes",required=false,fixEmpty=true)
                                              String includes,
                                              @QueryParameter(value="excludes",required=false,fixEmpty=true)
                                              String excludes,
                                              @QueryParameter(value="properties",required=false,fixEmpty=true)
                                              String properties,
                                              @QueryParameter(value="description",required=false,fixEmpty=true)
                                              String description)
                     throws Exception
Throws:
Exception


Copyright © 2004-2012 Hudson. All Rights Reserved.