public interface Effort extends OsidRelationship
An Effort captures actual time spent on a commission.
The time spent may be used to further qualify the effort that took place
within the effective dates. Multiple efforts may be logged between a
resource and a commission to capture discontiguous periosds of time.
| Modifier and Type | Method and Description |
|---|---|
Commission |
getCommission()
Gets the commission.
|
Id |
getCommissionId()
Gets the
Id of the commission. |
EffortRecord |
getEffortRecord(Type effortRecordType)
Gets the effort record corresponding to the given
Effort
record Type. |
Resource |
getResource()
Gets the resource.
|
Id |
getResourceId()
Gets the
Id of the resource. |
Duration |
getTimeSpent()
Gets the time spent on this commission.
|
getEndReason, getEndReasonId, hasEndReasongetDescription, getDisplayName, getGenusType, isOfGenusTypegetId, isCurrentgetRecordTypes, hasRecordTypegetProperties, getPropertiesByRecordTypegetEndDate, getStartDate, isEffectiveId getResourceId()
Id of the resource. Id mandatory - This method must be implemented. Resource getResource() throws OperationFailedException
OperationFailedException - unable to complete requestmandatory - This method must be implemented. Id getCommissionId()
Id of the commission. Id mandatory - This method must be implemented. Commission getCommission() throws OperationFailedException
OperationFailedException - unable to complete requestmandatory - This method must be implemented. Duration getTimeSpent()
mandatory - This method must be implemented. EffortRecord getEffortRecord(Type effortRecordType) throws OperationFailedException
Effort
record Type. This method is used to retrieve an
object implementing the requested record. The effortRecordType
may be the Type returned in
getRecordTypes() or any of its parents in a Type
hierarchy where hasRecordType(effortRecordType)
is true .effortRecordType - the type of effort record to retrieveNullArgumentException - effortRecordType
is null OperationFailedException - unable to complete requestUnsupportedException -
hasRecordType(effortRecordType) is false
mandatory - This method must be implemented.