Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.directory.memory
Class MemoryDirectory

java.lang.Object
  extended by org.nuxeo.ecm.directory.AbstractDirectory
      extended by org.nuxeo.ecm.directory.memory.MemoryDirectory
All Implemented Interfaces:
Directory

public class MemoryDirectory
extends AbstractDirectory

Author:
Florent Guillaume

Field Summary
 String idField
           
 Map<String,Object> map
           
 String name
           
 String passwordField
           
 String schemaName
           
 Set<String> schemaSet
           
 MemoryDirectorySession session
           
 
Constructor Summary
MemoryDirectory(String name, String schemaName, Set<String> schemaSet, String idField, String passwordField)
           
MemoryDirectory(String name, String schema, String idField, String passwordField)
           
 
Method Summary
 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.
 String getSchema()
          Gets the schema name used by this directory.
 SchemaManager getSchemaManager()
           
 Session getSession()
          Creates a session for accessing entries in this directory.
 boolean isReadOnly()
           
 void setReadOnly(boolean isReadOnly)
           
 void shutdown()
          Shuts down the directory.
 
Methods inherited from class org.nuxeo.ecm.directory.AbstractDirectory
addReference, addReferences, getCache, getFieldMapper, getReference, getReferences, invalidateCaches, invalidateDirectoryCache, isReference, orderEntries
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public final String name

schemaName

public final String schemaName

schemaSet

public final Set<String> schemaSet

idField

public final String idField

passwordField

public final String passwordField

map

public Map<String,Object> map

session

public MemoryDirectorySession session
Constructor Detail

MemoryDirectory

public MemoryDirectory(String name,
                       String schema,
                       String idField,
                       String passwordField)
                throws DirectoryException
Throws:
DirectoryException

MemoryDirectory

public MemoryDirectory(String name,
                       String schemaName,
                       Set<String> schemaSet,
                       String idField,
                       String passwordField)
Method Detail

getSchemaManager

public SchemaManager getSchemaManager()
                               throws DirectoryException
Throws:
DirectoryException

getName

public String getName()
Description copied from interface: Directory
Gets the unique name of the directory, used for registering.

Returns:
the unique directory name

getSchema

public String getSchema()
Description copied from interface: Directory
Gets the schema name used by this directory.

Returns:
the schema name

getParentDirectory

public String getParentDirectory()
Description copied from interface: Directory
Gets the name of the parent directory. This is used for hierarchical vocabularies.

Returns:
the name of the parent directory, or null.

getIdField

public String getIdField()
Description copied from interface: Directory
Gets the id field of the schema for this directory.

Returns:
the id field.

getPasswordField

public String getPasswordField()
Description copied from interface: Directory
Gets the password field of the schema for this directory.

Returns:
the password field.

getSession

public Session getSession()
Description copied from interface: Directory
Creates a session for accessing entries in this directory.

Returns:
a Session object

shutdown

public void shutdown()
Description copied from interface: Directory
Shuts down the directory.


isReadOnly

public boolean isReadOnly()

setReadOnly

public void setReadOnly(boolean isReadOnly)

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.