Package org.apache.ofbiz.widget
Class WidgetWorker
java.lang.Object
org.apache.ofbiz.widget.WidgetWorker
-
Method Summary
Modifier and TypeMethodDescriptionstatic URI
buildHyperlinkUri
(String target, String targetType, Map<String, String> parameterMap, String prefix, boolean fullPath, boolean secure, boolean encode, HttpServletRequest request, HttpServletResponse response) static String
determineAutoLinkType
(String linkType, String target, String targetType, HttpServletRequest request) static String
getContentUrl
(String location, HttpServletRequest request) static Delegator
getDelegator
(Map<String, Object> context) static LocalDispatcher
getDispatcher
(Map<String, Object> context) static String
getJwtCallback
(Map<String, Object> context) Returns the jwt callback id if present on the context.static int
getPaginatorNumber
(Map<String, Object> context) static ScreenRenderer.ScreenStack
getScreenStack
(Map<String, Object> context) Returns the ScreenStack from the context.static String
getScriptLocation
(String combinedName) Returns the script location based on a script combined name:location#methodName
.static String
getScriptMethodName
(String combinedName) Returns the script method name based on a script combined name:location#methodName
.static void
incrementPaginatorNumber
(Map<String, Object> context) static org.jsoup.nodes.Element
makeHiddenFormLinkAnchorElement
(String linkStyle, String description, String confirmation, ModelFormField modelFormField, HttpServletRequest request, Map<String, Object> context) static org.jsoup.nodes.Element
makeHiddenFormLinkFormElement
(String target, String targetType, String targetWindow, Map<String, String> parameterMap, ModelFormField modelFormField, HttpServletRequest request, HttpServletResponse response, Map<String, Object> context) static String
makeLinkHiddenFormName
(Map<String, Object> context, ModelFormField modelFormField) resolveParametersMapFromQueryString
(Map<String, Object> context) Analyse the context to found the _QBESTRING_ parameter and return it as Map
-
Method Details
-
buildHyperlinkUri
public static URI buildHyperlinkUri(String target, String targetType, Map<String, String> parameterMap, String prefix, boolean fullPath, boolean secure, boolean encode, HttpServletRequest request, HttpServletResponse response) -
getContentUrl
-
makeHiddenFormLinkAnchorElement
public static org.jsoup.nodes.Element makeHiddenFormLinkAnchorElement(String linkStyle, String description, String confirmation, ModelFormField modelFormField, HttpServletRequest request, Map<String, Object> context) -
makeHiddenFormLinkFormElement
public static org.jsoup.nodes.Element makeHiddenFormLinkFormElement(String target, String targetType, String targetWindow, Map<String, String> parameterMap, ModelFormField modelFormField, HttpServletRequest request, HttpServletResponse response, Map<String, Object> context) -
makeLinkHiddenFormName
public static String makeLinkHiddenFormName(Map<String, Object> context, ModelFormField modelFormField) -
determineAutoLinkType
public static String determineAutoLinkType(String linkType, String target, String targetType, HttpServletRequest request) -
getScriptLocation
Returns the script location based on a script combined name:location#methodName
.- Parameters:
combinedName
- The combined location/method name- Returns:
- The script location
-
getScriptMethodName
Returns the script method name based on a script combined name:location#methodName
. Returnsnull
if no method name is found.- Parameters:
combinedName
- The combined location/method name- Returns:
- The method name or
null
-
getScreenStack
Returns the ScreenStack from the context. If none, init new one and return it.- Parameters:
context
-- Returns:
-
getJwtCallback
Returns the jwt callback id if present on the context.- Parameters:
context
-- Returns:
-
getPaginatorNumber
-
incrementPaginatorNumber
-
getDispatcher
-
getDelegator
-
resolveParametersMapFromQueryString
Analyse the context to found the _QBESTRING_ parameter and return it as Map- Parameters:
context
-- Returns:
-