public final class WorkRecord extends TrackedObject
| Modifier and Type | Class and Description |
|---|---|
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
|
TrackedObject.WebCacheTrackedObjectLiveObject.WebCacheLiveObjectTypedResource.BranchState| Modifier and Type | Method and Description |
|---|---|
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.
|
getModifiedBy, getModifiedTimegetCreatedBy, getCreatedTime, toStarTeamURLaddToIntegerArray, getBooleanValue, getByteArrayValue, getCachedProperties, getContentValue, getDateTimeValue, getDateValue, getDisplayName, getDoubleValue, getEnumDisplayName, getEnumeratedValues, getIntegerArrayValue, getIntegerValue, getLinkValue, getLongValue, getObjectID, getPossibleValues, getServer, getStringValue, getTimeSpanValue, getType, getValue, hasCachedProperties, hasValue, isDirty, isNew, removeFromIntegerArray, setBooleanValue, setByteArrayValue, setContentValue, setDateTimeValue, setDateValue, setDoubleValue, setEnumeratedValue, setEnumeratedValues, setIntegerArrayValue, setIntegerValue, setLinkValue, setLongValue, setStringValue, setTimeSpanValuepublic WorkRecord.Type.PropertyCollection getProperties()
WorkRecord typepublic 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 propertyNoSuchPropertyException - if the named property does not existjava.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 withpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class TypedResourcepublic WorkRecord copy()
StarTeam SDK 17.0, Build 34
Copyright © 2019 Micro Focus or one of its affiliates. All rights reserved.