org.nuxeo.ecm.webapp.directory
Class VocabularyTreeNode
java.lang.Object
org.nuxeo.ecm.webapp.directory.VocabularyTreeNode
public class VocabularyTreeNode
- extends Object
A vocabulary tree node based on l10nvocabulary or l10nxvocabulary directory.
These schemas store translations in columns of the form label_xx_XX or
label_xx. The label of a node is retrieved from column label_xx_XX (where
xx_XX is the current locale name) if it exists, from column label_xx (where
xx is the current locale language) else. If this one doesn't exist either,
the english label (from label_en) is used.
- Since:
- 5.4.3
- Author:
- Quentin Lamerand
Constructor Summary |
VocabularyTreeNode(int level,
String id,
String description,
String path,
String vocabularyName,
DirectoryService directoryService)
|
VocabularyTreeNode(int level,
String id,
String description,
String path,
String vocabularyName,
DirectoryService directoryService,
boolean displayObsoleteEntries,
char keySeparator,
String orderingField)
|
VocabularyTreeNode(int level,
String id,
String description,
String path,
String vocabularyName,
DirectoryService directoryService,
boolean displayObsoleteEntries,
char keySeparator,
String orderingField,
Comparable orderingValue)
|
PARENT_FIELD_ID
public static final String PARENT_FIELD_ID
- See Also:
- Constant Field Values
LABEL_FIELD_PREFIX
public static final String LABEL_FIELD_PREFIX
- See Also:
- Constant Field Values
DEFAULT_LANGUAGE
public static final String DEFAULT_LANGUAGE
- See Also:
- Constant Field Values
OBSOLETE_FIELD
public static final String OBSOLETE_FIELD
- See Also:
- Constant Field Values
VocabularyTreeNode
public VocabularyTreeNode(int level,
String id,
String description,
String path,
String vocabularyName,
DirectoryService directoryService)
VocabularyTreeNode
public VocabularyTreeNode(int level,
String id,
String description,
String path,
String vocabularyName,
DirectoryService directoryService,
boolean displayObsoleteEntries,
char keySeparator,
String orderingField)
VocabularyTreeNode
public VocabularyTreeNode(int level,
String id,
String description,
String path,
String vocabularyName,
DirectoryService directoryService,
boolean displayObsoleteEntries,
char keySeparator,
String orderingField,
Comparable orderingValue)
getChildren
public List<VocabularyTreeNode> getChildren()
computeLabel
public static String computeLabel(Locale locale,
DocumentModel entry,
String schemaName)
getId
public String getId()
getLabel
public String getLabel()
getPath
public String getPath()
getOrdering
public Comparable getOrdering()
Copyright © 2011 Nuxeo SAS. All Rights Reserved.