|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sap.netweaver.bc.uwl.config.Action
com.sap.netweaver.bc.uwl.GroupAction
GroupAction contains bundling of different decision alternatives and their handler.
A GroupAction contains, a title, decision alternatives and settings of whether
a note/description is needed by the user.
A GroupAction exists only at run time. An Item can have only one
Group Action attached to it. UWL Service retrives GroupAction from the
ProviderConnector and caches it for performance reasons.
This Action has a fixed name called "GroupAction". Provider Connector
could check for this name before retrieving all alternatives from the back end.
GroupAction instance is item specific and not shared between items and hence could be modified by the client.
All the texts in the Alternatives are already translated and are available only in one language that is the
current users locale.
One restriction: None of the texts displayed should contain a carriage return character '\f'.
| Nested Class Summary | |
static class |
GroupAction.Alternative
Each alternative contains a key and a title which is to be displayed. |
| Field Summary | |
static String |
NAME
|
| Constructor Summary | |
GroupAction(String handler,
String title)
|
|
| Method Summary | |
GroupAction.Alternative |
getAlternative(String key)
|
GroupAction.Alternative[] |
getAlternatives()
|
String |
getSelectedAlternativeKey()
|
boolean |
isUserNoteNeeded()
In addition to choosing a decision alternative, end user may optionally add a free text note. |
static GroupAction |
parseString(String str)
Internal method used to deserialize from string. |
void |
setDecisionAlternatives(GroupAction.Alternative[] alternatives)
|
void |
setDecisionAlternatives(List lternatives)
|
void |
setNeedsUserNote(boolean b)
|
boolean |
setSelectedAlternativeKey(String key)
This should be called before calling itemManager.performAction(). |
String |
toString()
Internal method used to serialize the Action |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final String NAME
| Constructor Detail |
public GroupAction(String handler,
String title)
handler - ActionHandler identifertitle - Title for all the decision Alternatives| Method Detail |
public final void setDecisionAlternatives(List lternatives)
lternatives - should contain a list of Alternative object instances.public final void setDecisionAlternatives(GroupAction.Alternative[] alternatives)
public GroupAction.Alternative[] getAlternatives()
public GroupAction.Alternative getAlternative(String key)
key -
public boolean isUserNoteNeeded()
public void setNeedsUserNote(boolean b)
b - true sets the user note visibilitypublic String toString()
public static GroupAction parseString(String str)
str -
public String getSelectedAlternativeKey()
public boolean setSelectedAlternativeKey(String key)
itemManager.performAction().
|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||