public class DeleteSchemaElementsTask extends Task
Task.State, Task.TypeerrorPrintStream, lastException, outPrintStream, returnCode, state| Constructor and Description |
|---|
DeleteSchemaElementsTask(ControlPanelInfo info,
ProgressDialog dlg,
Set<org.forgerock.opendj.ldap.schema.ObjectClass> ocsToDelete,
Set<org.forgerock.opendj.ldap.schema.AttributeType> attrsToDelete)
Constructor of the task.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canLaunch(Task taskToBeLaunched,
Collection<org.forgerock.i18n.LocalizableMessage> incompatibilityReasons)
Informs of whether the task to be launched can be launched or not.
|
static Map<String,List<String>> |
cloneExtraProperties(org.forgerock.opendj.ldap.schema.SchemaElement element)
Clones the extra properties of the provided schema element.
|
Set<String> |
getBackends()
Returns the names of the backends that are affected by the task.
|
protected List<String> |
getCommandLineArguments()
Returns the list of command-line arguments.
|
protected String |
getCommandLinePath()
Returns the full path of the command-line associated with this task or
null if there is not a command-line (or a single command-line)
associated with the task. |
static LinkedHashSet<org.forgerock.opendj.ldap.schema.AttributeType> |
getOrderedAttributesToDelete(Collection<org.forgerock.opendj.ldap.schema.AttributeType> attrsToDelete,
org.forgerock.opendj.ldap.schema.Schema schema)
Returns an ordered set of the attributes that must be deleted.
|
static LinkedHashSet<org.forgerock.opendj.ldap.schema.ObjectClass> |
getOrderedObjectClassesToDelete(Collection<org.forgerock.opendj.ldap.schema.ObjectClass> ocsToDelete,
org.forgerock.opendj.ldap.schema.Schema schema)
Returns an ordered list of the object classes that must be deleted.
|
static LinkedHashSet<org.forgerock.opendj.ldap.schema.ObjectClass> |
getOrderedObjectClassesToDeleteFromAttrs(Collection<org.forgerock.opendj.ldap.schema.AttributeType> attrsToDelete,
org.forgerock.opendj.ldap.schema.Schema schema)
Returns an ordered list of the object classes that must be deleted when
deleting a list of attributes that must be deleted.
|
org.forgerock.i18n.LocalizableMessage |
getTaskDescription()
The description of the task.
|
Task.Type |
getType()
Returns the type of the task.
|
void |
runTask()
Execute the task.
|
addConfigurationElementCreatedListener, executeCommandLine, getCommandLinePath, getCommandLineToDisplay, getConfigCommandLineArguments, getConnectionCommandLineArguments, getConnectionCommandLineArguments, getEquivalentCommandLine, getErrorLogs, getErrorPrintStream, getIncompatibilityMessage, getInfo, getLastException, getLogs, getNoPropertiesFileArgument, getObfuscatedCommandLineArguments, getOutPrintStream, getOutputLogs, getProcess, getProgressDialog, getReturnCode, getServer, getState, isServerRunning, notifyConfigurationElementCreated, obfuscateLDIFLine, postOperation, printEquivalentCommandLine, printEquivalentCommandToModify, printEquivalentRenameCommand, regenerateDescriptor, removeConfigurationElementCreatedListener, runningOnSameServer, startPoolingAndInitializeConfiguration, stopPoolingAndInitializeConfigurationpublic DeleteSchemaElementsTask(ControlPanelInfo info, ProgressDialog dlg, Set<org.forgerock.opendj.ldap.schema.ObjectClass> ocsToDelete, Set<org.forgerock.opendj.ldap.schema.AttributeType> attrsToDelete)
info - the control panel information.dlg - the progress dialog where the task progress will be displayed.ocsToDelete - the object classes that must be deleted (ordered).attrsToDelete - the attributes that must be deleted (ordered).public Set<String> getBackends()
TaskgetBackends in class Taskpublic boolean canLaunch(Task taskToBeLaunched, Collection<org.forgerock.i18n.LocalizableMessage> incompatibilityReasons)
Tasktrue.canLaunch in class TasktaskToBeLaunched - the Task that we are trying to launch.incompatibilityReasons - the list of incompatibility reasons that
must be updated.true if the task that we are trying to launch can be
launched in parallel with this task and false otherwise.public Task.Type getType()
Taskpublic void runTask()
Taskprotected String getCommandLinePath()
Tasknull if there is not a command-line (or a single command-line)
associated with the task.getCommandLinePath in class Taskprotected List<String> getCommandLineArguments()
TaskgetCommandLineArguments in class Taskpublic org.forgerock.i18n.LocalizableMessage getTaskDescription()
TaskgetTaskDescription in class Taskpublic static LinkedHashSet<org.forgerock.opendj.ldap.schema.AttributeType> getOrderedAttributesToDelete(Collection<org.forgerock.opendj.ldap.schema.AttributeType> attrsToDelete, org.forgerock.opendj.ldap.schema.Schema schema)
attrsToDelete - the attributes to be deleted.schema - the server schema.public static LinkedHashSet<org.forgerock.opendj.ldap.schema.ObjectClass> getOrderedObjectClassesToDelete(Collection<org.forgerock.opendj.ldap.schema.ObjectClass> ocsToDelete, org.forgerock.opendj.ldap.schema.Schema schema)
ocsToDelete - the object classes to be deleted.schema - the server schema.public static LinkedHashSet<org.forgerock.opendj.ldap.schema.ObjectClass> getOrderedObjectClassesToDeleteFromAttrs(Collection<org.forgerock.opendj.ldap.schema.AttributeType> attrsToDelete, org.forgerock.opendj.ldap.schema.Schema schema)
attrsToDelete - the attributes to be deleted.schema - the server schema.public static Map<String,List<String>> cloneExtraProperties(org.forgerock.opendj.ldap.schema.SchemaElement element)
element - the schema element.Copyright © 2010-2020 Wren Security. All Rights Reserved.