org.hudsonci.utils.plugin.ui
Class UIComponentSupport<P extends Action>

java.lang.Object
  extended by org.hudsonci.utils.plugin.ui.UIComponentSupport<P>
All Implemented Interfaces:
Action, ModelObject
Direct Known Subclasses:
AdministratorUIComponent

public abstract class UIComponentSupport<P extends Action>
extends Object
implements Action

Support for UI components.

Since:
2.1.0
Author:
Jason Dillon

Field Summary
protected  org.slf4j.Logger log
           
protected  P parent
           
 
Constructor Summary
protected UIComponentSupport()
           
protected UIComponentSupport(P parent)
           
 
Method Summary
protected  void checkPermission(Permission perm)
           
 String getBaseRestURI()
           
 String getHelpPath()
           
 String getIconFileName()
          Returns our parent's icon.
protected  String getIconFileName(String name)
           
 String getIconPath()
           
 String getImagesPath()
           
 String getPageTitle()
           
 P getParent()
           
 String getPluginName()
           
 String getPluginPath()
           
protected  PluginWrapper getPluginWrapper()
          Returns the PluginWrapper for the current class context.
 String getRootPath()
           
 Object getSidePanelOwner()
          The object which owns the sidepanel.jelly view.
 String getUrlName()
          No URL.
 Permission getViewPermission()
          The permission needed to render the components view.
protected  void redirect(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse resp, String location)
           
protected  void redirectAncestor(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse resp, Class type)
           
protected  void redirectAncestor(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse resp, Object obj)
           
protected  void redirectParent(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse resp)
           
protected  void redirectSelf(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse resp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface hudson.model.Action
getDisplayName
 

Field Detail

log

protected final org.slf4j.Logger log

parent

protected final P extends Action parent
Constructor Detail

UIComponentSupport

protected UIComponentSupport(P parent)

UIComponentSupport

protected UIComponentSupport()
Method Detail

getParent

public P getParent()

getIconFileName

public String getIconFileName()
Returns our parent's icon.

Specified by:
getIconFileName in interface Action

getIconFileName

protected String getIconFileName(String name)

getUrlName

public String getUrlName()
No URL.

Specified by:
getUrlName in interface Action

getPluginWrapper

protected PluginWrapper getPluginWrapper()
Returns the PluginWrapper for the current class context.

Throws:
IllegalStateException - Unable to determine plugin wrapper source.

getRootPath

@JellyAccessible
public String getRootPath()

getPluginName

@JellyAccessible
public String getPluginName()

getPluginPath

@JellyAccessible
public String getPluginPath()

getImagesPath

@JellyAccessible
public String getImagesPath()

getHelpPath

@JellyAccessible
public String getHelpPath()

getIconPath

@JellyAccessible
public String getIconPath()

getSidePanelOwner

@JellyAccessible
public Object getSidePanelOwner()
The object which owns the sidepanel.jelly view.


getViewPermission

@JellyAccessible
public Permission getViewPermission()
The permission needed to render the components view.


getPageTitle

@JellyAccessible
public String getPageTitle()

checkPermission

protected void checkPermission(Permission perm)

redirect

protected void redirect(org.kohsuke.stapler.StaplerRequest req,
                        org.kohsuke.stapler.StaplerResponse resp,
                        String location)
                 throws IOException
Throws:
IOException

redirectAncestor

protected void redirectAncestor(org.kohsuke.stapler.StaplerRequest req,
                                org.kohsuke.stapler.StaplerResponse resp,
                                Class type)
                         throws IOException
Throws:
IOException

redirectAncestor

protected void redirectAncestor(org.kohsuke.stapler.StaplerRequest req,
                                org.kohsuke.stapler.StaplerResponse resp,
                                Object obj)
                         throws IOException
Throws:
IOException

redirectParent

protected void redirectParent(org.kohsuke.stapler.StaplerRequest req,
                              org.kohsuke.stapler.StaplerResponse resp)
                       throws IOException
Throws:
IOException

redirectSelf

protected void redirectSelf(org.kohsuke.stapler.StaplerRequest req,
                            org.kohsuke.stapler.StaplerResponse resp)
                     throws IOException
Throws:
IOException

getBaseRestURI

@JellyAccessible
public String getBaseRestURI()


Copyright © 2004-2011 Hudson. All Rights Reserved.