|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.starteam.TypedResource
com.starteam.LiveObject
com.starteam.TrackedObject
com.starteam.WorkRecord
public final class WorkRecord
Record of a period of work expended for a task.
| Nested Class Summary | |
|---|---|
static class |
WorkRecord.Type
The type of the WorkRecord |
static class |
WorkRecord.WebCacheWorkRecord
Item accessor for cached SDK WorkRecords contained objects are obtained from the artifact cache |
| Nested classes/interfaces inherited from class com.starteam.TrackedObject |
|---|
TrackedObject.WebCacheTrackedObject |
| Nested classes/interfaces inherited from class com.starteam.LiveObject |
|---|
LiveObject.WebCacheLiveObject |
| Nested classes/interfaces inherited from class com.starteam.TypedResource |
|---|
TypedResource.BranchState |
| Method Summary | |
|---|---|
WorkRecord |
copy()
Creates a copy of this workrecord object. |
boolean |
equals(java.lang.Object another)
Returns true if the other object represents the same work record. |
Date |
getDateWorkedOn()
Returns the date on which the work was begun. |
TimeSpan |
getEstimatedTimeRemaining()
Returns the estimated time remaining to complete the task after this period. |
int |
getID()
Returns the integer identifier of the work record. |
java.lang.String |
getNotes()
Return the notes about this work record. |
WorkRecord.Type.PropertyCollection |
getProperties()
The property collection of the WorkRecord type |
TimeSpan |
getTimeWorked()
Returns the time spent on the task during this period. |
User |
getWorkPerformedBy()
Returns the user who performed the work. |
int |
hashCode()
Returns a hash code for this work record. |
boolean |
isDirty()
Returns true if this WorkRecord has been modified but not yet saved. |
void |
setDateWorkedOn(Date date)
Sets the date on which the work was begun. |
void |
setEstimatedTimeRemaining(TimeSpan timeRemaining)
Sets the estimated number of hour remaining to complete the task after this period. |
void |
setNotes(java.lang.String notes)
Sets the notes for this work record. |
void |
setTimeWorked(TimeSpan timeWorked)
Sets the time spent on the task. |
java.lang.Object |
setValue(Property property,
java.lang.Object value)
Sets the value of the specified property and return the old value. |
void |
setWorkPerformedBy(User user)
Sets the user who performed the work |
java.lang.String |
toString()
Returns the notes of this work record. |
| Methods inherited from class com.starteam.TrackedObject |
|---|
getModifiedBy, getModifiedTime |
| Methods inherited from class com.starteam.LiveObject |
|---|
getCreatedBy, getCreatedTime, toStarTeamURL |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public WorkRecord.Type.PropertyCollection getProperties()
WorkRecord type
public boolean isDirty()
isDirty in class TypedResourceTask.update()public int getID()
getID in class TypedResourcepublic User getWorkPerformedBy()
public void setWorkPerformedBy(User user)
user - the user who performed the workpublic Date getDateWorkedOn()
public void setDateWorkedOn(Date date)
date - the date the work began.public TimeSpan getTimeWorked()
public void setTimeWorked(TimeSpan timeWorked)
timeWorked - the time spent on the task.public TimeSpan getEstimatedTimeRemaining()
public void setEstimatedTimeRemaining(TimeSpan timeRemaining)
timeRemaining - the amount of time remaining.public java.lang.String getNotes()
public void setNotes(java.lang.String notes)
notes - the notes for this work record.
public java.lang.Object setValue(Property property,
java.lang.Object value)
throws NoSuchPropertyException,
java.lang.ClassCastException
setValue in class TypedResourceproperty - the name of the property to setvalue - the new value to set for the specified property
NoSuchPropertyException - if the named property does not exist
java.lang.ClassCastException - if the value is of the wrong type for the specified propertypublic boolean equals(java.lang.Object another)
equals in class java.lang.Objectanother - the object to be compared with
public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class TypedResourcepublic WorkRecord copy()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||