Package org.nuxeo.ecm.directory
Class BaseDirectoryDescriptor
java.lang.Object
org.nuxeo.ecm.directory.BaseDirectoryDescriptor
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
CoreDirectoryDescriptor
,LDAPDirectoryDescriptor
,MemoryDirectoryDescriptor
,MongoDBDirectoryDescriptor
,MultiDirectoryDescriptor
,SQLDirectoryDescriptor
Basic directory descriptor, containing the basic fields used by all directories.
- Since:
- 8.2
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
How directory semi-"fulltext" searches are matched with a query string. -
Field Summary
Modifier and TypeFieldDescriptionstatic final boolean
static final int
static final int
protected boolean
static final String
Always recreates the table from scratch and loads the CSV data.static final String
static final String
Doesn't create or modify the table in any way.static final String
If the table doesn't exist then creates it and loads the CSV data.Policy used to deal with duplicates when loading data to a directory.static final String
Load the CSV file if the table has just been created (behavior before introducing data loading feature).static final String
Doesn't load the CSV data.static final String
If the data loaded from CSV already exist throw an exception.static final String
Duplicate lines in data load from CSV are ignored.static final String
Load CSV data and update duplicate lines.static final char
static final boolean
boolean
static final BaseDirectoryDescriptor.SubstringMatchType
boolean
String[]
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static void
checkDataLoadingPolicy
(String dataLoadingPolicy) clone()
Sub-classes MUST OVERRIDE and use a more specific return type.int
int
char
Returns the dataLoadingPolicy; default isDATA_LOADING_POLICY_NEVER_LOAD
.boolean
boolean
Returnstrue
if a multi tenant id should be computed for this directory, if the directory has support for multi tenancy,false
otherwise.boolean
void
merge
(BaseDirectoryDescriptor other) Creates a newDirectory
instance from thisBaseDirectoryDescriptor
.void
setAutoincrementIdField
(boolean autoincrementIdField) void
setReadOnly
(boolean readOnly)
-
Field Details
-
AUTO_INCREMENT_ID_FIELD_DEFAULT
public static final boolean AUTO_INCREMENT_ID_FIELD_DEFAULT- See Also:
-
CACHE_TIMEOUT_DEFAULT
public static final int CACHE_TIMEOUT_DEFAULT- See Also:
-
CACHE_MAX_SIZE_DEFAULT
public static final int CACHE_MAX_SIZE_DEFAULT- See Also:
-
READ_ONLY_DEFAULT
public static final boolean READ_ONLY_DEFAULT- See Also:
-
SUBSTRING_MATCH_TYPE_DEFAULT
-
DEFAULT_DATA_FILE_CHARACTER_SEPARATOR
public static final char DEFAULT_DATA_FILE_CHARACTER_SEPARATOR- See Also:
-
CREATE_TABLE_POLICY_NEVER
Doesn't create or modify the table in any way.- See Also:
-
CREATE_TABLE_POLICY_ALWAYS
Always recreates the table from scratch and loads the CSV data.- See Also:
-
CREATE_TABLE_POLICY_ON_MISSING_COLUMNS
If the table doesn't exist then creates it and loads the CSV data. If the table already exists, only adds missing columns (with null values).- See Also:
-
CREATE_TABLE_POLICY_DEFAULT
- See Also:
-
CREATE_TABLE_POLICIES
-
DATA_LOADING_POLICY_LEGACY
Load the CSV file if the table has just been created (behavior before introducing data loading feature).- Since:
- 11.1
- See Also:
-
DATA_LOADING_POLICY_NEVER_LOAD
Doesn't load the CSV data.- Since:
- 11.1
- See Also:
-
DATA_LOADING_POLICY_SKIP_DUPLICATE
Duplicate lines in data load from CSV are ignored.- Since:
- 11.1
- See Also:
-
DATA_LOADING_POLICY_REJECT_DUPLICATE
If the data loaded from CSV already exist throw an exception.- Since:
- 11.1
- See Also:
-
DATA_LOADING_POLICY_UPDATE_DUPLICATE
Load CSV data and update duplicate lines.- Since:
- 11.1
- See Also:
-
DATA_LOADING_POLICIES
Policy used to deal with duplicates when loading data to a directory.- Since:
- 11.1
-
name
-
remove
public boolean remove -
template
public boolean template -
extendz
-
parentDirectory
-
schemaName
-
idField
-
autoincrementIdField
-
tableName
-
readOnly
-
passwordField
-
passwordHashAlgorithm
-
permissions
-
cacheTimeout
-
cacheMaxSize
-
cacheEntryName
-
cacheEntryWithoutReferencesName
-
negativeCaching
-
substringMatchType
-
computeMultiTenantId
protected boolean computeMultiTenantId -
types
- Since:
- 8.4
-
dataFileName
-
dataFileCharacterSeparator
-
createTablePolicy
-
dataLoadingPolicy
- Since:
- 11.1
-
-
Constructor Details
-
BaseDirectoryDescriptor
public BaseDirectoryDescriptor()
-
-
Method Details
-
isAutoincrementIdField
public boolean isAutoincrementIdField() -
setAutoincrementIdField
public void setAutoincrementIdField(boolean autoincrementIdField) -
getDataFileName
-
getDataFileCharacterSeparator
public char getDataFileCharacterSeparator() -
getCreateTablePolicy
-
getDataLoadingPolicy
Returns the dataLoadingPolicy; default isDATA_LOADING_POLICY_NEVER_LOAD
.- Since:
- 11.1
-
checkDataLoadingPolicy
-
isReadOnly
public boolean isReadOnly() -
setReadOnly
public void setReadOnly(boolean readOnly) -
getCacheTimeout
public int getCacheTimeout() -
getCacheMaxSize
public int getCacheMaxSize() -
getSubstringMatchType
-
clone
Sub-classes MUST OVERRIDE and use a more specific return type.Usually it's bad to use clone(), and a copy-constructor is preferred, but here we want the copy method to be inheritable so clone() is appropriate.
-
merge
-
newDirectory
Creates a newDirectory
instance from thisBaseDirectoryDescriptor
. -
getDeleteConstraints
- Since:
- 8.4
-
getReferences
- Since:
- 9.2
-
getInverseReferences
- Since:
- 9.2
-
isComputeMultiTenantId
public boolean isComputeMultiTenantId()Returnstrue
if a multi tenant id should be computed for this directory, if the directory has support for multi tenancy,false
otherwise.- Since:
- 10.1
-