Class ExpressionUiHelper
- java.lang.Object
-
- org.apache.ofbiz.service.calendar.ExpressionUiHelper
-
public class ExpressionUiHelper extends Object
TemporalExpression UI artifacts worker.
-
-
Constructor Summary
Constructors Constructor Description ExpressionUiHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Set<String>
getCandidateIncludeIds(Delegator delegator, String tempExprId)
Returns a List of candidate inclusion tempExprId Strings.static List<Map<String,Object>>
getDayValueList(Locale locale)
Returns a List of Maps containing day of the week values.static List<Map<String,Object>>
getExpressionTypeList(Map<String,Object> uiLabelMap)
Returns a List of Maps containing valid temporal expression types.static int
getFirstDayOfWeek(Locale locale)
Returns the first day of the week for the specified locale.static List<Map<String,Object>>
getFrequencyValueList(Map<String,Object> uiLabelMap)
Returns a List of Maps containing valid Frequency values.static int
getLastDayOfWeek(Locale locale)
Returns the last day of the week for the specified locale.static List<Map<String,Object>>
getMonthValueList(Locale locale)
Returns a List of Maps containing month values.static List<?>
getOccurrenceList()
Returns a List of valid DayInMonth occurrence int values.
-
-
-
Method Detail
-
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 avalue
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 avalue
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 avalue
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 avalue
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
-
-