|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ofbiz.minilang.method.MethodOperation
org.ofbiz.minilang.method.callops.CallService
public class CallService
Calls a service using the given parameters
Nested Class Summary | |
---|---|
static class |
CallService.CallServiceFactory
|
static class |
CallService.ResultToFieldDef
|
Nested classes/interfaces inherited from class org.ofbiz.minilang.method.MethodOperation |
---|
MethodOperation.DeprecatedOperation, MethodOperation.Factory<M extends MethodOperation> |
Field Summary | |
---|---|
protected java.lang.String |
breakOnErrorStr
|
protected FlexibleMessage |
defaultMessage
|
protected java.lang.String |
errorCode
|
protected FlexibleMessage |
errorPrefix
|
protected FlexibleMessage |
errorSuffix
|
protected java.lang.String |
includeUserLoginStr
|
protected ContextAccessor<java.util.Map<java.lang.String,java.lang.Object>> |
inMapAcsr
|
protected FlexibleMessage |
messagePrefix
|
protected FlexibleMessage |
messageSuffix
|
static java.lang.String |
module
|
protected java.lang.String |
requireNewTransactionStr
Require a new transaction for this service |
protected java.util.List<java.lang.String> |
resultsToMap
A list of strings with names of new maps to create |
protected java.util.List<CallService.ResultToFieldDef> |
resultToField
A list of ResultToFieldDef objects |
protected java.util.Map<FlexibleServletAccessor<java.lang.Object>,ContextAccessor<java.lang.Object>> |
resultToRequest
the key is the request attribute name, the value is the result name to get |
protected java.util.Map<ContextAccessor<java.lang.Object>,ContextAccessor<java.lang.Object>> |
resultToResult
the key is the result entry name, the value is the result name to get |
protected java.util.Map<FlexibleServletAccessor<java.lang.Object>,ContextAccessor<java.lang.Object>> |
resultToSession
the key is the session attribute name, the value is the result name to get |
protected java.lang.String |
serviceName
|
protected java.lang.String |
successCode
|
protected FlexibleMessage |
successPrefix
|
protected FlexibleMessage |
successSuffix
|
protected int |
transactionTimeout
Override the default transaction timeout, only works if we start the transaction |
Fields inherited from class org.ofbiz.minilang.method.MethodOperation |
---|
simpleMethod |
Constructor Summary | |
---|---|
CallService(org.w3c.dom.Element element,
SimpleMethod simpleMethod)
|
Method Summary | |
---|---|
boolean |
exec(MethodContext methodContext)
Execute the operation; if false is returned then no further operations will be executed |
java.lang.String |
expandedString(MethodContext methodContext)
Create an expanded string representation of the operation, is for the current context |
java.lang.String |
getServiceName()
|
java.lang.String |
rawString()
Create a raw string representation of the operation, would be similar to original XML |
Methods inherited from class org.ofbiz.minilang.method.MethodOperation |
---|
getSimpleMethod |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String module
protected java.lang.String serviceName
protected ContextAccessor<java.util.Map<java.lang.String,java.lang.Object>> inMapAcsr
protected java.lang.String includeUserLoginStr
protected java.lang.String breakOnErrorStr
protected java.lang.String errorCode
protected java.lang.String successCode
protected java.lang.String requireNewTransactionStr
protected int transactionTimeout
protected FlexibleMessage errorPrefix
protected FlexibleMessage errorSuffix
protected FlexibleMessage successPrefix
protected FlexibleMessage successSuffix
protected FlexibleMessage messagePrefix
protected FlexibleMessage messageSuffix
protected FlexibleMessage defaultMessage
protected java.util.List<java.lang.String> resultsToMap
protected java.util.List<CallService.ResultToFieldDef> resultToField
protected java.util.Map<FlexibleServletAccessor<java.lang.Object>,ContextAccessor<java.lang.Object>> resultToRequest
protected java.util.Map<FlexibleServletAccessor<java.lang.Object>,ContextAccessor<java.lang.Object>> resultToSession
protected java.util.Map<ContextAccessor<java.lang.Object>,ContextAccessor<java.lang.Object>> resultToResult
Constructor Detail |
---|
public CallService(org.w3c.dom.Element element, SimpleMethod simpleMethod)
Method Detail |
---|
public java.lang.String getServiceName()
public boolean exec(MethodContext methodContext)
MethodOperation
exec
in class MethodOperation
public java.lang.String rawString()
MethodOperation
rawString
in class MethodOperation
public java.lang.String expandedString(MethodContext methodContext)
MethodOperation
expandedString
in class MethodOperation
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |