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 | 
| ChangeStateTask(TaskResourceGroup r,
               ResourceState s,
               Map<String,Object> addAttributes,
               String[] removeAttributes,
               String error)Change the state of the task | 
| ChangeStateTask(TaskResourceGroup r,
               ResourceState s,
               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. | 
| 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, 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, 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 ChangeStateTask(TaskResourceGroup r, ResourceState s, Map<String,Object> addAttributes, String[] removeAttributes, 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 String getSortKey()
InstallTaskgetSortKey in class InstallTaskCopyright © 2017 The Apache Software Foundation. All rights reserved.