OSID Logo
OSID Specifications
resourcing package
Version 3.1.0
Interfaceosid.resourcing.Availability
Implementsosid.OsidRelationship
Used Byosid.resourcing.AvailabilityAdminSession
osid.resourcing.AvailabilityList
osid.resourcing.AvailabilityLookupSession
Description

An Availability represents a resource's availability for work. A competency may be used to qualify how the resource can be applied to the work. The effective dates of this relationship specify the availability dates for the resource.

MethodgetResourceId
Description

Gets the resource Id.

Returnosid.id.Id the resource Id
Compliancemandatory This method must be implemented.
MethodgetResource
Description

Gets the resource.

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

Gets the job Id.

Returnosid.id.Id the job Id
Compliancemandatory This method must be implemented.
MethodgetJob
Description

Gets the job.

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

Tests if a competency is specified for this availability.

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 availability.

Returncardinal the percentage availability
Compliancemandatory This method must be implemented.
MethodgetAvailabilityRecord
Description

Gets the availability record corresponding to the given Availability record Type. This method is used to retrieve an object implementing the requested record. The availabilityRecordType may be the Type returned in getRecordTypes() or any of its parents in a Type hierarchy where hasRecordType(availabilityRecordType) is true.

Parametersosid.type.TypeavailabilityRecordType the type of availability record to retrieve
Returnosid.resourcing.records.AvailabilityRecord the availability record
ErrorsNULL_ARGUMENT availabilityRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(availabilityRecordType) is false
Compliancemandatory This method must be implemented.