Nuxeo Enterprise Platform 5.4

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
 java.lang.String idField
           
 java.util.Map<java.lang.String,java.lang.Object> map
           
 java.lang.String name
           
 java.lang.String passwordField
           
 java.lang.String schemaName
           
 java.util.Set<java.lang.String> schemaSet
           
 MemoryDirectorySession session
           
 
Constructor Summary
MemoryDirectory(java.lang.String name, java.lang.String schemaName, java.util.Set<java.lang.String> schemaSet, java.lang.String idField, java.lang.String passwordField)
           
MemoryDirectory(java.lang.String name, java.lang.String schema, java.lang.String idField, java.lang.String passwordField)
           
 
Method Summary
 java.lang.String getIdField()
          Gets the id field of the schema for this directory.
 IdGenerator getIdGenerator()
          Gets the ID generator used when creating new entries in this directory.
 java.lang.String getName()
          Gets the unique name of the directory, used for registering.
 java.lang.String getParentDirectory()
          Gets the name of the parent directory.
 java.lang.String getPasswordField()
          Gets the password field of the schema for this directory.
 java.lang.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 java.lang.String name

schemaName

public final java.lang.String schemaName

schemaSet

public final java.util.Set<java.lang.String> schemaSet

idField

public final java.lang.String idField

passwordField

public final java.lang.String passwordField

map

public java.util.Map<java.lang.String,java.lang.Object> map

session

public MemoryDirectorySession session
Constructor Detail

MemoryDirectory

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

MemoryDirectory

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

getSchemaManager

public SchemaManager getSchemaManager()
                               throws DirectoryException
Throws:
DirectoryException

getIdGenerator

public IdGenerator getIdGenerator()
Description copied from interface: Directory
Gets the ID generator used when creating new entries in this directory.

Returns:
an ID Generator object

getName

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

Returns:
the unique directory name

getSchema

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

Returns:
the schema name

getParentDirectory

public java.lang.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 java.lang.String getIdField()
Description copied from interface: Directory
Gets the id field of the schema for this directory.

Returns:
the id field.

getPasswordField

public java.lang.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 Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.