wt.wildfire
Interface WildfireActionDelegate

All Superinterfaces:
ActionDelegate
All Known Subinterfaces:
WildfireNavBarCommonActionDelegate
All Known Implementing Classes:
BasicWildfireNavBarActionDelegate, MyWorkspaceNavBarActionDelegate

public interface WildfireActionDelegate
extends ActionDelegate

Used to test if an action could be ActionDelegate.valid(java.lang.Object) for an object of a particular type (should it be a menu item) and if the action is enableable(java.lang.Object, wt.templateutil.processor.HTTPState) for the specific object (should the menu item be enabled).

Supported API: false

Extendable: false


Field Summary
 
Fields inherited from interface wt.enterprise.ActionDelegate
CONTEXT_SERVICE_NAME
 
Method Summary
 Boolean enableable(Object object, HTTPRequest request)
          Tests if the action is currently applicable to the instance object; commonly used at the time a GUI is generated to see if the action should be "enabled" for the object, another common usage will be at the time that the action is to be performed, to see if it is still applicable.
 Boolean enableable(Object object, HTTPState state)
          Tests if the action is currently applicable to the instance object; commonly used at the time a GUI is generated to see if the action should be "enabled" for the object, another common usage will be at the time that the action is to be performed, to see if it is still applicable.
 
Methods inherited from interface wt.enterprise.ActionDelegate
enableable, getContextServiceName, valid
 

Method Detail

enableable

public Boolean enableable(Object object,
                          HTTPState state)
                   throws WTException
Tests if the action is currently applicable to the instance object; commonly used at the time a GUI is generated to see if the action should be "enabled" for the object, another common usage will be at the time that the action is to be performed, to see if it is still applicable. This implementation of the method considers the origin of the HTTPRequest (user agent) and is acceptable to use for all classes implementing the WildfireActionDelegate interface. The method enableable(Object) is not valid for objects implementing WildfireActionDelegate and will throw an exception.

Supported API: false

Parameters:
object -
state -
Returns:
Boolean
Throws:
WTException

enableable

public Boolean enableable(Object object,
                          HTTPRequest request)
                   throws WTException
Tests if the action is currently applicable to the instance object; commonly used at the time a GUI is generated to see if the action should be "enabled" for the object, another common usage will be at the time that the action is to be performed, to see if it is still applicable. This implementation of the method considers the origin of the HTTPRequest (user agent) and is acceptable to use for all classes implementing the WildfireActionDelegate interface. The method enableable(Object) is not valid for objects implementing WildfireActionDelegate and will throw an exception.

Supported API: false

Parameters:
object -
request -
Returns:
Boolean
Throws:
WTException