Class SuggestConstants
java.lang.Object
org.nuxeo.ecm.automation.features.SuggestConstants
Constants used to generate JSON for suggestion in operations.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
protected static Boolean
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
computeGroupLabel
(Map<String, Object> obj, String groupId, String groupLabelField, boolean hideFirstLabel) static void
computeUserGroupIcon
(Map<String, Object> obj, boolean hideIcon) static void
computeUserLabel
(Map<String, Object> obj, String firstLabelField, String secondLabelField, String thirdLabelField, boolean hideFirstLabel, boolean hideSecondLabel, boolean hideThirdLabel, boolean displayEmailInSuggestion, String userId) static String
getLabelFieldName
(Schema schema, boolean dbl10n, String labelFieldName, String lang) Compute the field name of the directory that holds the value that we want to display.protected static boolean
-
Field Details
-
LANG_TOKEN
- See Also:
-
ID
- See Also:
-
LABEL
- See Also:
-
ICON
- See Also:
-
DEFAULT_LANG
- See Also:
-
USER_TYPE
- See Also:
-
GROUP_TYPE
- See Also:
-
TYPE_KEY_NAME
- See Also:
-
PREFIXED_ID_KEY_NAME
- See Also:
-
forceDisplayEmailInSuggestion
-
DISPLAY_ICON
- See Also:
-
PARENT_FIELD_ID
- See Also:
-
OBSOLETE_FIELD_ID
- See Also:
-
ABSOLUTE_LABEL
- See Also:
-
COMPUTED_ID
- See Also:
-
WARN_MESSAGE_LABEL
- See Also:
-
DIRECTORY_ORDER_FIELD_NAME
- See Also:
-
DIRECTORY_DEFAULT_LABEL_COL_NAME
- See Also:
-
DEFAULT_KEY_SEPARATOR
- See Also:
-
-
Constructor Details
-
SuggestConstants
protected SuggestConstants()
-
-
Method Details
-
computeGroupLabel
-
computeUserGroupIcon
-
computeUserLabel
-
getLabelFieldName
public static String getLabelFieldName(Schema schema, boolean dbl10n, String labelFieldName, String lang) Compute the field name of the directory that holds the value that we want to display.- Parameters:
schema
- the directory schemadbl10n
- are translations carried by directory fieldslabelFieldName
- the name or pattern of the fields that held valueslang
- the current language- Returns:
- the final field name where we pick up the value
- Throws:
IllegalArgumentException
- when cannot compute label field name- Since:
- 5.7.3
-
isForceDisplayEmailInSuggestion
protected static boolean isForceDisplayEmailInSuggestion()
-