Class GroupModel

java.lang.Object
org.apache.ofbiz.service.group.GroupModel

public class GroupModel extends Object
GroupModel.java
  • Constructor Details

    • GroupModel

      public GroupModel(Element group)
      Constructor using DOM Element
      Parameters:
      group - DOM element for the group
    • GroupModel

      public GroupModel(String groupName, String sendMode, List<GroupServiceModel> services)
      Basic Constructor
      Parameters:
      groupName - Name of the group
      sendMode - Mode used (see DTD)
      services - List of GroupServiceModel objects
  • Method Details

    • getGroupName

      public String getGroupName()
      Getter for group name
      Returns:
      String
    • getSendMode

      public String getSendMode()
      Getter for send mode
      Returns:
      String
    • getServices

      public List<GroupServiceModel> 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 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 String toString()
      Overrides:
      toString in class Object
      See Also: