Package org.apache.ofbiz.service.group
Class GroupModel
java.lang.Object
org.apache.ofbiz.service.group.GroupModel
GroupModel.java
-
Constructor Summary
ConstructorDescriptionGroupModel
(String groupName, String sendMode, List<GroupServiceModel> services) Basic ConstructorGroupModel
(Element group) Constructor using DOM Element -
Method Summary
Modifier and TypeMethodDescriptionGetter for group nameGetter for send modeReturns a list of services in this groupboolean
Is optional boolean.Invokes the group of services in order definedtoString()
-
Constructor Details
-
GroupModel
Constructor using DOM Element- Parameters:
group
- DOM element for the group
-
GroupModel
Basic Constructor- Parameters:
groupName
- Name of the groupsendMode
- Mode used (see DTD)services
- List of GroupServiceModel objects
-
-
Method Details
-
getGroupName
Getter for group name- Returns:
- String
-
getSendMode
Getter for send mode- Returns:
- String
-
getServices
Returns a list of services in this group- Returns:
- List
-
isOptional
public boolean isOptional()Is optional boolean.- Returns:
- the boolean
-
run
public Map<String,Object> run(ServiceDispatcher dispatcher, String localName, Map<String, Object> context) throws GenericServiceExceptionInvokes 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
-