public class LDAPDirectory extends AbstractDirectory
Modifier and Type | Class and Description |
---|---|
static class |
LDAPDirectory.TrustingSSLSocketFactory
SSLSocketFactory implementation that verifies all certificates.
|
Modifier and Type | Field and Description |
---|---|
protected String |
baseFilter |
protected Properties |
contextProperties |
static String |
DN_SPECIAL_ATTRIBUTE_KEY |
protected LDAPDirectoryFactory |
factory |
protected SearchControls |
idSearchControls |
protected SearchControls |
searchControls |
protected ContextProvider |
testServer |
cache, descriptor, fieldMapper, referenceClass, references, registry, schemaFieldMap, sessionCount, sessionMaxCount, TENANT_ID_FIELD, types
Constructor and Description |
---|
LDAPDirectory(LDAPDirectoryDescriptor descriptor) |
Modifier and Type | Method and Description |
---|---|
String |
addBaseFilter(String filter) |
protected void |
addReferences() |
protected Properties |
computeContextProperties() |
protected SearchControls |
computeIdSearchControls() |
protected SearchControls |
computeSearchControls()
Search controls that only fetch attributes defined by the schema
|
protected DirContext |
createContext() |
String |
getBaseFilter() |
Properties |
getContextProperties() |
LDAPDirectoryDescriptor |
getDescriptor()
Get descriptor
|
SearchControls |
getIdSearchControls()
Search controls that only fetch the id.
|
List<Reference> |
getReferences(String referenceFieldName)
Lookup the References by field name.
|
SearchControls |
getSearchControls() |
SearchControls |
getSearchControls(boolean fetchAllAttributes) |
LDAPServerDescriptor |
getServer() |
LDAPSession |
getSession()
Creates a session for accessing entries in this directory.
|
protected ContextProvider |
getTestServer() |
void |
initialize()
INTERNAL, DO NOT CALL.
|
protected void |
setSystemProperty(String key,
String value)
Sets a System property, except if it's already set, to allow for external configuration.
|
void |
setTestServer(ContextProvider testServer) |
addInverseReferences, addReference, addSession, doSanityChecks, fallbackOnDefaultCache, getCache, getDirectoryDeleteConstraints, getFieldMapper, getIdField, getName, getParentDirectory, getPasswordField, getReference, getReferences, getSchema, getSchemaFieldMap, getTypes, initializeInverseReferences, initializeReferences, initSchemaFieldMap, invalidateCaches, invalidateDirectoryCache, isMultiTenant, isReadOnly, isReference, loadData, makeOrderBy, newReference, orderEntries, removeSession, setReadOnly, shutdown
public static final String DN_SPECIAL_ATTRIBUTE_KEY
protected Properties contextProperties
protected volatile SearchControls idSearchControls
protected volatile SearchControls searchControls
protected final LDAPDirectoryFactory factory
protected String baseFilter
protected ContextProvider testServer
public LDAPDirectory(LDAPDirectoryDescriptor descriptor)
public LDAPDirectoryDescriptor getDescriptor()
Directory
protected void addReferences()
addReferences
in class AbstractDirectory
public List<Reference> getReferences(String referenceFieldName)
Directory
getReferences
in interface Directory
getReferences
in class AbstractDirectory
public void initialize()
Directory
initialize
in interface Directory
initialize
in class AbstractDirectory
protected Properties computeContextProperties()
protected void setSystemProperty(String key, String value)
public Properties getContextProperties()
protected SearchControls computeIdSearchControls()
protected SearchControls computeSearchControls()
public SearchControls getIdSearchControls()
public SearchControls getSearchControls()
public SearchControls getSearchControls(boolean fetchAllAttributes)
protected DirContext createContext()
public LDAPServerDescriptor getServer()
public LDAPSession getSession()
Directory
public String getBaseFilter()
public String addBaseFilter(String filter)
protected ContextProvider getTestServer()
public void setTestServer(ContextProvider testServer)
Copyright © 2019 Nuxeo. All rights reserved.