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
Nested ClassesModifier and TypeClassDescriptionstatic enumHow directory semi-"fulltext" searches are matched with a query string. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanstatic final intstatic final intprotected booleanstatic final StringAlways recreates the table from scratch and loads the CSV data.static final Stringstatic final StringDoesn't create or modify the table in any way.static final StringIf 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 StringLoad the CSV file if the table has just been created (behavior before introducing data loading feature).static final StringDoesn't load the CSV data.static final StringIf the data loaded from CSV already exist throw an exception.static final StringDuplicate lines in data load from CSV are ignored.static final StringLoad CSV data and update duplicate lines.static final charstatic final booleanbooleanstatic final BaseDirectoryDescriptor.SubstringMatchTypebooleanString[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static voidcheckDataLoadingPolicy(String dataLoadingPolicy) clone()Sub-classes MUST OVERRIDE and use a more specific return type.intintcharReturns the dataLoadingPolicy; default isDATA_LOADING_POLICY_NEVER_LOAD.booleanbooleanReturnstrueif a multi tenant id should be computed for this directory, if the directory has support for multi tenancy,falseotherwise.booleanvoidmerge(BaseDirectoryDescriptor other) Creates a newDirectoryinstance from thisBaseDirectoryDescriptor.voidsetAutoincrementIdField(boolean autoincrementIdField) voidsetReadOnly(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 newDirectoryinstance from thisBaseDirectoryDescriptor. -
getDeleteConstraints
- Since:
- 8.4
-
getReferences
- Since:
- 9.2
-
getInverseReferences
- Since:
- 9.2
-
isComputeMultiTenantId
public boolean isComputeMultiTenantId()Returnstrueif a multi tenant id should be computed for this directory, if the directory has support for multi tenancy,falseotherwise.- Since:
- 10.1
-