com.atlassian.jira.rpc.soap.beans
Class RemoteWorklog

java.lang.Object
  extended by com.atlassian.jira.rpc.soap.beans.RemoteWorklog

public class RemoteWorklog
extends java.lang.Object

Remote type for Worklog of an Issue.


Constructor Summary
  RemoteWorklog()
          Contructs a RemoteWorklog with empty fields.
  RemoteWorklog(java.lang.String id)
          Contructs a RemoteWorklog with empty fields except the worklog id
protected RemoteWorklog(java.lang.String id, java.lang.String author, java.lang.String updateAuthor, java.util.Date created, java.util.Date updated, java.lang.String timeSpent, long timeSpentInSeconds)
          A protected contructor to allow JIRA code to set the read only and special fields.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getAuthor()
           
 java.lang.String getComment()
           
 java.util.Date getCreated()
           
 java.lang.String getGroupLevel()
           
 java.lang.String getId()
           
 java.lang.String getRoleLevelId()
           
 java.util.Date getStartDate()
           
 java.lang.String getTimeSpent()
           
 long getTimeSpentInSeconds()
          Gets the time spent working on a worklog in seconds.
 java.lang.String getUpdateAuthor()
           
 java.util.Date getUpdated()
           
 int hashCode()
           
 void setComment(java.lang.String comment)
           
 void setGroupLevel(java.lang.String groupLevel)
           
 void setId(java.lang.String id)
           
 void setRoleLevelId(java.lang.String roleLevelId)
           
 void setStartDate(java.util.Date startDate)
           
 void setTimeSpent(java.lang.String timeSpent)
          Specifies a time duration in JIRA duration format, representing the time spent working on the worklog

NOTES : JIRA time durations are in the following format

minutes - eg 3m, 10m, 120m hours - eg 3h, 10h, 120h days - eg 3d, 10d, 120d weeks - eg 3w, 10w, 120w

 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteWorklog

protected RemoteWorklog(java.lang.String id,
                        java.lang.String author,
                        java.lang.String updateAuthor,
                        java.util.Date created,
                        java.util.Date updated,
                        java.lang.String timeSpent,
                        long timeSpentInSeconds)
A protected contructor to allow JIRA code to set the read only and special fields.


RemoteWorklog

public RemoteWorklog()
Contructs a RemoteWorklog with empty fields.


RemoteWorklog

public RemoteWorklog(java.lang.String id)
Contructs a RemoteWorklog with empty fields except the worklog id

Parameters:
id - the id of the worklog
Method Detail

getTimeSpent

public java.lang.String getTimeSpent()
Returns:
the time duration in JIRA duration format, representing the time spent working on the worklog

getTimeSpentInSeconds

public long getTimeSpentInSeconds()
Gets the time spent working on a worklog in seconds.

Returns:
the time spent working on a worklog in seconds.

setTimeSpent

public void setTimeSpent(java.lang.String timeSpent)
Specifies a time duration in JIRA duration format, representing the time spent working on the worklog

NOTES : JIRA time durations are in the following format

Parameters:
timeSpent - time duration in JIRA duration format

getAuthor

public java.lang.String getAuthor()

getComment

public java.lang.String getComment()

setComment

public void setComment(java.lang.String comment)

getCreated

public java.util.Date getCreated()

getGroupLevel

public java.lang.String getGroupLevel()

setGroupLevel

public void setGroupLevel(java.lang.String groupLevel)

getId

public java.lang.String getId()

setId

public void setId(java.lang.String id)

getRoleLevelId

public java.lang.String getRoleLevelId()

setRoleLevelId

public void setRoleLevelId(java.lang.String roleLevelId)

getStartDate

public java.util.Date getStartDate()

setStartDate

public void setStartDate(java.util.Date startDate)

getUpdateAuthor

public java.lang.String getUpdateAuthor()

getUpdated

public java.util.Date getUpdated()

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 © 2004-2011 Atlassian. All Rights Reserved.