Package org.nuxeo.ecm.directory
Interface Directory
-
- All Known Implementing Classes:
AbstractDirectory
,CoreDirectory
,LDAPDirectory
,MemoryDirectory
,MongoDBDirectory
,MultiDirectory
,SQLDirectory
public interface Directory
The directory interface.This interface is implemented in order to create an NXDirectory. One should implement this interface in order to create either a new Directory implementation or a new Directory Source.
- Author:
- [email protected]
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description DirectoryCache
getCache()
Gets the cache instance of the directoryBaseDirectoryDescriptor
getDescriptor()
Get descriptorList<DirectoryDeleteConstraint>
getDirectoryDeleteConstraints()
String
getIdField()
Gets the id field of the schema for this directory.String
getName()
Gets the unique name of the directory, used for registering.String
getParentDirectory()
Gets the name of the parent directory.String
getPasswordField()
Gets the password field of the schema for this directory.Reference
getReference(String referenceFieldName)
Deprecated.since 7.4, kept for compatibility with old code, usegetReferences(String)
insteadCollection<Reference>
getReferences()
Lookup all References defined on the directory.List<Reference>
getReferences(String referenceFieldName)
Lookup the References by field name.String
getSchema()
Gets the schema name used by this directory.Map<String,Field>
getSchemaFieldMap()
Get schema field mapSession
getSession()
Creates a session for accessing entries in this directory.List<String>
getTypes()
void
initialize()
INTERNAL, DO NOT CALL.void
initializeInverseReferences()
INTERNAL, DO NOT CALL.void
initializeReferences()
INTERNAL, DO NOT CALL.void
invalidateCaches()
Invalidate cachesvoid
invalidateDirectoryCache()
Invalidates the cache instance of the directoryboolean
isMultiTenant()
Returnstrue
if this directory is a multi tenant directory,false
otherwise.boolean
isReadOnly()
Checks if this directory is read-only.void
loadFromCSV(Blob dataBlob, String dataLoadingPolicy)
Loads a CSV into a Directory.void
shutdown()
Shuts down the directory.
-
-
-
Method Detail
-
initialize
void initialize()
INTERNAL, DO NOT CALL. Initializes the directory when Nuxeo starts. Called without a transaction.- Since:
- 10.10
-
initializeReferences
void initializeReferences()
INTERNAL, DO NOT CALL. Initializes the directory when Nuxeo starts. Called without a transaction.- Since:
- 10.10
-
initializeInverseReferences
void initializeInverseReferences()
INTERNAL, DO NOT CALL. Initializes the directory when Nuxeo starts. Called without a transaction.- Since:
- 10.10
-
loadFromCSV
void loadFromCSV(Blob dataBlob, String dataLoadingPolicy)
Loads a CSV into a Directory.- Since:
- 11.1
- See Also:
BaseDirectoryDescriptor.DATA_LOADING_POLICIES
-
getName
String getName()
Gets the unique name of the directory, used for registering.- Returns:
- the unique directory name
-
getSchema
String getSchema()
Gets the schema name used by this directory.- Returns:
- the schema name
-
getParentDirectory
String getParentDirectory()
Gets the name of the parent directory. This is used for hierarchical vocabularies.- Returns:
- the name of the parent directory, or null.
-
getIdField
String getIdField()
Gets the id field of the schema for this directory.- Returns:
- the id field.
-
getPasswordField
String getPasswordField()
Gets the password field of the schema for this directory.- Returns:
- the password field.
-
isReadOnly
boolean isReadOnly()
Checks if this directory is read-only.- Since:
- 8.2
-
shutdown
void shutdown()
Shuts down the directory.
-
getSession
Session getSession()
Creates a session for accessing entries in this directory.- Returns:
- a Session object
-
getReference
@Deprecated(since="7.4") Reference getReference(String referenceFieldName)
Deprecated.since 7.4, kept for compatibility with old code, usegetReferences(String)
insteadLookup a Reference by field name.- Returns:
- the matching reference implementation or null
-
getReferences
List<Reference> getReferences(String referenceFieldName)
Lookup the References by field name.- Returns:
- the matching references implementation or null
-
getReferences
Collection<Reference> getReferences()
Lookup all References defined on the directory.- Returns:
- all registered references
-
getCache
DirectoryCache getCache()
Gets the cache instance of the directory- Returns:
- the cache of the directory
-
invalidateDirectoryCache
void invalidateDirectoryCache()
Invalidates the cache instance of the directory
-
isMultiTenant
boolean isMultiTenant()
Returnstrue
if this directory is a multi tenant directory,false
otherwise.- Since:
- 5.6
-
getDirectoryDeleteConstraints
List<DirectoryDeleteConstraint> getDirectoryDeleteConstraints()
- Since:
- 8.4
-
invalidateCaches
void invalidateCaches()
Invalidate caches- Since:
- 9.2
-
getDescriptor
BaseDirectoryDescriptor getDescriptor()
Get descriptor- Since:
- 9.2
-
-