Class WidgetWorker

java.lang.Object
org.apache.ofbiz.widget.WidgetWorker

public final class WidgetWorker extends Object
  • 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

      public static String getContentUrl(String location, HttpServletRequest request)
    • 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

      public static String getScriptLocation(String combinedName)
      Returns the script location based on a script combined name: location#methodName.
      Parameters:
      combinedName - The combined location/method name
      Returns:
      The script location
    • getScriptMethodName

      public static String getScriptMethodName(String combinedName)
      Returns the script method name based on a script combined name: location#methodName. Returns null if no method name is found.
      Parameters:
      combinedName - The combined location/method name
      Returns:
      The method name or null
    • getScreenStack

      public static ScreenRenderer.ScreenStack getScreenStack(Map<String,Object> context)
      Returns the ScreenStack from the context. If none, init new one and return it.
      Parameters:
      context -
      Returns:
    • getJwtCallback

      public static String getJwtCallback(Map<String,Object> context)
      Returns the jwt callback id if present on the context.
      Parameters:
      context -
      Returns:
    • getPaginatorNumber

      public static int getPaginatorNumber(Map<String,Object> context)
    • incrementPaginatorNumber

      public static void incrementPaginatorNumber(Map<String,Object> context)
    • getDispatcher

      public static LocalDispatcher getDispatcher(Map<String,Object> context)
    • getDelegator

      public static Delegator getDelegator(Map<String,Object> context)
    • resolveParametersMapFromQueryString

      public static Map<String,Object> resolveParametersMapFromQueryString(Map<String,Object> context)
      Analyse the context to found the _QBESTRING_ parameter and return it as Map
      Parameters:
      context -
      Returns: