public class TaskScheduleInteraction extends Object
TaskScheduleArgs object with the arguments
provided by the user and updates the provided TaskScheduleUserData
with the information provided by the user.| Constructor and Description |
|---|
TaskScheduleInteraction(TaskScheduleUserData uData,
TaskScheduleArgs args,
com.forgerock.opendj.cli.ConsoleApplication app,
LocalizableMessage taskName)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ProgressMessageFormatter |
getFormatter()
Returns the formatter that is used to generate messages.
|
List<? extends TaskEntry> |
getTaskEntries()
Returns the task entries that are defined in the server.
|
void |
run()
Executes the interaction with the user.
|
void |
setFormatter(ProgressMessageFormatter formatter)
Sets the formatter that is used to generate messages.
|
void |
setTaskEntries(List<? extends TaskEntry> taskEntries)
Sets the task entries that are defined in the server.
|
public TaskScheduleInteraction(TaskScheduleUserData uData, TaskScheduleArgs args, com.forgerock.opendj.cli.ConsoleApplication app, LocalizableMessage taskName)
uData - the task schedule user data.args - the object with the arguments provided by the user. The code
assumes that the arguments have already been parsed.app - the console application object used to prompt for data.taskName - the name of the task to be used in the prompt messages.public void run() throws com.forgerock.opendj.cli.ClientException
com.forgerock.opendj.cli.ClientException - if there is an error prompting the user.public List<? extends TaskEntry> getTaskEntries()
public void setTaskEntries(List<? extends TaskEntry> taskEntries)
taskEntries - the task entries that are defined in the server.public ProgressMessageFormatter getFormatter()
public void setFormatter(ProgressMessageFormatter formatter)
formatter - the formatter that is used to generate messages.Copyright © 2010-2015 ForgeRock AS. All Rights Reserved.