org.ofbiz.minilang.method.callops
Class CallService

java.lang.Object
  extended by org.ofbiz.minilang.method.MethodOperation
      extended by org.ofbiz.minilang.method.callops.CallService

public class CallService
extends MethodOperation

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

module

public static final java.lang.String module

serviceName

protected java.lang.String serviceName

inMapAcsr

protected ContextAccessor<java.util.Map<java.lang.String,java.lang.Object>> inMapAcsr

includeUserLoginStr

protected java.lang.String includeUserLoginStr

breakOnErrorStr

protected java.lang.String breakOnErrorStr

errorCode

protected java.lang.String errorCode

successCode

protected java.lang.String successCode

requireNewTransactionStr

protected java.lang.String requireNewTransactionStr
Require a new transaction for this service


transactionTimeout

protected int transactionTimeout
Override the default transaction timeout, only works if we start the transaction


errorPrefix

protected FlexibleMessage errorPrefix

errorSuffix

protected FlexibleMessage errorSuffix

successPrefix

protected FlexibleMessage successPrefix

successSuffix

protected FlexibleMessage successSuffix

messagePrefix

protected FlexibleMessage messagePrefix

messageSuffix

protected FlexibleMessage messageSuffix

defaultMessage

protected FlexibleMessage defaultMessage

resultsToMap

protected java.util.List<java.lang.String> resultsToMap
A list of strings with names of new maps to create


resultToField

protected java.util.List<CallService.ResultToFieldDef> resultToField
A list of ResultToFieldDef objects


resultToRequest

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


resultToSession

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


resultToResult

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

Constructor Detail

CallService

public CallService(org.w3c.dom.Element element,
                   SimpleMethod simpleMethod)
Method Detail

getServiceName

public java.lang.String getServiceName()

exec

public boolean exec(MethodContext methodContext)
Description copied from class: MethodOperation
Execute the operation; if false is returned then no further operations will be executed

Specified by:
exec in class MethodOperation

rawString

public java.lang.String rawString()
Description copied from class: MethodOperation
Create a raw string representation of the operation, would be similar to original XML

Specified by:
rawString in class MethodOperation

expandedString

public java.lang.String expandedString(MethodContext methodContext)
Description copied from class: MethodOperation
Create an expanded string representation of the operation, is for the current context

Specified by:
expandedString in class MethodOperation