Nuxeo Enterprise Platform 5.4

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 java.lang.Object

Author:
George Lefter

Field Summary
static java.lang.String[] VOCABULARY_TYPES
           
static java.lang.String XVOCABULARY_TYPE
          Directory with a parent column.
 
Method Summary
static DirectoryService getDirectoryService()
           
static DocumentModel getEntry(java.lang.String directoryName, java.lang.String entryId)
          Returns the entry with given id from specified directory.
static java.lang.String getOptionValue(java.lang.String optionId, java.lang.String optionLabel, java.lang.String display, boolean displayIdAndLabel, java.lang.String displayIdAndLabelSeparator)
           
 DirectorySelectItem getSelectItem(java.lang.String directoryName, java.util.Map<java.lang.String,java.io.Serializable> filter)
           
 java.util.List<DirectorySelectItem> getSelectItems(java.lang.String directoryName, java.util.Map<java.lang.String,java.io.Serializable> filter)
           
 java.util.List<DirectorySelectItem> getSelectItems(java.lang.String directoryName, java.util.Map<java.lang.String,java.io.Serializable> filter, java.lang.Boolean localize)
           
static java.util.List<DirectorySelectItem> getSelectItems(VocabularyEntryList directoryValues, java.util.Map<java.lang.String,java.io.Serializable> filter)
           
static java.util.List<DirectorySelectItem> getSelectItems(VocabularyEntryList directoryValues, java.util.Map<java.lang.String,java.io.Serializable> filter, java.lang.Boolean localize)
           
 boolean hasParentColumn(java.lang.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 java.lang.String XVOCABULARY_TYPE
Directory with a parent column.

See Also:
Constant Field Values

VOCABULARY_TYPES

public static final java.lang.String[] VOCABULARY_TYPES
Method Detail

instance

public static DirectoryHelper instance()

hasParentColumn

public boolean hasParentColumn(java.lang.String directoryName)

getSelectItem

public DirectorySelectItem getSelectItem(java.lang.String directoryName,
                                         java.util.Map<java.lang.String,java.io.Serializable> filter)

getSelectItems

public java.util.List<DirectorySelectItem> getSelectItems(java.lang.String directoryName,
                                                          java.util.Map<java.lang.String,java.io.Serializable> filter)

getSelectItems

public java.util.List<DirectorySelectItem> getSelectItems(java.lang.String directoryName,
                                                          java.util.Map<java.lang.String,java.io.Serializable> filter,
                                                          java.lang.Boolean localize)

getDirectoryService

public static DirectoryService getDirectoryService()

getSelectItems

public static java.util.List<DirectorySelectItem> getSelectItems(VocabularyEntryList directoryValues,
                                                                 java.util.Map<java.lang.String,java.io.Serializable> filter)

getSelectItems

public static java.util.List<DirectorySelectItem> getSelectItems(VocabularyEntryList directoryValues,
                                                                 java.util.Map<java.lang.String,java.io.Serializable> filter,
                                                                 java.lang.Boolean localize)

getOptionValue

public static java.lang.String getOptionValue(java.lang.String optionId,
                                              java.lang.String optionLabel,
                                              java.lang.String display,
                                              boolean displayIdAndLabel,
                                              java.lang.String displayIdAndLabelSeparator)

getEntry

public static DocumentModel getEntry(java.lang.String directoryName,
                                     java.lang.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 Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.