Class ExpressionUiHelper

java.lang.Object
org.apache.ofbiz.service.calendar.ExpressionUiHelper

public final class ExpressionUiHelper extends Object
TemporalExpression UI artifacts worker.
  • Constructor Details

    • ExpressionUiHelper

      protected ExpressionUiHelper()
  • Method Details

    • getOccurrenceList

      public static List<?> getOccurrenceList()
      Returns a List of valid DayInMonth occurrence int values.
      Returns:
      returns a List of valid DayInMonth occurrence int values
    • getDayValueList

      public static List<Map<String,Object>> getDayValueList(Locale locale)
      Returns a List of Maps containing day of the week values.
      Parameters:
      locale -
      Returns:
      List of Maps. Each Map has a description entry and a value entry.
    • getFirstDayOfWeek

      public static int getFirstDayOfWeek(Locale locale)
      Returns the first day of the week for the specified locale.
      Parameters:
      locale -
      Returns:
      The first day of the week for the specified locale
    • getLastDayOfWeek

      public static int getLastDayOfWeek(Locale locale)
      Returns the last day of the week for the specified locale.
      Parameters:
      locale -
      Returns:
      The last day of the week for the specified locale
    • getMonthValueList

      public static List<Map<String,Object>> getMonthValueList(Locale locale)
      Returns a List of Maps containing month values.
      Parameters:
      locale -
      Returns:
      List of Maps. Each Map has a description entry and a value entry.
    • getFrequencyValueList

      public static List<Map<String,Object>> getFrequencyValueList(Map<String,Object> uiLabelMap)
      Returns a List of Maps containing valid Frequency values.
      Parameters:
      uiLabelMap - CommonUiLabels label Map
      Returns:
      List of Maps. Each Map has a description entry and a value entry.
    • getExpressionTypeList

      public static List<Map<String,Object>> getExpressionTypeList(Map<String,Object> uiLabelMap)
      Returns a List of Maps containing valid temporal expression types.
      Parameters:
      uiLabelMap - TemporalExpressionUiLabels label Map
      Returns:
      List of Maps. Each Map has a description entry and a value entry.
    • getCandidateIncludeIds

      public static Set<String> getCandidateIncludeIds(Delegator delegator, String tempExprId) throws GenericEntityException
      Returns a List of candidate inclusion tempExprId Strings.
      Parameters:
      delegator -
      tempExprId - The ID of the temporal expression needing candidates for inclusion
      Returns:
      Set of candidate tempExprId Strings
      Throws:
      GenericEntityException