public class ChangeStateTask extends InstallTask
ASYNC_ATTR_NAME| Constructor and Description |
|---|
ChangeStateTask(TaskResourceGroup r,
ResourceState s)
Change the state of the task
|
ChangeStateTask(TaskResourceGroup r,
ResourceState s,
java.util.Map<java.lang.String,java.lang.Object> addAttributes,
java.lang.String[] removeAttributes)
Change the state of the task
|
ChangeStateTask(TaskResourceGroup r,
ResourceState s,
java.util.Map<java.lang.String,java.lang.Object> addAttributes,
java.lang.String[] removeAttributes,
java.lang.String error)
Change the state of the task
|
ChangeStateTask(TaskResourceGroup r,
ResourceState s,
java.lang.String error)
Change the state of the task
|
| Modifier and Type | Method and Description |
|---|---|
void |
execute(InstallationContext ctx)
This is the heart of the task - it performs the actual task.
|
java.lang.String |
getSortKey()
Tasks are sorted according to this key.
|
compareTo, equals, getResource, getResourceGroup, hashCode, isAsynchronousTask, setFinishedState, setFinishedState, setFinishedState, toStringpublic ChangeStateTask(TaskResourceGroup r, ResourceState s)
r - The resource group to change.s - The new state.public ChangeStateTask(TaskResourceGroup r, ResourceState s, java.lang.String error)
r - The resource group to change.s - The new state.error - An optional description on why the state is changed.public ChangeStateTask(TaskResourceGroup r, ResourceState s, java.util.Map<java.lang.String,java.lang.Object> addAttributes, java.lang.String[] removeAttributes)
r - The resource group to change.s - The new state.,addAttributes - An optional map of attributes to set before the state is changed.removeAttributes - A optional list of attributes to remove before the state is changed.public ChangeStateTask(TaskResourceGroup r, ResourceState s, java.util.Map<java.lang.String,java.lang.Object> addAttributes, java.lang.String[] removeAttributes, java.lang.String error)
r - The resource group to change.s - The new state.,addAttributes - An optional map of attributes to set before the state is changed.removeAttributes - A optional list of attributes to remove before the state is changed.error - An optional description on why the state is changed.public void execute(InstallationContext ctx)
InstallTaskexecute in class InstallTaskctx - The installation context.InstallTask.execute(org.apache.sling.installer.api.tasks.InstallationContext)public java.lang.String getSortKey()
InstallTaskgetSortKey in class InstallTaskCopyright © 2010 - 2023 Adobe. All Rights Reserved