com.sas.hls.work.workitem
Class WorkItem

java.lang.Object
  extended by com.sas.hls.common.AbstractIdentifiable
      extended by com.sas.hls.work.workitem.WorkItem
All Implemented Interfaces:
Identifiable, Serializable

public class WorkItem
extends AbstractIdentifiable

A data object that represents a work item

See Also:
Serialized Form

Nested Class Summary
static class WorkItem.Status
          Status is an enum representing the status of the work item.
 
Field Summary
static String OBJECT_TYPE
           
 
Constructor Summary
WorkItem(String identifier, ObjectIdentity context, String contextPath, String name, WorkItem.Status status, List<Attribute> attributes)
          Constructor
 
Method Summary
 List<Attribute> getAttributes()
          Get the attributes of this work item
 ObjectIdentity getContext()
          Get the context for this work item
 String getContextPath()
          Get the path of the context for this work item
 String getName()
          Get the name for this work item
 WorkItem.Status getStatus()
          Get the status of this work item.
 String toString()
           
 
Methods inherited from class com.sas.hls.common.AbstractIdentifiable
equals, getIdentifier, getObjectType, hashCode, setIdentifier, setObjectType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

OBJECT_TYPE

public static final String OBJECT_TYPE
See Also:
Constant Field Values
Constructor Detail

WorkItem

public WorkItem(String identifier,
                ObjectIdentity context,
                String contextPath,
                String name,
                WorkItem.Status status,
                List<Attribute> attributes)
Constructor

Method Detail

getContext

public ObjectIdentity getContext()
Get the context for this work item

Returns:
Returns the ObjectIdentity of the context.

getName

public String getName()
Get the name for this work item

Returns:
Returns the name.

getContextPath

public String getContextPath()
Get the path of the context for this work item

Returns:
Returns the context path.

getAttributes

public List<Attribute> getAttributes()
Get the attributes of this work item

Returns:
Returns the attributes

getStatus

public WorkItem.Status getStatus()
Get the status of this work item.

Returns:
Returns the status

toString

public String toString()
Overrides:
toString in class Object


Copyright (c) 2013, SAS Institute Inc., Cary, NC, USA