|
Nuxeo Enterprise Platform 5.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.nuxeo.ecm.directory.AbstractDirectory
org.nuxeo.ecm.directory.ldap.LDAPDirectory
public class LDAPDirectory
Implementation of the Directory interface for servers implementing the Lightweight Directory Access Protocol.
Field Summary | |
---|---|
protected String |
baseFilter
|
protected LDAPDirectoryDescriptor |
config
|
protected Properties |
contextProperties
|
static String |
DN_SPECIAL_ATTRIBUTE_KEY
|
protected LDAPDirectoryFactory |
factory
|
protected Map<String,Field> |
schemaFieldMap
|
protected SearchControls |
searchControls
|
protected List<Session> |
sessions
|
protected ContextProvider |
testServer
|
Fields inherited from class org.nuxeo.ecm.directory.AbstractDirectory |
---|
cache, fieldMapper, references |
Constructor Summary | |
---|---|
LDAPDirectory(LDAPDirectoryDescriptor config)
|
Method Summary | |
---|---|
void |
addSession(Session session)
|
protected void |
clearSessions()
|
protected Properties |
computeContextProperties()
|
protected SearchControls |
computeSearchControls()
Search controls that only fetch attributes defined by the schema |
protected DirContext |
createContext()
|
String |
getBaseFilter()
|
LDAPDirectoryDescriptor |
getConfig()
|
Properties |
getContextProperties()
|
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. |
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. |
Map<String,Field> |
getSchemaFieldMap()
|
SearchControls |
getSearchControls()
|
SearchControls |
getSearchControls(boolean fetchAllAttributes)
|
Session |
getSession()
Creates a session for accessing entries in this directory. |
void |
removeSession(Session session)
|
void |
setTestServer(ContextProvider testServer)
|
void |
shutdown()
Shuts down the directory. |
Methods inherited from class org.nuxeo.ecm.directory.AbstractDirectory |
---|
addReference, addReferences, getCache, getFieldMapper, getReference, getReferences, invalidateCaches, isReference, orderEntries |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DN_SPECIAL_ATTRIBUTE_KEY
protected final LDAPDirectoryDescriptor config
protected final Properties contextProperties
protected final SearchControls searchControls
protected final Map<String,Field> schemaFieldMap
protected final LDAPDirectoryFactory factory
protected final List<Session> sessions
protected final String baseFilter
protected ContextProvider testServer
Constructor Detail |
---|
public LDAPDirectory(LDAPDirectoryDescriptor config) throws ClientException
ClientException
Method Detail |
---|
protected Properties computeContextProperties() throws DirectoryException
DirectoryException
public Properties getContextProperties()
protected SearchControls computeSearchControls() throws DirectoryException
DirectoryException
public SearchControls getSearchControls()
public SearchControls getSearchControls(boolean fetchAllAttributes)
protected DirContext createContext() throws DirectoryException
DirectoryException
public IdGenerator getIdGenerator()
Directory
public String getName()
Directory
public String getSchema()
Directory
public String getParentDirectory()
Directory
public String getIdField()
Directory
public String getPasswordField()
Directory
public Session getSession() throws DirectoryException
Directory
DirectoryException
- if a session cannot be createdpublic void removeSession(Session session)
public void addSession(Session session)
protected void clearSessions()
public void shutdown()
Directory
public String getBaseFilter()
public LDAPDirectoryDescriptor getConfig()
public Map<String,Field> getSchemaFieldMap()
public void setTestServer(ContextProvider testServer)
|
Nuxeo Enterprise Platform 5.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |