|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The IActionHandler interface defines methods relevant for executing actions on Items.
This interface has to be implemented by all action handlers.
Action handlers belong to one of the following two types:
performAction() method and
return false in isLauncher() method.
true in their isLauncher() method and implement
getUrl() method.
IActionHandler implementations are expected to be stateless and thread safe.
For details on pre shipped
IActionHandlers refer to Action javadoc.
Breif information about different Action Handlers is present in ActionHandlers documentation
| Method Summary | |
String |
getId()
Identifer for this Action handler. |
String |
getUrl(UWLContext context,
Item item,
Action action,
Map properties)
Constructs and returns a fully qualified URL based upon the Item and properties defined for the Action. |
boolean |
isLauncher()
An Action Handler can just launch a new application and not worry about communicating the result back to UWL. |
boolean |
needsItemValidation()
Method that specifies if this Action Handler needs to verify if item is still valid before performing an action. |
ProviderStatus |
performAction(UWLContext context,
Item item,
Action action,
Map properties)
Method that gets called to execute an Action on the Item. |
| Method Detail |
public String getId()
IActionHandler should identify itself with a unique identifer.
This id is corresponds to getHandler() of Action object.
This id is case sensitive.
public boolean isLauncher()
isLauncher() method.
getUrl(com.sap.netweaver.bc.uwl.UWLContext, com.sap.netweaver.bc.uwl.Item, com.sap.netweaver.bc.uwl.config.Action, java.util.Map)public boolean needsItemValidation()
IProviderConnector.isItemValid(com.sap.netweaver.bc.uwl.UWLContext, com.sap.netweaver.bc.uwl.Item)
public String getUrl(UWLContext context,
Item item,
Action action,
Map properties)
throws UWLException
getUrl is called only if isLauncher()
returns true.
context - not nullitem - not nullaction - not nullproperties - not null. If there are dynamic properties defined for that action, they are first
computed and then passed in the properties map.
doNavigate()
javascript if found else it will redirect to the specified URL.
UWLException - in case expected parameters are missing or URL can not be constructed.Action
public ProviderStatus performAction(UWLContext context,
Item item,
Action action,
Map properties)
throws ConnectorException
performAction() is called only if isLauncher() returns false.
This method should take care of performing the Action and returning the result of action on item.
Action Handler code may optionally update the item in UWL storage by using IPushChannel apis.
context - not nullitem - item on which action is performedaction - properties - not null. If there are dynamic properties defined for that action,
they are first computed and then passed in the properties.
ConnectorException - in case of provided related problemsAction
|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||