org.ofbiz.service.group
Class GroupModel

java.lang.Object
  extended by org.ofbiz.service.group.GroupModel

public class GroupModel
extends java.lang.Object

GroupModel.java


Field Summary
static java.lang.String module
           
 
Constructor Summary
GroupModel(org.w3c.dom.Element group)
          Constructor using DOM Element
GroupModel(java.lang.String groupName, java.lang.String sendMode, java.util.List<GroupServiceModel> services)
          Basic Constructor
 
Method Summary
 java.lang.String getGroupName()
          Getter for group name
 java.lang.String getSendMode()
          Getter for send mode
 java.util.List<GroupServiceModel> getServices()
          Returns a list of services in this group
 java.util.Map<java.lang.String,java.lang.Object> run(ServiceDispatcher dispatcher, java.lang.String localName, java.util.Map<java.lang.String,java.lang.Object> context)
          Invokes the group of services in order defined
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

module

public static final java.lang.String module
Constructor Detail

GroupModel

public GroupModel(org.w3c.dom.Element group)
Constructor using DOM Element

Parameters:
group - DOM element for the group

GroupModel

public GroupModel(java.lang.String groupName,
                  java.lang.String sendMode,
                  java.util.List<GroupServiceModel> services)
Basic Constructor

Parameters:
groupName - Name of the group
sendMode - Mode used (see DTD)
services - List of GroupServiceModel objects
Method Detail

getGroupName

public java.lang.String getGroupName()
Getter for group name

Returns:
String

getSendMode

public java.lang.String getSendMode()
Getter for send mode

Returns:
String

getServices

public java.util.List<GroupServiceModel> getServices()
Returns a list of services in this group

Returns:
List

run

public java.util.Map<java.lang.String,java.lang.Object> run(ServiceDispatcher dispatcher,
                                                            java.lang.String localName,
                                                            java.util.Map<java.lang.String,java.lang.Object> context)
                                                     throws GenericServiceException
Invokes the group of services in order defined

Parameters:
dispatcher - ServiceDispatcher used for invocation
localName - Name of the LocalDispatcher (namespace)
context - Full parameter context (combined for all services)
Returns:
Map Result Map
Throws:
GenericServiceException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()