public class SQLDirectory extends AbstractDirectory
Modifier and Type | Field and Description |
---|---|
static String |
TENANT_ID_FIELD |
Constructor and Description |
---|
SQLDirectory(SQLDirectoryDescriptor config) |
Modifier and Type | Method and Description |
---|---|
SQLDirectoryDescriptor |
getConfig() |
DataSource |
getDataSource() |
Dialect |
getDialect() |
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.
|
Map<String,Field> |
getSchemaFieldMap() |
Session |
getSession()
Creates a session for accessing entries in this directory.
|
List<String> |
getStoredFieldNames() |
Table |
getTable() |
boolean |
isMultiTenant()
Returns
true if this directory is a multi tenant directory,
false otherwise. |
void |
shutdown()
Shuts down the directory.
|
boolean |
useNativeCase() |
addReference, addReferences, getCache, getFieldMapper, getReference, getReferences, invalidateCaches, invalidateDirectoryCache, isReference, orderEntries
public static final String TENANT_ID_FIELD
public SQLDirectory(SQLDirectoryDescriptor config) throws ClientException
ClientException
public SQLDirectoryDescriptor getConfig()
public DataSource getDataSource() throws DirectoryException
DirectoryException
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 shutdown()
Directory
public Table getTable()
public Dialect getDialect()
public boolean useNativeCase()
public boolean isMultiTenant()
Directory
true
if this directory is a multi tenant directory,
false
otherwise.isMultiTenant
in interface Directory
isMultiTenant
in class AbstractDirectory
Copyright © 2012 Nuxeo SA. All Rights Reserved.