com.sas.hls.work.workitem
Class Task

java.lang.Object
  extended by com.sas.hls.work.workitem.Task
All Implemented Interfaces:
Serializable

public class Task
extends Object
implements Serializable

A data object that represents a task in a work item

See Also:
Serialized Form

Nested Class Summary
static class Task.ActivityType
          ActivityType is an enum representing the activity type of the task.
static class Task.Complexity
          Complexity is an enum representing the complexity of the task.
static class Task.Priority
          Priority is an enum representing the priority of the task.
static class Task.TaskStatus
          TaskStatus is an enum representing the status of the task.
static class Task.TaskType
          TaskType is an enum representing the type of the task.
 
Constructor Summary
Task(String name, String description, String order, Task.Complexity complexity, Task.Priority priority, Date dueDate, Principal assignee, Task.TaskStatus taskStatus, Task.TaskType taskType, Task.ActivityType activityType, boolean isActive)
          Constructor
 
Method Summary
 Task.ActivityType getActivityType()
          Get the activity type for the task
 Principal getAssignee()
          Get the assignee for the task
 Task.Complexity getComplexity()
          Get the complexity for the task
 String getDescription()
          Get the description for the task
 Date getDueDate()
          Get the due date for the task
 String getName()
          Get the name for the task
 String getOrder()
          Get the order for the task
 Task.Priority getPriority()
          Get the priority for the task
 Task.TaskStatus getTaskStatus()
          Get the task status for the task
 Task.TaskType getType()
          Get the type of the task
 boolean isActive()
          Get whether the task is active
 String toString()
          Return a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Task

public Task(String name,
            String description,
            String order,
            Task.Complexity complexity,
            Task.Priority priority,
            Date dueDate,
            Principal assignee,
            Task.TaskStatus taskStatus,
            Task.TaskType taskType,
            Task.ActivityType activityType,
            boolean isActive)
Constructor

Parameters:
name - the name of this task
description - the description of this task
order - the order in which this task will be executed
complexity - the complexity of this task
priority - the priority of this task
dueDate - the date this task is due to complete
assignee - the principal assigned to this task
taskStatus - the status of this task
taskType - the type of this task
activityType - the activity type of this task
isActive - is this task active
Method Detail

getName

public String getName()
Get the name for the task

Returns:
Returns the name.

getDescription

public String getDescription()
Get the description for the task

Returns:
Returns the description.

getDueDate

public Date getDueDate()
Get the due date for the task

Returns:
Returns the dueDate.

getComplexity

public Task.Complexity getComplexity()
Get the complexity for the task

Returns:
Returns the complexity.

getPriority

public Task.Priority getPriority()
Get the priority for the task

Returns:
Returns the priority.

getType

public Task.TaskType getType()
Get the type of the task

Returns:
Returns the type.

getOrder

public String getOrder()
Get the order for the task

Returns:
Returns the order.

getAssignee

public Principal getAssignee()
Get the assignee for the task

Returns:
Returns the assignee.

getTaskStatus

public Task.TaskStatus getTaskStatus()
Get the task status for the task

Returns:
Returns the taskStatus.

getActivityType

public Task.ActivityType getActivityType()
Get the activity type for the task

Returns:
Returns the activityType.

isActive

public boolean isActive()
Get whether the task is active

Returns:
true if the task is active, otherwise false

toString

public String toString()
Return a string representation of the object.

Overrides:
toString in class Object
See Also:
Object.toString()


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