public class Select2Common extends Object
Constructor and Description |
---|
Select2Common() |
Modifier and Type | Method and Description |
---|---|
static void |
computeGroupLabel(net.sf.json.JSONObject obj,
String groupId,
String groupLabelField,
boolean hideFirstLabel) |
static void |
computeUserGroupIcon(net.sf.json.JSONObject obj,
boolean hideIcon) |
static void |
computeUserLabel(net.sf.json.JSONObject 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.
|
static String[] |
getSchemas(String schemaNames)
Returns an array containing the given schema names plus the default ones
if not included
|
public static final String LANG_TOKEN
public static final String DEFAULT_LANG
public static final String ID
public static final String LABEL
public static final String DIRECTORY_DEFAULT_LABEL_COL_NAME
public static final String PARENT_FIELD_ID
public static final String PLACEHOLDER
public static final String COMPUTED_ID
public static final String DEFAULT_KEY_SEPARATOR
public static final String OBSOLETE_FIELD_ID
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
public static final String SUGGESTION_FORMATTER
public static final String SELECTION_FORMATTER
public static final String USER_DEFAULT_SUGGESTION_FORMATTER
public static final String DOC_DEFAULT_SUGGESTION_FORMATTER
public static final String WARN_MESSAGE_LABEL
public static final String DIR_DEFAULT_SUGGESTION_FORMATTER
public static final String READ_ONLY_PARAM
public static final String RERENDER_JS_FUNCTION_NAME
public static final String AJAX_RERENDER
public static final String USER_DEFAULT_SELECTION_FORMATTER
public static final String DOC_DEFAULT_SELECTION_FORMATTER
public static final String DIR_DEFAULT_SELECTION_FORMATTER
public static final String WIDTH
public static final String DEFAULT_WIDTH
public static final String MIN_CHARS
public static final int DEFAULT_MIN_CHARS
public static final String TITLE
public static final String DISPLAY_ICON
public static final String OPERATION_ID
public static final String DIRECTORY_ORDER_FIELD_NAME
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 namepublic static String[] getSchemas(String schemaNames)
schemaNames
- public static void computeUserLabel(net.sf.json.JSONObject obj, String firstLabelField, String secondLabelField, String thirdLabelField, boolean hideFirstLabel, boolean hideSecondLabel, boolean hideThirdLabel, boolean displayEmailInSuggestion, String userId)
public static void computeGroupLabel(net.sf.json.JSONObject obj, String groupId, String groupLabelField, boolean hideFirstLabel)
public static void computeUserGroupIcon(net.sf.json.JSONObject obj, boolean hideIcon)
Copyright © 2013 Nuxeo SA. All Rights Reserved.