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

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

public abstract class AdministratorUIComponent<P extends Action>
extends UIComponentSupport<P>

UI components for administrative activities. The user must be an administrator to view and optionally to submit forms. Subclasses should call the checkPermission() before performing any form actions.

Since:
2.1.0
Author:
Jason Dillon

Field Summary
 
Fields inherited from class org.hudsonci.utils.plugin.ui.UIComponentSupport
log, parent
 
Constructor Summary
protected AdministratorUIComponent(P parent)
           
 
Method Summary
protected  void checkPermission()
           
 Permission getViewPermission()
          The permission needed to render the components view.
 
Methods inherited from class org.hudsonci.utils.plugin.ui.UIComponentSupport
checkPermission, getBaseRestURI, getHelpPath, getIconFileName, 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
 
Methods inherited from interface hudson.model.Action
getDisplayName
 

Constructor Detail

AdministratorUIComponent

protected AdministratorUIComponent(P parent)
Method Detail

getViewPermission

public Permission getViewPermission()
Description copied from class: UIComponentSupport
The permission needed to render the components view.

Overrides:
getViewPermission in class UIComponentSupport<P extends Action>

checkPermission

protected void checkPermission()


Copyright © 2004-2011 Hudson. All Rights Reserved.