Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.ui.web.directory
Class DirectoryHelper

java.lang.Object
  extended by org.nuxeo.ecm.platform.ui.web.directory.DirectoryHelper

public final class DirectoryHelper
extends Object

Author:
George Lefter

Field Summary
static String[] VOCABULARY_TYPES
           
static String XVOCABULARY_TYPE
          Directory with a parent column.
 
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()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Method Detail

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.

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.