public class DirectoryContentProvider extends Object implements ContentProvider
| Constructor and Description | 
|---|
DirectoryContentProvider(Session session)  | 
| Modifier and Type | Method and Description | 
|---|---|
protected void | 
createQuery(DocumentModel parent,
           Map<String,Serializable> query)  | 
Object[] | 
getChildren(Object obj)
Gets the children for the given object. 
 | 
Object[] | 
getElements(Object input)
Gets the top level items. 
 | 
String[] | 
getFacets(Object object)
Gets the object facets. 
 | 
String | 
getLabel(Object obj)
Gets the label to be used when displaying the given object. 
 | 
String | 
getName(Object obj)
Gets the name of the object. 
 | 
Session | 
getSession()  | 
boolean | 
isContainer(Object obj)
Whether the given object may have children (e.g it's a container). 
 | 
public DirectoryContentProvider(Session session)
public Session getSession()
protected void createQuery(DocumentModel parent, Map<String,Serializable> query)
public Object[] getElements(Object input)
ContentProviderThe items will be shown on the top level of the tree. These items are computed from the tree input that will be considered the tree root. The tree root is not visible.
getElements in interface ContentProviderinput - the tree view inputpublic Object[] getChildren(Object obj)
ContentProviderThis method is used to populate the nested branches of the tree.
getChildren in interface ContentProviderobj - the objectpublic boolean isContainer(Object obj)
ContentProviderisContainer in interface ContentProviderobj - the object to testpublic String getName(Object obj)
ContentProviderThe name must be an unique identifier relative to the parent item. It will be used as node names in the tree so that they will construct the item path.
getName in interface ContentProviderobj - the objectpublic String getLabel(Object obj)
ContentProvidergetLabel in interface ContentProviderobj - the objectpublic String[] getFacets(Object object)
ContentProviderFacets are arbitrary strings that should describe object capabilities and can be used to decorate later the item.
In a web environment they may be translated to CSS classes.
getFacets in interface ContentProviderCopyright © 2019 Nuxeo. All rights reserved.