Package org.apache.ofbiz.service.group
Class GroupServiceModel
java.lang.Object
org.apache.ofbiz.service.group.GroupServiceModel
GroupServiceModel.java
-
Constructor Summary
ConstructorDescriptionGroupServiceModel
(String serviceName, String serviceMode) Basic constructorGroupServiceModel
(Element service) Constructor using DOM element -
Method Summary
Modifier and TypeMethodDescriptiongetMode()
Getter for the service modegetName()
Getter for the service nameInvoker method to invoke this serviceboolean
Returns true of the parameters for this service are to be included as optionalboolean
Returns true if the results of this service are to go back into the contexttoString()
-
Constructor Details
-
GroupServiceModel
Constructor using DOM element- Parameters:
service
- DOM element for the service
-
GroupServiceModel
Basic constructor- Parameters:
serviceName
- name of the serviceserviceMode
- service invocation mode (sync|async)
-
-
Method Details
-
getMode
Getter for the service mode- Returns:
- 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 GenericServiceExceptionInvoker method to invoke this service- Parameters:
dispatcher
- ServiceDispatcher used for this invocationlocalName
- Name of the LocalDispatcher usedcontext
- Context for this service (will use only valid parameters)- Returns:
- Map result Map
- Throws:
GenericServiceException
-
toString
-