OSID Logo
OSID Specifications
resourcing package
Version 3.0.0
Release Candidate Preview
Interfaceosid.resourcing.Commission
Implementsosid.OsidRelationship
Description

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.

MethodgetResourceId
Description

Gets the Id of the commissioned resource.

Returnosid.id.Idthe resource Id
CompliancemandatoryThis method must be implemented.
MethodgetResource
Description

Gets the commissioned resource.

Returnosid.resource.Resourcethe resource
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetWorkId
Description

Gets the Id of the work.

Returnosid.id.Idthe work Id
CompliancemandatoryThis method must be implemented.
MethodgetWork
Description

Gets the work.

Returnosid.resourcing.Workthe work
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodisCompetent
Description

Tests if a competency is specified for this commission.

Returnboolean true if a competency is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetCompetencyId
Description

Gets the competency Id.

Returnosid.id.Idthe competency Id
ErrorsILLEGAL_STATE isCompetent() is false
CompliancemandatoryThis method must be implemented.
MethodgetCompetency
Description

Gets the competency.

Returnosid.resourcing.Competencythe competency
ErrorsILLEGAL_STATE isCompetent() is false
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetPercentage
Description

Gets the percentage commitment.

Returncardinalthe percentage commitment
CompliancemandatoryThis method must be implemented.
MethodgetCommissionRecord
Description

Gets the commission record corresponding to the given 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 .

Parametersosid.type.TypecommissionRecordTypethe type of commission record to retrieve
Returnosid.resourcing.records.CommissionRecordthe commission record
ErrorsNULL_ARGUMENT commissionRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(commissionRecordType) is false
CompliancemandatoryThis method must be implemented.