org.ofbiz.service.group
Class GroupServiceModel

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

public class GroupServiceModel
extends java.lang.Object

GroupServiceModel.java


Field Summary
static java.lang.String module
           
 
Constructor Summary
GroupServiceModel(org.w3c.dom.Element service)
          Constructor using DOM element
GroupServiceModel(java.lang.String serviceName, java.lang.String serviceMode)
          Basic constructor
 
Method Summary
 java.lang.String getMode()
          Getter for the service mode
 java.lang.String getName()
          Getter for the service name
 java.util.Map<java.lang.String,java.lang.Object> invoke(ServiceDispatcher dispatcher, java.lang.String localName, java.util.Map<java.lang.String,java.lang.Object> context)
          Invoker method to invoke this service
 boolean isOptional()
          Returns true of the parameters for this service are to be included as optional
 boolean resultToContext()
          Returns true if the results of this service are to go back into the context
 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

GroupServiceModel

public GroupServiceModel(org.w3c.dom.Element service)
Constructor using DOM element

Parameters:
service - DOM element for the service

GroupServiceModel

public GroupServiceModel(java.lang.String serviceName,
                         java.lang.String serviceMode)
Basic constructor

Parameters:
serviceName - name of the service
serviceMode - service invocation mode (sync|async)
Method Detail

getMode

public java.lang.String getMode()
Getter for the service mode

Returns:
String

getName

public java.lang.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 java.util.Map<java.lang.String,java.lang.Object> invoke(ServiceDispatcher dispatcher,
                                                               java.lang.String localName,
                                                               java.util.Map<java.lang.String,java.lang.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 java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()