org.nuxeo.ecm.platform.ui.web.directory
Class DirectoryHelper
java.lang.Object
org.nuxeo.ecm.platform.ui.web.directory.DirectoryHelper
public final class DirectoryHelper
- extends Object
- Author:
- George Lefter
Method Summary |
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()
|
XVOCABULARY_TYPE
public static final String XVOCABULARY_TYPE
- Directory with a parent column.
- See Also:
- Constant Field Values
VOCABULARY_TYPES
public static final String[] VOCABULARY_TYPES
instance
public static DirectoryHelper instance()
hasParentColumn
public boolean hasParentColumn(String directoryName)
getSelectItem
public DirectorySelectItem getSelectItem(String directoryName,
Map<String,Serializable> filter)
getSelectItems
public List<DirectorySelectItem> getSelectItems(String directoryName,
Map<String,Serializable> filter)
getSelectItems
public List<DirectorySelectItem> getSelectItems(String directoryName,
Map<String,Serializable> filter,
Boolean localize)
getDirectoryService
public static DirectoryService getDirectoryService()
getSelectItems
public static List<DirectorySelectItem> getSelectItems(VocabularyEntryList directoryValues,
Map<String,Serializable> filter)
getSelectItems
public static List<DirectorySelectItem> getSelectItems(VocabularyEntryList directoryValues,
Map<String,Serializable> filter,
Boolean localize)
getOptionValue
public static String getOptionValue(String optionId,
String optionLabel,
String display,
boolean displayIdAndLabel,
String displayIdAndLabelSeparator)
getEntry
public static DocumentModel getEntry(String directoryName,
String entryId)
- Returns the entry with given id from specified directory.
Method to use from components, since JSF base class that we extend don't allow
to throw proper exceptions.
- Parameters:
directoryName
- entryId
-
- Returns:
- the entry, or null in case of exception in callees.
Copyright © 2011 Nuxeo SAS. All Rights Reserved.