Package org.nuxeo.ecm.directory.multi
Class MultiDirectory
- java.lang.Object
-
- org.nuxeo.ecm.directory.AbstractDirectory
-
- org.nuxeo.ecm.directory.multi.MultiDirectory
-
- All Implemented Interfaces:
Directory
public class MultiDirectory extends AbstractDirectory
- Author:
- Florent Guillaume
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.nuxeo.ecm.directory.AbstractDirectory
AbstractDirectory.CSVLoaderConsumer
-
-
Field Summary
-
Fields inherited from class org.nuxeo.ecm.directory.AbstractDirectory
cache, descriptor, fieldMapper, referenceClass, references, registry, schemaFieldMap, sessionCount, sessionMaxCount, TENANT_ID_FIELD, types
-
-
Constructor Summary
Constructors Constructor Description MultiDirectory(MultiDirectoryDescriptor descriptor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MultiDirectoryDescriptor
getDescriptor()
Get descriptorList<Reference>
getReferences(String referenceFieldName)
Lookup the References by field name.MultiDirectorySession
getSession()
Creates a session for accessing entries in this directory.void
invalidateDirectoryCache()
Invalidates the cache instance of the directory-
Methods inherited from class org.nuxeo.ecm.directory.AbstractDirectory
addInverseReferences, addReference, addReferences, addSession, doSanityChecks, fallbackOnDefaultCache, getCache, getDirectoryDeleteConstraints, getFieldMapper, getIdField, getName, getParentDirectory, getPasswordField, getReference, getReferences, getSchema, getSchemaFieldMap, getTypes, initialize, initializeInverseReferences, initializeReferences, initSchemaFieldMap, invalidateCaches, isMultiTenant, isReadOnly, isReference, loadData, loadDataOnInit, loadFromCSV, makeOrderBy, newReference, orderEntries, removeSession, setReadOnly, shutdown
-
-
-
-
Constructor Detail
-
MultiDirectory
public MultiDirectory(MultiDirectoryDescriptor descriptor)
-
-
Method Detail
-
getDescriptor
public MultiDirectoryDescriptor getDescriptor()
Description copied from interface:Directory
Get descriptor
-
getSession
public MultiDirectorySession getSession()
Description copied from interface:Directory
Creates a session for accessing entries in this directory.- Returns:
- a Session object
-
getReferences
public List<Reference> getReferences(String referenceFieldName)
Description copied from interface:Directory
Lookup the References by field name.- Specified by:
getReferences
in interfaceDirectory
- Overrides:
getReferences
in classAbstractDirectory
- Returns:
- the matching references implementation or null
-
invalidateDirectoryCache
public void invalidateDirectoryCache()
Description copied from interface:Directory
Invalidates the cache instance of the directory- Specified by:
invalidateDirectoryCache
in interfaceDirectory
- Overrides:
invalidateDirectoryCache
in classAbstractDirectory
-
-