public final class DirectoryHelper extends Object
Modifier and Type | Field and Description |
---|---|
static String[] |
VOCABULARY_TYPES |
static String |
XVOCABULARY_TYPE
Directory with a parent column.
|
Modifier and Type | Method and Description |
---|---|
static DirectoryService |
getDirectoryService() |
static DocumentModel |
getEntry(String directoryName,
String entryId)
Returns the entry with given id from specified directory.
|
static String |
getOptionValue(String optionId,
String optionLabel,
String display,
boolean displayIdAndLabel,
String displayIdAndLabelSeparator) |
DirectorySelectItem |
getSelectItem(String directoryName,
Map<String,Serializable> filter) |
List<DirectorySelectItem> |
getSelectItems(String directoryName,
Map<String,Serializable> filter) |
List<DirectorySelectItem> |
getSelectItems(String directoryName,
Map<String,Serializable> filter,
Boolean localize) |
static List<DirectorySelectItem> |
getSelectItems(VocabularyEntryList directoryValues,
Map<String,Serializable> filter) |
static List<DirectorySelectItem> |
getSelectItems(VocabularyEntryList directoryValues,
Map<String,Serializable> filter,
Boolean localize) |
boolean |
hasParentColumn(String directoryName) |
static DirectoryHelper |
instance() |
public static final String XVOCABULARY_TYPE
public static final String[] VOCABULARY_TYPES
public static DirectoryHelper instance()
public boolean hasParentColumn(String directoryName)
public DirectorySelectItem getSelectItem(String directoryName, Map<String,Serializable> filter)
public List<DirectorySelectItem> getSelectItems(String directoryName, Map<String,Serializable> filter)
public List<DirectorySelectItem> getSelectItems(String directoryName, Map<String,Serializable> filter, Boolean localize)
public static DirectoryService getDirectoryService()
public static List<DirectorySelectItem> getSelectItems(VocabularyEntryList directoryValues, Map<String,Serializable> filter)
public static List<DirectorySelectItem> getSelectItems(VocabularyEntryList directoryValues, Map<String,Serializable> filter, Boolean localize)
public static String getOptionValue(String optionId, String optionLabel, String display, boolean displayIdAndLabel, String displayIdAndLabelSeparator)
public static DocumentModel getEntry(String directoryName, String entryId)
Method to use from components, since JSF base class that we extend don't allow to throw proper exceptions.
directoryName
- entryId
- Copyright © 2013 Nuxeo SA. All Rights Reserved.