Package org.apache.ofbiz.service.group
Class GroupServiceModel
- java.lang.Object
-
- org.apache.ofbiz.service.group.GroupServiceModel
-
public class GroupServiceModel extends java.lang.Object
GroupServiceModel.java
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
module
-
Constructor Summary
Constructors Constructor Description GroupServiceModel(java.lang.String serviceName, java.lang.String serviceMode)
Basic constructorGroupServiceModel(org.w3c.dom.Element service)
Constructor using DOM element
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getMode()
Getter for the service modejava.lang.String
getName()
Getter for the service namejava.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 serviceboolean
isOptional()
Returns true of the parameters for this service are to be included as optionalboolean
resultToContext()
Returns true if the results of this service are to go back into the contextjava.lang.String
toString()
-
-
-
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 serviceserviceMode
- 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 invocationlocalName
- Name of the LocalDispatcher usedcontext
- Context for this service (will use only valid parameters)- Returns:
- Map result Map
- Throws:
GenericServiceException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
- See Also:
Object.toString()
-
-