Class ExpressionUiHelper
java.lang.Object
org.apache.ofbiz.service.calendar.ExpressionUiHelper
TemporalExpression UI artifacts worker.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetCandidateIncludeIds
(Delegator delegator, String tempExprId) Returns a List of candidate inclusion tempExprId Strings.getDayValueList
(Locale locale) Returns a List of Maps containing day of the week values.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.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.getMonthValueList
(Locale locale) Returns a List of Maps containing month values.static List<?>
Returns a List of valid DayInMonth occurrence int values.
-
Constructor Details
-
ExpressionUiHelper
protected ExpressionUiHelper()
-
-
Method Details
-
getOccurrenceList
Returns a List of valid DayInMonth occurrence int values.- Returns:
- returns a List of valid DayInMonth occurrence int values
-
getDayValueList
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
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
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
Returns a List of Maps containing month values.- Parameters:
locale
-- Returns:
- List of Maps. Each Map has a
description
entry and avalue
entry.
-
getFrequencyValueList
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
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
-