public abstract class AbstractDirectory extends Object implements Directory
| Modifier and Type | Method and Description | 
|---|---|
void | 
addReference(Reference reference)  | 
void | 
addReferences(Reference[] references)  | 
void | 
addSession(Session session)  | 
DirectoryCache | 
getCache()
Gets the cache instance of the directory 
 | 
DirectoryFieldMapper | 
getFieldMapper()  | 
Reference | 
getReference(String referenceFieldName)
Lookup a Reference by field name. 
 | 
Collection<Reference> | 
getReferences()
Lookup all References defined on the directory. 
 | 
void | 
invalidateCaches()
Invalidate my cache and the caches of linked directories by references. 
 | 
void | 
invalidateDirectoryCache()
Invalidates the cache instance of the directory 
 | 
boolean | 
isMultiTenant()
Returns  
true if this directory is a multi tenant directory,
 false otherwise. | 
boolean | 
isReference(String referenceFieldName)  | 
void | 
orderEntries(List<DocumentModel> entries,
            Map<String,String> orderBy)
Helper method to order entries. 
 | 
void | 
removeSession(Session session)  | 
void | 
shutdown()
Shuts down the directory. 
 | 
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetIdField, getName, getParentDirectory, getPasswordField, getSchema, getSessionpublic final String name
public void invalidateCaches()
                      throws DirectoryException
DirectoryExceptionpublic DirectoryFieldMapper getFieldMapper()
public Reference getReference(String referenceFieldName)
DirectorygetReference in interface Directorypublic boolean isReference(String referenceFieldName)
public void addReference(Reference reference) throws ClientException
ClientExceptionpublic void addReferences(Reference[] references) throws ClientException
ClientExceptionpublic Collection<Reference> getReferences()
DirectorygetReferences in interface Directorypublic void orderEntries(List<DocumentModel> entries, Map<String,String> orderBy) throws DirectoryException
entries - the list of entries.orderBy - an ordered map of field name -> "asc" or "desc".DirectoryExceptionpublic DirectoryCache getCache()
Directorypublic void removeSession(Session session)
public void addSession(Session session)
public void invalidateDirectoryCache()
                              throws DirectoryException
DirectoryinvalidateDirectoryCache in interface DirectoryDirectoryExceptionpublic boolean isMultiTenant()
Directorytrue if this directory is a multi tenant directory,
 false otherwise.isMultiTenant in interface DirectoryCopyright © 2013 Nuxeo SA. All Rights Reserved.