public class SuggestConstants extends Object
| Modifier and Type | Field and Description | 
|---|---|
static String | 
ABSOLUTE_LABEL  | 
static String | 
COMPUTED_ID  | 
static String | 
DEFAULT_KEY_SEPARATOR  | 
static String | 
DEFAULT_LANG  | 
static String | 
DIRECTORY_DEFAULT_LABEL_COL_NAME  | 
static String | 
DIRECTORY_ORDER_FIELD_NAME  | 
static String | 
DISPLAY_ICON  | 
protected static Boolean | 
forceDisplayEmailInSuggestion  | 
static String | 
GROUP_TYPE  | 
static String | 
ICON  | 
static String | 
ID  | 
static String | 
LABEL  | 
static String | 
LANG_TOKEN  | 
static String | 
OBSOLETE_FIELD_ID  | 
static String | 
PARENT_FIELD_ID  | 
static String | 
PREFIXED_ID_KEY_NAME  | 
static String | 
TYPE_KEY_NAME  | 
static String | 
USER_TYPE  | 
static String | 
WARN_MESSAGE_LABEL  | 
| Modifier | Constructor and Description | 
|---|---|
protected  | 
SuggestConstants()  | 
| Modifier and Type | Method and Description | 
|---|---|
static 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 | 
isForceDisplayEmailInSuggestion()  | 
public static final String LANG_TOKEN
public static final String ID
public static final String LABEL
public static final String ICON
public static final String DEFAULT_LANG
public static final String USER_TYPE
public static final String GROUP_TYPE
public static final String TYPE_KEY_NAME
public static final String PREFIXED_ID_KEY_NAME
protected static Boolean forceDisplayEmailInSuggestion
public static final String DISPLAY_ICON
public static final String PARENT_FIELD_ID
public static final String OBSOLETE_FIELD_ID
public static final String ABSOLUTE_LABEL
public static final String COMPUTED_ID
public static final String WARN_MESSAGE_LABEL
public static final String DIRECTORY_ORDER_FIELD_NAME
public static final String DIRECTORY_DEFAULT_LABEL_COL_NAME
public static final String DEFAULT_KEY_SEPARATOR
protected SuggestConstants()
public static void computeGroupLabel(Map<String,Object> obj, String groupId, String groupLabelField, boolean hideFirstLabel)
public static void computeUserGroupIcon(Map<String,Object> obj, boolean hideIcon)
public static void computeUserLabel(Map<String,Object> obj, String firstLabelField, String secondLabelField, String thirdLabelField, boolean hideFirstLabel, boolean hideSecondLabel, boolean hideThirdLabel, boolean displayEmailInSuggestion, String userId)
public static String getLabelFieldName(Schema schema, boolean dbl10n, String labelFieldName, String lang)
schema - the directory schemadbl10n - are translations carried by directory fieldslabelFieldName - the name or pattern of the fields that held valueslang - the current languageIllegalArgumentException - when cannot compute label field nameprotected static boolean isForceDisplayEmailInSuggestion()
Copyright © 2019 Nuxeo. All rights reserved.