OSID Logo
OSID Specifications
resourcing package
Version 3.1.0
Interfaceosid.resourcing.Commission
Implementsosid.OsidRelationship
Used Byosid.resourcing.CommissionAdminSession
osid.resourcing.CommissionList
osid.resourcing.CommissionLookupSession
osid.resourcing.Effort
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.Id the resource Id
Compliancemandatory This method must be implemented.
MethodgetResource
Description

Gets the commissioned resource.

Returnosid.resource.Resource the resource
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetWorkId
Description

Gets the Id of the work.

Returnosid.id.Id the work Id
Compliancemandatory This method must be implemented.
MethodgetWork
Description

Gets the work.

Returnosid.resourcing.Work the work
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodisCompetent
Description

Tests if a competency is specified for this commission.

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

Gets the competency Id.

Returnosid.id.Id the competency Id
ErrorsILLEGAL_STATE isCompetent() is false
Compliancemandatory This method must be implemented.
MethodgetCompetency
Description

Gets the competency.

Returnosid.resourcing.Competency the competency
ErrorsILLEGAL_STATE isCompetent() is false
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetPercentage
Description

Gets the percentage commitment.

Returncardinal the percentage commitment
Compliancemandatory This 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.TypecommissionRecordType the type of commission record to retrieve
Returnosid.resourcing.records.CommissionRecord the commission record
ErrorsNULL_ARGUMENT commissionRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(commissionRecordType) is false
Compliancemandatory This method must be implemented.