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,
Map<String,Object> addAttributes,
String[] removeAttributes)
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.
|
String |
getSortKey()
Tasks are sorted according to this key.
|
compareTo, equals, getResource, getResourceGroup, hashCode, isAsynchronousTask, setFinishedState, setFinishedState, toStringpublic ChangeStateTask(TaskResourceGroup r, ResourceState s)
r - The resource group to change.s - The new state.,public ChangeStateTask(TaskResourceGroup r, ResourceState s, Map<String,Object> addAttributes, 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 void execute(InstallationContext ctx)
InstallTaskexecute in class InstallTaskctx - The installation context.InstallTask.execute(org.apache.sling.installer.api.tasks.InstallationContext)public String getSortKey()
InstallTaskgetSortKey in class InstallTaskCopyright © 2014 The Apache Software Foundation. All rights reserved.