public class NewEntryTask extends Task
Task.State, Task.Type
errorPrintStream, lastException, outPrintStream, returnCode, state
Constructor and Description |
---|
NewEntryTask(ControlPanelInfo info,
ProgressDialog dlg,
Entry newEntry,
List<String> ldifLines,
BasicNode parentNode,
BrowserController controller)
Constructor of the task.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canLaunch(Task taskToBeLaunched,
Collection<LocalizableMessage> incompatibilityReasons)
Informs of whether the task to be launched can be launched or not.
|
Set<String> |
getBackends()
Returns the names of the backends that are affected by the task.
|
LocalizableMessage |
getTaskDescription()
The description of the task.
|
Task.Type |
getType()
Returns the type of the task.
|
boolean |
regenerateDescriptor()
Tells whether a new server descriptor should be regenerated when the task is over.
|
void |
runTask()
Execute the task.
|
addConfigurationElementCreatedListener, executeCommandLine, getCommandLineArguments, getCommandLinePath, getCommandLinePath, getCommandLineToDisplay, getConfigCommandLineArguments, getConnectionCommandLineArguments, getConnectionCommandLineArguments, getDsConfigCommandLinePath, getEquivalentCommandLine, getErrorPrintStream, getIncompatibilityMessage, getInfo, getLastException, getLogs, getNoPropertiesFileArgument, getObfuscatedCommandLineArguments, getOutPrintStream, getProcess, getProgressDialog, getReturnCode, getServer, getState, isServerRunning, notifyConfigurationElementCreated, postOperation, printEquivalentCommandLine, runningOnSameServer, startPollingAndInitializeConfiguration, stopPollingAndInitializeConfiguration
public NewEntryTask(ControlPanelInfo info, ProgressDialog dlg, Entry newEntry, List<String> ldifLines, BasicNode parentNode, BrowserController controller)
info
- the control panel information.dlg
- the progress dialog where the task progress will be displayed.newEntry
- the entry containing the new values.ldifLines
- the LDIF representation of the new entry.controller
- the BrowserController.parentNode
- the parent node in the tree of the entry that we want to create.public Task.Type getType()
Task
public Set<String> getBackends()
Task
getBackends
in class Task
public LocalizableMessage getTaskDescription()
Task
getTaskDescription
in class Task
public boolean canLaunch(Task taskToBeLaunched, Collection<LocalizableMessage> incompatibilityReasons)
Task
true
.canLaunch
in class Task
taskToBeLaunched
- 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 boolean regenerateDescriptor()
Task
true
so that the configuration will be re-read and all the ConfigChangeListeners will receive a
notification with the new configuration.regenerateDescriptor
in class Task
true
if a new server descriptor must be regenerated when the task is over and
false
otherwise.Copyright 2010-2020 ForgeRock AS.