org.ofbiz.core.minilang
Class SimpleMethod
java.lang.Object
|
+--org.ofbiz.core.minilang.SimpleMethod
- public class SimpleMethod
- extends java.lang.Object
SimpleMethod Mini Language Core Object
- Since:
- 2.0
- Version:
- $Revision: 1.55 $
- Author:
- David E. Jones, Andy Zeneski
Constructor Summary |
SimpleMethod(org.w3c.dom.Element simpleMethodElement,
java.util.Map parentSimpleMethodsMap)
|
Method Summary |
java.lang.String |
exec(MethodContext methodContext)
Execute the Simple Method operations |
protected static java.util.Map |
getAllDirectSimpleMethods(java.lang.String name,
java.lang.String content)
|
protected static java.util.Map |
getAllSimpleMethods(java.net.URL xmlURL)
|
java.lang.String |
getDefaultErrorCode()
|
java.lang.String |
getDefaultSuccessCode()
|
java.lang.String |
getDelegatorEnvName()
|
static java.util.Map |
getDirectSimpleMethods(java.lang.String name,
java.lang.String content)
|
java.lang.String |
getDispatcherEnvName()
|
java.lang.String |
getEventErrorMessageName()
|
java.lang.String |
getEventEventMessageName()
|
java.lang.String |
getEventRequestName()
|
java.lang.String |
getEventResponseCodeName()
|
boolean |
getLoginRequired()
|
java.lang.String |
getMethodName()
|
java.lang.String |
getParameterMapName()
|
java.lang.String |
getSecurityEnvName()
|
java.lang.String |
getServiceErrorMessageListName()
|
java.lang.String |
getServiceErrorMessageName()
|
java.lang.String |
getServiceResponseMessageName()
|
java.lang.String |
getServiceSuccessMessageListName()
|
java.lang.String |
getServiceSuccessMessageName()
|
java.lang.String |
getShortDescription()
|
SimpleMethod |
getSimpleMethodInSameFile(java.lang.String simpleMethodName)
|
static java.util.Map |
getSimpleMethods(java.lang.String xmlResource,
java.lang.String methodName,
java.lang.ClassLoader loader)
|
static java.util.Map |
getSimpleMethods(java.net.URL xmlURL,
java.lang.String methodName)
|
boolean |
getUseTransaction()
|
static void |
readOperations(org.w3c.dom.Element simpleMethodElement,
java.util.List methodOperations,
SimpleMethod simpleMethod)
|
static java.lang.String |
runSimpleEvent(java.lang.String xmlResource,
java.lang.String methodName,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
static java.lang.String |
runSimpleEvent(java.lang.String xmlResource,
java.lang.String methodName,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.ClassLoader loader)
|
static java.lang.String |
runSimpleEvent(java.net.URL xmlURL,
java.lang.String methodName,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.ClassLoader loader)
|
static java.lang.String |
runSimpleMethod(java.lang.String xmlResource,
java.lang.String methodName,
MethodContext methodContext)
|
static java.lang.String |
runSimpleMethod(java.net.URL xmlURL,
java.lang.String methodName,
MethodContext methodContext)
|
static java.util.Map |
runSimpleService(java.lang.String xmlResource,
java.lang.String methodName,
DispatchContext ctx,
java.util.Map context)
|
static java.util.Map |
runSimpleService(java.lang.String xmlResource,
java.lang.String methodName,
DispatchContext ctx,
java.util.Map context,
java.lang.ClassLoader loader)
|
static java.util.Map |
runSimpleService(java.net.URL xmlURL,
java.lang.String methodName,
DispatchContext ctx,
java.util.Map context,
java.lang.ClassLoader loader)
|
static boolean |
runSubOps(java.util.List methodOperations,
MethodContext methodContext)
Execs the given operations returning true if all return true, or returning
false and stopping if any return false. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
module
public static final java.lang.String module
simpleMethodsDirectCache
protected static UtilCache simpleMethodsDirectCache
simpleMethodsResourceCache
protected static UtilCache simpleMethodsResourceCache
simpleMethodsURLCache
protected static UtilCache simpleMethodsURLCache
SimpleMethod
public SimpleMethod(org.w3c.dom.Element simpleMethodElement,
java.util.Map parentSimpleMethodsMap)
runSimpleEvent
public static java.lang.String runSimpleEvent(java.lang.String xmlResource,
java.lang.String methodName,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws MiniLangException
MiniLangException
runSimpleEvent
public static java.lang.String runSimpleEvent(java.lang.String xmlResource,
java.lang.String methodName,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.ClassLoader loader)
throws MiniLangException
MiniLangException
runSimpleEvent
public static java.lang.String runSimpleEvent(java.net.URL xmlURL,
java.lang.String methodName,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.ClassLoader loader)
throws MiniLangException
MiniLangException
runSimpleService
public static java.util.Map runSimpleService(java.lang.String xmlResource,
java.lang.String methodName,
DispatchContext ctx,
java.util.Map context)
throws MiniLangException
MiniLangException
runSimpleService
public static java.util.Map runSimpleService(java.lang.String xmlResource,
java.lang.String methodName,
DispatchContext ctx,
java.util.Map context,
java.lang.ClassLoader loader)
throws MiniLangException
MiniLangException
runSimpleService
public static java.util.Map runSimpleService(java.net.URL xmlURL,
java.lang.String methodName,
DispatchContext ctx,
java.util.Map context,
java.lang.ClassLoader loader)
throws MiniLangException
MiniLangException
runSimpleMethod
public static java.lang.String runSimpleMethod(java.lang.String xmlResource,
java.lang.String methodName,
MethodContext methodContext)
throws MiniLangException
MiniLangException
runSimpleMethod
public static java.lang.String runSimpleMethod(java.net.URL xmlURL,
java.lang.String methodName,
MethodContext methodContext)
throws MiniLangException
MiniLangException
getSimpleMethods
public static java.util.Map getSimpleMethods(java.lang.String xmlResource,
java.lang.String methodName,
java.lang.ClassLoader loader)
throws MiniLangException
MiniLangException
getSimpleMethods
public static java.util.Map getSimpleMethods(java.net.URL xmlURL,
java.lang.String methodName)
throws MiniLangException
MiniLangException
getAllSimpleMethods
protected static java.util.Map getAllSimpleMethods(java.net.URL xmlURL)
throws MiniLangException
MiniLangException
getDirectSimpleMethods
public static java.util.Map getDirectSimpleMethods(java.lang.String name,
java.lang.String content)
throws MiniLangException
MiniLangException
getAllDirectSimpleMethods
protected static java.util.Map getAllDirectSimpleMethods(java.lang.String name,
java.lang.String content)
throws MiniLangException
MiniLangException
getMethodName
public java.lang.String getMethodName()
getSimpleMethodInSameFile
public SimpleMethod getSimpleMethodInSameFile(java.lang.String simpleMethodName)
getShortDescription
public java.lang.String getShortDescription()
getDefaultErrorCode
public java.lang.String getDefaultErrorCode()
getDefaultSuccessCode
public java.lang.String getDefaultSuccessCode()
getParameterMapName
public java.lang.String getParameterMapName()
getEventRequestName
public java.lang.String getEventRequestName()
getEventResponseCodeName
public java.lang.String getEventResponseCodeName()
getEventErrorMessageName
public java.lang.String getEventErrorMessageName()
getEventEventMessageName
public java.lang.String getEventEventMessageName()
getServiceResponseMessageName
public java.lang.String getServiceResponseMessageName()
getServiceErrorMessageName
public java.lang.String getServiceErrorMessageName()
getServiceErrorMessageListName
public java.lang.String getServiceErrorMessageListName()
getServiceSuccessMessageName
public java.lang.String getServiceSuccessMessageName()
getServiceSuccessMessageListName
public java.lang.String getServiceSuccessMessageListName()
getLoginRequired
public boolean getLoginRequired()
getUseTransaction
public boolean getUseTransaction()
getDelegatorEnvName
public java.lang.String getDelegatorEnvName()
getSecurityEnvName
public java.lang.String getSecurityEnvName()
getDispatcherEnvName
public java.lang.String getDispatcherEnvName()
exec
public java.lang.String exec(MethodContext methodContext)
- Execute the Simple Method operations
readOperations
public static void readOperations(org.w3c.dom.Element simpleMethodElement,
java.util.List methodOperations,
SimpleMethod simpleMethod)
runSubOps
public static boolean runSubOps(java.util.List methodOperations,
MethodContext methodContext)
- Execs the given operations returning true if all return true, or returning
false and stopping if any return false.