OSID Logo
OSID Specifications
resourcing package
Version 3.0.0
Release Candidate Preview
Interfaceosid.resourcing.Work
Implementsosid.OsidObject
osid.Subjugateable
Description

Work is an instance of a job and may require competence.

MethodgetJobId
Description

Gets the Id of the job of which this work is a part.

Returnosid.id.Idthe job Id
CompliancemandatoryThis method must be implemented.
MethodgetJob
Description

Gets the job of which this work is a part.

Returnosid.resourcing.Jobthe job
ErrorsOPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodneedsCompetence
Description

Tests if specific competencies are needed for this work.

Returnboolean true if competency if specified, false if incompetence will do
CompliancemandatoryThis method must be implemented.
MethodgetCompetencyIds
Description

Gets the Ids of the competencies.

Returnosid.id.IdListthe competency Ids
ErrorsILLEGAL_STATE needsCompetence() is false
CompliancemandatoryThis method must be implemented.
MethodgetCompetencies
Description

Gets the competency.

Returnosid.resourcing.CompetencyListthe competency
ErrorsILLEGAL_STATE needsCompetence() is false
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetCreatedDate
Description

Gets the date this work was created.

Returnosid.calendaring.DateTimethe created date
CompliancemandatoryThis method must be implemented.
MethodisComplete
Description

Tests if this work has been completed.

Returnboolean true if this work is complete, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetCompletionDate
Description

Gets the completion date.

Returnosid.calendaring.DateTimethe completion date
ErrorsILLEGAL_STATE isComplete() is false
CompliancemandatoryThis method must be implemented.
MethodgetWorkRecord
Description

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

Parametersosid.type.TypeworkRecordTypethe type of work record to retrieve
Returnosid.resourcing.records.WorkRecordthe work record
ErrorsNULL_ARGUMENT workRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(workRecordType) is false
CompliancemandatoryThis method must be implemented.