net.ontopia.topicmaps.webed.impl.basic
Interface ActionGroupIF

All Known Implementing Classes:
ActionGroup

public interface ActionGroupIF

INTERNAL: The interface is implemented by objects representing action groups that handle and provide access to a collection of actions.


Method Summary
 void addAction(ActionInGroup action)
          INTERNAL: Add an action to this action group.
 ActionInGroup getAction(java.lang.String name)
          INTERNAL: Gets the action by the given name.
 java.util.List getActions()
          INTERNAL: Returns all actions that are assigned to this action group in the order in which they are to be executed.
 ActionForwardPageIF getDefaultForwardPage(int responseType)
          INTERNAL: Gets the forward page which should be used as default for the given action response type.
 java.util.Map getDefaultForwardPages()
          INTERNAL: Gets all default forward pages assigned to this action group.
 ActionForwardPageIF getForwardPage(ActionInGroup action, boolean error)
          INTERNAL: Gets the forward page for the given action and response type.
 java.util.Map getForwardPages()
          INTERNAL: Gets all forward pages assigned to this action group.
 ActionForwardPageIF getLockedForwardPage()
          INTERNAL: Gets the forward page to use when locking fails.
 java.lang.String getName()
          INTERNAL: Gets the name of this action group.
 void setDefaultForwardPage(int responseType, ActionForwardPageIF forwardPage)
          INTERNAL: Sets the default forward page for the given action response type.
 void setForwardPage(ActionInGroup action, int responseType, ActionForwardPageIF forwardPage)
          INTERNAL: Sets forward page for the given pair of action and action response type.
 void setLockedForwardPage(ActionForwardPageIF forwardPage)
          INTERNAL: Sets the forward page in the case a lock situation
 

Method Detail

getName

java.lang.String getName()
INTERNAL: Gets the name of this action group.


addAction

void addAction(ActionInGroup action)
INTERNAL: Add an action to this action group. Note that the order in which actions are added is significant.


getActions

java.util.List getActions()
INTERNAL: Returns all actions that are assigned to this action group in the order in which they are to be executed.

Returns:
a list of ActionInGroup objects

getAction

ActionInGroup getAction(java.lang.String name)
INTERNAL: Gets the action by the given name.


setDefaultForwardPage

void setDefaultForwardPage(int responseType,
                           ActionForwardPageIF forwardPage)
INTERNAL: Sets the default forward page for the given action response type.


getDefaultForwardPage

ActionForwardPageIF getDefaultForwardPage(int responseType)
INTERNAL: Gets the forward page which should be used as default for the given action response type. If there is no specific forward page for the given response type tries to retrieve the generic forward page, otherwise null.


getDefaultForwardPages

java.util.Map getDefaultForwardPages()
INTERNAL: Gets all default forward pages assigned to this action group.

Returns:
A map containing the action response type (as Integer object, see ActionResponseIF constants) as key and the corresponding ActionForwardPageIF object.

setLockedForwardPage

void setLockedForwardPage(ActionForwardPageIF forwardPage)
INTERNAL: Sets the forward page in the case a lock situation


getLockedForwardPage

ActionForwardPageIF getLockedForwardPage()
INTERNAL: Gets the forward page to use when locking fails.


setForwardPage

void setForwardPage(ActionInGroup action,
                    int responseType,
                    ActionForwardPageIF forwardPage)
INTERNAL: Sets forward page for the given pair of action and action response type.


getForwardPage

ActionForwardPageIF getForwardPage(ActionInGroup action,
                                   boolean error)
INTERNAL: Gets the forward page for the given action and response type. The following order has to be implemented for resolving an appropiate forward page:

Parameters:
error - whether there was an error or not.

getForwardPages

java.util.Map getForwardPages()
INTERNAL: Gets all forward pages assigned to this action group.

Returns:
A map containing the action response (as ActionResponseComposite object) as key and the corresponding ActionForwardPageIF object.


Copyright © 2000-2012 Ontopia.