Class GroupServiceModel

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

public class GroupServiceModel extends Object
GroupServiceModel.java
  • Constructor Details

    • GroupServiceModel

      public GroupServiceModel(Element service)
      Constructor using DOM element
      Parameters:
      service - DOM element for the service
    • GroupServiceModel

      public GroupServiceModel(String serviceName, String serviceMode)
      Basic constructor
      Parameters:
      serviceName - name of the service
      serviceMode - service invocation mode (sync|async)
  • Method Details

    • getMode

      public String getMode()
      Getter for the service mode
      Returns:
      String
    • getName

      public String getName()
      Getter for the service name
      Returns:
      String
    • resultToContext

      public boolean resultToContext()
      Returns true if the results of this service are to go back into the context
      Returns:
      boolean
    • isOptional

      public boolean isOptional()
      Returns true of the parameters for this service are to be included as optional
      Returns:
      boolean
    • invoke

      public Map<String,Object> invoke(ServiceDispatcher dispatcher, String localName, Map<String,Object> context) throws GenericServiceException
      Invoker method to invoke this service
      Parameters:
      dispatcher - ServiceDispatcher used for this invocation
      localName - Name of the LocalDispatcher used
      context - Context for this service (will use only valid parameters)
      Returns:
      Map result Map
      Throws:
      GenericServiceException
    • toString

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