org.apache.sling.installer.api.tasks
Interface TaskResource

All Superinterfaces:
RegisteredResource

public interface TaskResource
extends RegisteredResource

A task resource is a registered resource which has been processed by a ResourceTransformer and is now about to be processed by an .


Method Summary
 Object getAttribute(String key)
          Get the value of an attribute.
 ResourceState getState()
          Get the current state of the resource.
 Object getTemporaryAttribute(String key)
          Get the value of a temporary attribute.
 void setAttribute(String key, Object value)
          Set the value of an attribute.
 void setTemporaryAttribute(String key, Object value)
          Set the value of a temporary attribute.
 
Methods inherited from interface org.apache.sling.installer.api.tasks.RegisteredResource
getDictionary, getDigest, getEntityId, getInputStream, getPriority, getScheme, getType, getURL
 

Method Detail

getAttribute

Object getAttribute(String key)
Get the value of an attribute. Attributes include the bundle symbolic name, bundle version, etc.

Parameters:
key - The name of the attribute
Returns:
The value of the attribute or null

setAttribute

void setAttribute(String key,
                  Object value)
Set the value of an attribute.

Parameters:
key - The name of the attribute
value - The attribute value or null to remove it.

getState

ResourceState getState()
Get the current state of the resource.


getTemporaryAttribute

Object getTemporaryAttribute(String key)
Get the value of a temporary attribute.

Parameters:
key - The name of the attribute
Returns:
The value of the attribute or null

setTemporaryAttribute

void setTemporaryAttribute(String key,
                           Object value)
Set the value of a temporary attribute.

Parameters:
key - The name of the attribute
value - The attribute value or null to remove it.


Copyright © 2007-2011 The Apache Software Foundation. All Rights Reserved.