@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class ImportTask extends Task
NOTE: This class, and other classes within the
com.unboundid.ldap.sdk.unboundidds
package structure, are only
supported for use against Ping Identity, UnboundID, and
Nokia/Alcatel-Lucent 8661 server products. These classes provide support
for proprietary functionality or for external specifications that are not
considered stable or mature enough to be guaranteed to work in an
interoperable way with other types of LDAP servers.
Constructor and Description |
---|
ImportTask()
Creates a new uninitialized import task instance which should only be used
for obtaining general information about this task, including the task name,
description, and supported properties.
|
ImportTask(Entry entry)
Creates a new import task from the provided entry.
|
ImportTask(java.util.Map<TaskProperty,java.util.List<java.lang.Object>> properties)
Creates a new import task from the provided set of task properties.
|
ImportTask(java.lang.String taskID,
java.util.List<java.lang.String> ldifFiles,
java.lang.String backendID,
boolean append,
boolean replaceExisting,
java.lang.String rejectFile,
boolean overwriteRejects,
boolean clearBackend,
java.util.List<java.lang.String> includeBranches,
java.util.List<java.lang.String> excludeBranches,
java.util.List<java.lang.String> includeFilters,
java.util.List<java.lang.String> excludeFilters,
java.util.List<java.lang.String> includeAttributes,
java.util.List<java.lang.String> excludeAttributes,
boolean isCompressed,
boolean isEncrypted,
boolean skipSchemaValidation,
boolean stripTrailingSpaces,
java.util.Date scheduledStartTime,
java.util.List<java.lang.String> dependencyIDs,
FailedDependencyAction failedDependencyAction,
java.util.List<java.lang.String> notifyOnCompletion,
java.util.List<java.lang.String> notifyOnError)
Creates a new import task with the provided information.
|
ImportTask(java.lang.String taskID,
java.util.List<java.lang.String> ldifFiles,
java.lang.String backendID,
boolean append,
boolean replaceExisting,
java.lang.String rejectFile,
boolean overwriteRejects,
boolean clearBackend,
java.util.List<java.lang.String> includeBranches,
java.util.List<java.lang.String> excludeBranches,
java.util.List<java.lang.String> includeFilters,
java.util.List<java.lang.String> excludeFilters,
java.util.List<java.lang.String> includeAttributes,
java.util.List<java.lang.String> excludeAttributes,
boolean isCompressed,
boolean isEncrypted,
boolean skipSchemaValidation,
java.util.Date scheduledStartTime,
java.util.List<java.lang.String> dependencyIDs,
FailedDependencyAction failedDependencyAction,
java.util.List<java.lang.String> notifyOnCompletion,
java.util.List<java.lang.String> notifyOnError)
Creates a new import task with the provided information.
|
ImportTask(java.lang.String taskID,
java.util.List<java.lang.String> ldifFiles,
java.lang.String backendID,
boolean append,
boolean replaceExisting,
java.lang.String rejectFile,
boolean overwriteRejects,
boolean clearBackend,
java.util.List<java.lang.String> includeBranches,
java.util.List<java.lang.String> excludeBranches,
java.util.List<java.lang.String> includeFilters,
java.util.List<java.lang.String> excludeFilters,
java.util.List<java.lang.String> includeAttributes,
java.util.List<java.lang.String> excludeAttributes,
boolean isCompressed,
boolean isEncrypted,
java.lang.String encryptionPassphraseFile,
boolean skipSchemaValidation,
boolean stripTrailingSpaces,
java.util.Date scheduledStartTime,
java.util.List<java.lang.String> dependencyIDs,
FailedDependencyAction failedDependencyAction,
java.util.List<java.lang.String> notifyOnCompletion,
java.util.List<java.lang.String> notifyOnError)
Creates a new import task with the provided information.
|
ImportTask(java.lang.String taskID,
java.util.List<java.lang.String> ldifFiles,
java.lang.String backendID,
boolean append,
boolean replaceExisting,
java.lang.String rejectFile,
boolean overwriteRejects,
boolean clearBackend,
java.util.List<java.lang.String> includeBranches,
java.util.List<java.lang.String> excludeBranches,
java.util.List<java.lang.String> includeFilters,
java.util.List<java.lang.String> excludeFilters,
java.util.List<java.lang.String> includeAttributes,
java.util.List<java.lang.String> excludeAttributes,
boolean isCompressed,
boolean isEncrypted,
java.lang.String encryptionPassphraseFile,
boolean skipSchemaValidation,
boolean stripTrailingSpaces,
java.util.Date scheduledStartTime,
java.util.List<java.lang.String> dependencyIDs,
FailedDependencyAction failedDependencyAction,
java.util.List<java.lang.String> notifyOnStart,
java.util.List<java.lang.String> notifyOnCompletion,
java.util.List<java.lang.String> notifyOnSuccess,
java.util.List<java.lang.String> notifyOnError,
java.lang.Boolean alertOnStart,
java.lang.Boolean alertOnSuccess,
java.lang.Boolean alertOnError)
Creates a new import task with the provided information.
|
ImportTask(java.lang.String taskID,
java.lang.String backendID,
java.lang.String ldifFile)
Creates a new import task with the provided backend.
|
Modifier and Type | Method and Description |
---|---|
boolean |
append()
Indicates whether the import should append to the data in the backend
rather than clearing the backend before performing the import.
|
boolean |
clearBackend()
Indicates whether data below all base DNs defined in the backend should be
cleared before performing the import.
|
protected java.util.List<Attribute> |
getAdditionalAttributes()
Retrieves a list of the additional attributes (other than attributes common
to all task types) that should be included when creating new task entries
of this type.
|
protected java.util.List<java.lang.String> |
getAdditionalObjectClasses()
Retrieves a list of the additional object classes (other than the base
"top" and "ds-task" classes) that should be included when creating new task
entries of this type.
|
java.lang.String |
getBackendID()
Retrieves the backend ID of the backend into which the data should be
imported.
|
java.lang.String |
getEncryptionPassphraseFile()
Retrieves the path to a file that contains the passphrase to use to
generate the encryption key.
|
java.util.List<java.lang.String> |
getExcludeAttributes()
Retrieves the list of attributes that should be excluded from the imported
entries.
|
java.util.List<java.lang.String> |
getExcludeBranches()
Retrieves the list of base DNs of branches that should be excluded from the
import.
|
java.util.List<java.lang.String> |
getExcludeFilters()
Retrieves the list of search filters that may be used to identify which
entries should be excluded from the import.
|
java.util.List<java.lang.String> |
getIncludeAttributes()
Retrieves the list of attributes that should be included in the imported
entries.
|
java.util.List<java.lang.String> |
getIncludeBranches()
Retrieves the list of base DNs for branches that should be included in the
import.
|
java.util.List<java.lang.String> |
getIncludeFilters()
Retrieves the list of search filters that may be used to identify which
entries should be included in the import.
|
java.util.List<java.lang.String> |
getLDIFFiles()
Retrieves the paths to the LDIF files containing the data to be imported.
|
java.lang.String |
getRejectFile()
Retrieves the path to a file to which rejected entries should be written.
|
java.lang.String |
getTaskDescription()
Retrieves a human-readable description for this task.
|
java.lang.String |
getTaskName()
Retrieves a human-readable name for this task.
|
java.util.Map<TaskProperty,java.util.List<java.lang.Object>> |
getTaskPropertyValues()
Retrieves the values of the task properties for this task.
|
java.util.List<TaskProperty> |
getTaskSpecificProperties()
Retrieves a list of task-specific properties that may be provided when
scheduling a task of this type.
|
boolean |
isCompressed()
Indicates whether the LDIF data to import is compressed.
|
boolean |
isEncrypted()
Indicates whether the LDIF data to import is encrypted.
|
boolean |
overwriteRejectFile()
Indicates whether an existing reject file should be overwritten rather than
appending to it.
|
boolean |
replaceExistingEntries()
Indicates whether to replace existing entries when appending data to the
backend.
|
boolean |
skipSchemaValidation()
Indicates whether the server should skip schema validation processing when
performing the import.
|
boolean |
stripTrailingSpaces()
Indicates whether the server should strip off any illegal trailing spaces
found in LDIF records rather than rejecting those records.
|
createTaskEntry, decodeTask, getActualStartTime, getAlertOnError, getAlertOnStart, getAlertOnSuccess, getAvailableTaskTypes, getCommonTaskProperties, getCompletionTime, getDependencyIDs, getFailedDependencyAction, getLogMessages, getNotifyOnCompletionAddresses, getNotifyOnErrorAddresses, getNotifyOnStartAddresses, getNotifyOnSuccessAddresses, getScheduledStartTime, getState, getTaskClassName, getTaskEntry, getTaskEntryDN, getTaskID, isCompleted, isPending, isRunning, parseBoolean, parseBooleanValue, parseDate, parseLong, parseString, parseStringList, parseStrings, toString, toString
public ImportTask()
public ImportTask(@Nullable java.lang.String taskID, @NotNull java.lang.String backendID, @NotNull java.lang.String ldifFile)
taskID
- The task ID to use for this task. If it is null
then a UUID will be generated for use as the task ID.backendID
- The backend ID of the backend into which the data should
be imported. It must not be null
.ldifFile
- The path to the LDIF file containing the data to be
imported. It may be an absolute path or a path relative
to the server install root. It must not be
null
.public ImportTask(@Nullable java.lang.String taskID, @NotNull java.util.List<java.lang.String> ldifFiles, @Nullable java.lang.String backendID, boolean append, boolean replaceExisting, @Nullable java.lang.String rejectFile, boolean overwriteRejects, boolean clearBackend, @Nullable java.util.List<java.lang.String> includeBranches, @Nullable java.util.List<java.lang.String> excludeBranches, @Nullable java.util.List<java.lang.String> includeFilters, @Nullable java.util.List<java.lang.String> excludeFilters, @Nullable java.util.List<java.lang.String> includeAttributes, @Nullable java.util.List<java.lang.String> excludeAttributes, boolean isCompressed, boolean isEncrypted, boolean skipSchemaValidation, @Nullable java.util.Date scheduledStartTime, @Nullable java.util.List<java.lang.String> dependencyIDs, @Nullable FailedDependencyAction failedDependencyAction, @Nullable java.util.List<java.lang.String> notifyOnCompletion, @Nullable java.util.List<java.lang.String> notifyOnError)
taskID
- The task ID to use for this task. If it is
null
then a UUID will be generated
for use as the task ID.ldifFiles
- The paths to the LDIF file containing the
data to be imported. The paths may be
either absolute or relative to the server
install root. It must not be null
or empty.backendID
- The backend ID of the backend into which
the data should be imported. It may be
null
only if one or more include
branches was specified.append
- Indicates whether to append to the existing
data rather than overwriting it.replaceExisting
- Indicates whether to replace existing
entries when appending to the database.rejectFile
- The path to a file into which information
will be written about rejected entries. It
may be null
if no reject file is to
be maintained.overwriteRejects
- Indicates whether to overwrite an existing
rejects file rather than appending to it.clearBackend
- Indicates whether to clear data below all
base DNs in the backend. It must be
true
if the backend was specified
using a backend ID and no include branches
are specified and append
is
false
. If include branches were
specified, or if data is being appended to
the backend, then it may be either
true
or false
.includeBranches
- The set of base DNs below which to import
the data. It may be null
or empty
if a backend ID was specified and data
should be imported below all base DNs
defined in the backend. Otherwise, at
least one include branch must be provided,
and any data not under one of the include
branches will be excluded from the import.
All include branches must be within the
scope of the same backend.excludeBranches
- The set of base DNs to exclude from the
import. It may be null
or empty if
no data is to be excluded based on its
location.includeFilters
- The set of filters to use to determine
which entries should be included in the
import. It may be null
or empty if
no data is to be excluded based on its
content.excludeFilters
- The set of filters to use to determine
which entries should be excluded from the
import. It may be null
or empty if
no data is to be excluded based on its
content.includeAttributes
- The set of attributes to include in the
entries being imported. It may be
null
or empty if no attributes
should be excluded from the import.excludeAttributes
- The set of attributes to exclude from the
entries being imported. It may be
null
or empty if no attributes
should be excluded from the import.isCompressed
- Indicates whether the data in the LDIF
file(s) is compressed.isEncrypted
- Indicates whether the data in the LDIF
file(s) is encrypted.skipSchemaValidation
- Indicates whether to skip schema validation
during the import.scheduledStartTime
- The time that this task should start
running.dependencyIDs
- The list of task IDs that will be required
to complete before this task will be
eligible to start.failedDependencyAction
- Indicates what action should be taken if
any of the dependencies for this task do
not complete successfully.notifyOnCompletion
- The list of e-mail addresses of individuals
that should be notified when this task
completes.notifyOnError
- The list of e-mail addresses of individuals
that should be notified if this task does
not complete successfully.public ImportTask(@Nullable java.lang.String taskID, @NotNull java.util.List<java.lang.String> ldifFiles, @Nullable java.lang.String backendID, boolean append, boolean replaceExisting, @Nullable java.lang.String rejectFile, boolean overwriteRejects, boolean clearBackend, @Nullable java.util.List<java.lang.String> includeBranches, @Nullable java.util.List<java.lang.String> excludeBranches, @Nullable java.util.List<java.lang.String> includeFilters, @Nullable java.util.List<java.lang.String> excludeFilters, @Nullable java.util.List<java.lang.String> includeAttributes, @Nullable java.util.List<java.lang.String> excludeAttributes, boolean isCompressed, boolean isEncrypted, boolean skipSchemaValidation, boolean stripTrailingSpaces, @Nullable java.util.Date scheduledStartTime, @Nullable java.util.List<java.lang.String> dependencyIDs, @Nullable FailedDependencyAction failedDependencyAction, @Nullable java.util.List<java.lang.String> notifyOnCompletion, @Nullable java.util.List<java.lang.String> notifyOnError)
taskID
- The task ID to use for this task. If it is
null
then a UUID will be generated
for use as the task ID.ldifFiles
- The paths to the LDIF file containing the
data to be imported. The paths may be
either absolute or relative to the server
install root. It must not be null
or empty.backendID
- The backend ID of the backend into which
the data should be imported. It may be
null
only if one or more include
branches was specified.append
- Indicates whether to append to the existing
data rather than overwriting it.replaceExisting
- Indicates whether to replace existing
entries when appending to the database.rejectFile
- The path to a file into which information
will be written about rejected entries. It
may be null
if no reject file is to
be maintained.overwriteRejects
- Indicates whether to overwrite an existing
rejects file rather than appending to it.clearBackend
- Indicates whether to clear data below all
base DNs in the backend. It must be
true
if the backend was specified
using a backend ID and no include branches
are specified and append
is
false
. If include branches were
specified, or if data is being appended to
the backend, then it may be either
true
or false
.includeBranches
- The set of base DNs below which to import
the data. It may be null
or empty
if a backend ID was specified and data
should be imported below all base DNs
defined in the backend. Otherwise, at
least one include branch must be provided,
and any data not under one of the include
branches will be excluded from the import.
All include branches must be within the
scope of the same backend.excludeBranches
- The set of base DNs to exclude from the
import. It may be null
or empty if
no data is to be excluded based on its
location.includeFilters
- The set of filters to use to determine
which entries should be included in the
import. It may be null
or empty if
no data is to be excluded based on its
content.excludeFilters
- The set of filters to use to determine
which entries should be excluded from the
import. It may be null
or empty if
no data is to be excluded based on its
content.includeAttributes
- The set of attributes to include in the
entries being imported. It may be
null
or empty if no attributes
should be excluded from the import.excludeAttributes
- The set of attributes to exclude from the
entries being imported. It may be
null
or empty if no attributes
should be excluded from the import.isCompressed
- Indicates whether the data in the LDIF
file(s) is compressed.isEncrypted
- Indicates whether the data in the LDIF
file(s) is encrypted.skipSchemaValidation
- Indicates whether to skip schema validation
during the import.stripTrailingSpaces
- Indicates whether to strip illegal trailing
spaces found in LDIF records rather than
rejecting those records.scheduledStartTime
- The time that this task should start
running.dependencyIDs
- The list of task IDs that will be required
to complete before this task will be
eligible to start.failedDependencyAction
- Indicates what action should be taken if
any of the dependencies for this task do
not complete successfully.notifyOnCompletion
- The list of e-mail addresses of individuals
that should be notified when this task
completes.notifyOnError
- The list of e-mail addresses of individuals
that should be notified if this task does
not complete successfully.public ImportTask(@Nullable java.lang.String taskID, @NotNull java.util.List<java.lang.String> ldifFiles, @Nullable java.lang.String backendID, boolean append, boolean replaceExisting, @Nullable java.lang.String rejectFile, boolean overwriteRejects, boolean clearBackend, @Nullable java.util.List<java.lang.String> includeBranches, @Nullable java.util.List<java.lang.String> excludeBranches, @Nullable java.util.List<java.lang.String> includeFilters, @Nullable java.util.List<java.lang.String> excludeFilters, @Nullable java.util.List<java.lang.String> includeAttributes, @Nullable java.util.List<java.lang.String> excludeAttributes, boolean isCompressed, boolean isEncrypted, @Nullable java.lang.String encryptionPassphraseFile, boolean skipSchemaValidation, boolean stripTrailingSpaces, @Nullable java.util.Date scheduledStartTime, @Nullable java.util.List<java.lang.String> dependencyIDs, @Nullable FailedDependencyAction failedDependencyAction, @Nullable java.util.List<java.lang.String> notifyOnCompletion, @Nullable java.util.List<java.lang.String> notifyOnError)
taskID
- The task ID to use for this task. If it
is null
then a UUID will be
generated for use as the task ID.ldifFiles
- The paths to the LDIF file containing the
data to be imported. The paths may be
either absolute or relative to the server
install root. It must not be
null
or empty.backendID
- The backend ID of the backend into which
the data should be imported. It may be
null
only if one or more include
branches was specified.append
- Indicates whether to append to the
existing data rather than overwriting it.replaceExisting
- Indicates whether to replace existing
entries when appending to the database.rejectFile
- The path to a file into which
information will be written about
rejected entries. It may be null
if no reject file is to be maintained.overwriteRejects
- Indicates whether to overwrite an
existing rejects file rather than
appending to it.clearBackend
- Indicates whether to clear data below all
base DNs in the backend. It must be
true
if the backend was specified
using a backend ID and no include
branches are specified and append
is false
. If include branches
were specified, or if data is being
appended to the backend, then it may be
either true
or false
.includeBranches
- The set of base DNs below which to import
the data. It may be null
or
empty if a backend ID was specified and
data should be imported below all base
DNs defined in the backend. Otherwise,
at least one include branch must be
provided, and any data not under one of
the include branches will be excluded
from the import. All include branches
must be within the scope of the same
backend.excludeBranches
- The set of base DNs to exclude from the
import. It may be null
or empty
if no data is to be excluded based on its
location.includeFilters
- The set of filters to use to determine
which entries should be included in the
import. It may be null
or empty
if no data is to be excluded based on its
content.excludeFilters
- The set of filters to use to determine
which entries should be excluded from the
import. It may be null
or empty
if no data is to be excluded based on its
content.includeAttributes
- The set of attributes to include in the
entries being imported. It may be
null
or empty if no attributes
should be excluded from the import.excludeAttributes
- The set of attributes to exclude from the
entries being imported. It may be
null
or empty if no attributes
should be excluded from the import.isCompressed
- Indicates whether the data in the LDIF
file(s) is compressed.isEncrypted
- Indicates whether the data in the LDIF
file(s) is encrypted.encryptionPassphraseFile
- The path to a file containing the
passphrase to use to generate the
encryption key. It amy be null
if the backup is not to be encrypted, or
if the key should be obtained in some
other way.skipSchemaValidation
- Indicates whether to skip schema
validation during the import.stripTrailingSpaces
- Indicates whether to strip illegal
trailing spaces found in LDIF records
rather than rejecting those records.scheduledStartTime
- The time that this task should start
running.dependencyIDs
- The list of task IDs that will be
required to complete before this task
will be eligible to start.failedDependencyAction
- Indicates what action should be taken if
any of the dependencies for this task do
not complete successfully.notifyOnCompletion
- The list of e-mail addresses of
individuals that should be notified when
this task completes.notifyOnError
- The list of e-mail addresses of
individuals that should be notified if
this task does not complete successfully.public ImportTask(@Nullable java.lang.String taskID, @NotNull java.util.List<java.lang.String> ldifFiles, @Nullable java.lang.String backendID, boolean append, boolean replaceExisting, @Nullable java.lang.String rejectFile, boolean overwriteRejects, boolean clearBackend, @Nullable java.util.List<java.lang.String> includeBranches, @Nullable java.util.List<java.lang.String> excludeBranches, @Nullable java.util.List<java.lang.String> includeFilters, @Nullable java.util.List<java.lang.String> excludeFilters, @Nullable java.util.List<java.lang.String> includeAttributes, @Nullable java.util.List<java.lang.String> excludeAttributes, boolean isCompressed, boolean isEncrypted, @Nullable java.lang.String encryptionPassphraseFile, boolean skipSchemaValidation, boolean stripTrailingSpaces, @Nullable java.util.Date scheduledStartTime, @Nullable java.util.List<java.lang.String> dependencyIDs, @Nullable FailedDependencyAction failedDependencyAction, @Nullable java.util.List<java.lang.String> notifyOnStart, @Nullable java.util.List<java.lang.String> notifyOnCompletion, @Nullable java.util.List<java.lang.String> notifyOnSuccess, @Nullable java.util.List<java.lang.String> notifyOnError, @Nullable java.lang.Boolean alertOnStart, @Nullable java.lang.Boolean alertOnSuccess, @Nullable java.lang.Boolean alertOnError)
taskID
- The task ID to use for this task. If it
is null
then a UUID will be
generated for use as the task ID.ldifFiles
- The paths to the LDIF file containing the
data to be imported. The paths may be
either absolute or relative to the server
install root. It must not be
null
or empty.backendID
- The backend ID of the backend into which
the data should be imported. It may be
null
only if one or more include
branches was specified.append
- Indicates whether to append to the
existing data rather than overwriting it.replaceExisting
- Indicates whether to replace existing
entries when appending to the database.rejectFile
- The path to a file into which
information will be written about
rejected entries. It may be null
if no reject file is to be maintained.overwriteRejects
- Indicates whether to overwrite an
existing rejects file rather than
appending to it.clearBackend
- Indicates whether to clear data below all
base DNs in the backend. It must be
true
if the backend was specified
using a backend ID and no include
branches are specified and append
is false
. If include branches
were specified, or if data is being
appended to the backend, then it may be
either true
or false
.includeBranches
- The set of base DNs below which to import
the data. It may be null
or
empty if a backend ID was specified and
data should be imported below all base
DNs defined in the backend. Otherwise,
at least one include branch must be
provided, and any data not under one of
the include branches will be excluded
from the import. All include branches
must be within the scope of the same
backend.excludeBranches
- The set of base DNs to exclude from the
import. It may be null
or empty
if no data is to be excluded based on its
location.includeFilters
- The set of filters to use to determine
which entries should be included in the
import. It may be null
or empty
if no data is to be excluded based on its
content.excludeFilters
- The set of filters to use to determine
which entries should be excluded from the
import. It may be null
or empty
if no data is to be excluded based on its
content.includeAttributes
- The set of attributes to include in the
entries being imported. It may be
null
or empty if no attributes
should be excluded from the import.excludeAttributes
- The set of attributes to exclude from the
entries being imported. It may be
null
or empty if no attributes
should be excluded from the import.isCompressed
- Indicates whether the data in the LDIF
file(s) is compressed.isEncrypted
- Indicates whether the data in the LDIF
file(s) is encrypted.encryptionPassphraseFile
- The path to a file containing the
passphrase to use to generate the
encryption key. It amy be null
if the backup is not to be encrypted, or
if the key should be obtained in some
other way.skipSchemaValidation
- Indicates whether to skip schema
validation during the import.stripTrailingSpaces
- Indicates whether to strip illegal
trailing spaces found in LDIF records
rather than rejecting those records.scheduledStartTime
- The time that this task should start
running.dependencyIDs
- The list of task IDs that will be
required to complete before this task
will be eligible to start.failedDependencyAction
- Indicates what action should be taken if
any of the dependencies for this task do
not complete successfully.notifyOnStart
- The list of e-mail addresses of
individuals that should be notified when
this task starts running.notifyOnCompletion
- The list of e-mail addresses of
individuals that should be notified when
this task completes.notifyOnSuccess
- The list of e-mail addresses of
individuals that should be notified if
this task completes successfully.notifyOnError
- The list of e-mail addresses of
individuals that should be notified if
this task does not complete successfully.alertOnStart
- Indicates whether the server should send
an alert notification when this task
starts.alertOnSuccess
- Indicates whether the server should send
an alert notification if this task
completes successfully.alertOnError
- Indicates whether the server should send
an alert notification if this task fails
to complete successfully.public ImportTask(@NotNull Entry entry) throws TaskException
entry
- The entry to use to create this import task.TaskException
- If the provided entry cannot be parsed as an import
task entry.public ImportTask(@NotNull java.util.Map<TaskProperty,java.util.List<java.lang.Object>> properties) throws TaskException
properties
- The set of task properties and their corresponding
values to use for the task. It must not be
null
.TaskException
- If the provided set of properties cannot be used to
create a valid import task.@NotNull public java.lang.String getTaskName()
getTaskName
in class Task
@NotNull public java.lang.String getTaskDescription()
getTaskDescription
in class Task
@NotNull public java.util.List<java.lang.String> getLDIFFiles()
@Nullable public java.lang.String getBackendID()
null
if no backend ID was specified and the
backend will be identified from the include branches.public boolean append()
true
if the contents of the existing backend should be
retained and the new data appended to it, or false
if the
existing content should be cleared prior to performing the import.public boolean replaceExistingEntries()
append()
returns true
.true
if entries already present in the backend should be
replaced if that entry is also present in the LDIF file, or
false
if entries already present in the backend should be
retained and the corresponding entry contained in the LDIF should
be skipped.@Nullable public java.lang.String getRejectFile()
null
if a rejected entries file should not be maintained.public boolean overwriteRejectFile()
true
if an existing reject file should be overwritten, or
false
if the server should append to it.public boolean clearBackend()
true
if data below all base DNs in the backend should be
cleared, or false
if only data below the base DNs that
correspond to the configured include branches should be cleared.@NotNull public java.util.List<java.lang.String> getIncludeBranches()
@NotNull public java.util.List<java.lang.String> getExcludeBranches()
@NotNull public java.util.List<java.lang.String> getIncludeFilters()
@NotNull public java.util.List<java.lang.String> getExcludeFilters()
@NotNull public java.util.List<java.lang.String> getIncludeAttributes()
@NotNull public java.util.List<java.lang.String> getExcludeAttributes()
public boolean isCompressed()
true
if the LDIF data to import is compressed, or
false
if not.public boolean isEncrypted()
true
if the LDIF data to import is encrypted, or
false
if not.@NotNull public java.lang.String getEncryptionPassphraseFile()
null
if the LDIF file is
not encrypted or if the encryption key should be obtained through
some other means.public boolean skipSchemaValidation()
true
if the server should skip schema validation
processing when performing the import, or false
if not.public boolean stripTrailingSpaces()
true
if the server should strip off any illegal trailing
spaces found in LDIF records, or false
if it should reject
any records containing illegal trailing spaces.@NotNull protected java.util.List<java.lang.String> getAdditionalObjectClasses()
getAdditionalObjectClasses
in class Task
@NotNull protected java.util.List<Attribute> getAdditionalAttributes()
getAdditionalAttributes
in class Task
@NotNull public java.util.List<TaskProperty> getTaskSpecificProperties()
getTaskSpecificProperties
in class Task
@NotNull public java.util.Map<TaskProperty,java.util.List<java.lang.Object>> getTaskPropertyValues()
Boolean
,
Date
, Long
, or String
. Task properties which do
not have any values will be included in the map with an empty value list.
super.getTaskPropertyValues()
and the
values of their own task-specific properties.getTaskPropertyValues
in class Task