Package org.apache.ofbiz.service.group
Class GroupModel
- java.lang.Object
-
- org.apache.ofbiz.service.group.GroupModel
-
public class GroupModel extends java.lang.Object
GroupModel.java
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
module
-
Constructor Summary
Constructors Constructor Description GroupModel(java.lang.String groupName, java.lang.String sendMode, java.util.List<GroupServiceModel> services)
Basic ConstructorGroupModel(org.w3c.dom.Element group)
Constructor using DOM Element
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getGroupName()
Getter for group namejava.lang.String
getSendMode()
Getter for send modejava.util.List<GroupServiceModel>
getServices()
Returns a list of services in this groupboolean
isOptional()
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 definedjava.lang.String
toString()
-
-
-
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 groupsendMode
- 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
-
isOptional
public boolean isOptional()
-
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 invocationlocalName
- 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 classjava.lang.Object
- See Also:
Object.toString()
-
-