public interface Commission extends OsidRelationship
A Commission
represents a commitment of a resource for
work. A commission may also specify a competency to qualify the work
performed. The effective dates of the relationship specify the duration of
the commission.
Modifier and Type | Method and Description |
---|---|
CommissionRecord |
getCommissionRecord(Type commissionRecordType)
Gets the commission record corresponding to the given
Commission record Type. |
Competency |
getCompetency()
Gets the competency.
|
Id |
getCompetencyId()
Gets the competency
Id. |
long |
getPercentage()
Gets the percentage commitment.
|
Resource |
getResource()
Gets the commissioned resource.
|
Id |
getResourceId()
Gets the
Id of the commissioned resource. |
Work |
getWork()
Gets the work.
|
Id |
getWorkId()
Gets the
Id of the work. |
boolean |
isCompetent()
Tests if a competency is specified for this commission.
|
getEndReason, getEndReasonId, hasEndReason
getDescription, getDisplayName, getGenusType, isOfGenusType
getId, isCurrent
getRecordTypes, hasRecordType
getProperties, getPropertiesByRecordType
getEndDate, getStartDate, isEffective
Id getResourceId()
Id
of the commissioned resource. Id
mandatory
- This method must be implemented. Resource getResource() throws OperationFailedException
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. Id getWorkId()
Id
of the work. Id
mandatory
- This method must be implemented. Work getWork() throws OperationFailedException
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. boolean isCompetent()
true
if a competency is available, false
otherwisemandatory
- This method must be implemented. Id getCompetencyId()
Id.
Id
IllegalStateException
- isCompetent()
is
false
mandatory
- This method must be implemented. Competency getCompetency() throws OperationFailedException
IllegalStateException
- isCompetent()
is
false
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. long getPercentage()
mandatory
- This method must be implemented. CommissionRecord getCommissionRecord(Type commissionRecordType) throws OperationFailedException
Commission
record Type.
This method is used to
retrieve an object implementing the requested record. The
commissionRecordType
may be the Type
returned
in getRecordTypes()
or any of its parents in a
Type
hierarchy where
hasRecordType(commissionRecordType)
is true
.commissionRecordType
- the type of commission record to retrieveNullArgumentException
- commissionRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(commissionRecordType)
is false
mandatory
- This method must be implemented.