com.atlassian.mywork.model
Class Task

java.lang.Object
  extended by com.atlassian.mywork.model.Task
All Implemented Interfaces:
JsonObject

public class Task
extends java.lang.Object
implements JsonObject

This class describes a user task.


Constructor Summary
Task(long id, java.lang.String applicationLinkId, java.lang.String title, java.lang.String user, java.lang.String notes, Status status, java.lang.String application, java.lang.String entity, long created, long updated, java.lang.String globalId, org.codehaus.jackson.node.ObjectNode metadata, Item item)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getApplication()
          Returns the application that created the task (e.g.
 java.lang.String getApplicationLinkId()
          Returns the application link id of the application that created the task.
 long getCreated()
          Returns the time in milliseconds when this task was created in the data store.
 java.lang.String getEntity()
          Returns type of the remote entity that the task is related to (e.g.
 java.lang.String getGlobalId()
          Returns a string that should uniquely identify the remote object that this task relates to.
 long getId()
          Returns the task id.
 Item getItem()
          Returns the item describing content related to this task.
 org.codehaus.jackson.node.ObjectNode getMetadata()
          Returns optional free-form metadata for use by the creator of this task.
 java.lang.String getNotes()
          Returns the notes of the task.
 Status getStatus()
          Returns the status of this task.
 java.lang.String getTitle()
          Returns the title of the task.
 long getUpdated()
          Returns the time in milliseconds when this task was last updated in the data store.
 java.lang.String getUser()
          Returns username of the owner of the task.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Task

public Task(long id,
            java.lang.String applicationLinkId,
            java.lang.String title,
            java.lang.String user,
            java.lang.String notes,
            Status status,
            java.lang.String application,
            java.lang.String entity,
            long created,
            long updated,
            java.lang.String globalId,
            org.codehaus.jackson.node.ObjectNode metadata,
            Item item)
Method Detail

getId

public long getId()
Returns the task id.

Returns:
task id

getApplicationLinkId

public java.lang.String getApplicationLinkId()
Returns the application link id of the application that created the task.

Returns:
the application link id of the application that created the task

getTitle

public java.lang.String getTitle()
Returns the title of the task.

Returns:
the title of the task

getUser

public java.lang.String getUser()
Returns username of the owner of the task.

Returns:
username of the owner of the task

getNotes

public java.lang.String getNotes()
Returns the notes of the task.

Note that this intended for user entered data, and may be updated. It is not really a good place for a static 'description' of this task.

Returns:
the notes of the task

getStatus

public Status getStatus()
Returns the status of this task. By default tasks are created with Status.DONE.

Returns:
status of the task.

getApplication

public java.lang.String getApplication()
Returns the application that created the task (e.g. "com.atlassian.jira").

Returns:
the application that created the task

getEntity

public java.lang.String getEntity()
Returns type of the remote entity that the task is related to (e.g. "issue").

Returns:
type of the remote entity that the task is related to

getCreated

public long getCreated()
Returns the time in milliseconds when this task was created in the data store.

Returns:
the time in milliseconds when this task was created

getUpdated

public long getUpdated()
Returns the time in milliseconds when this task was last updated in the data store.

If the creation time matches the update time, the task has never been updated.

Returns:
the time in milliseconds when this task was last updated

getGlobalId

public java.lang.String getGlobalId()
Returns a string that should uniquely identify the remote object that this task relates to. There can only be one task per globalId.

Returns:
a string that should uniquely identify the remote object that this task relates to

getMetadata

public org.codehaus.jackson.node.ObjectNode getMetadata()
Returns optional free-form metadata for use by the creator of this task.

Returns:
optional free-form metadata for use by the creator of this task

getItem

public Item getItem()
Returns the item describing content related to this task.

Returns:
the item describing content related to this task

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 2012 Atlassian. All Rights Reserved.