OSID Logo
OSID Specifications
resourcing package
Version 3.0.0
Interfaceosid.resourcing.Work
Implementsosid.OsidObject
osid.Subjugateable
Used Byosid.resourcing.Commission
osid.resourcing.WorkAdminSession
osid.resourcing.WorkList
osid.resourcing.WorkLookupSession
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.

Returnbooleantrue 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_STATEneedsCompetence() is false
CompliancemandatoryThis method must be implemented.
MethodgetCompetencies
Description

Gets the competency.

Returnosid.resourcing.CompetencyListthe competency
ErrorsILLEGAL_STATEneedsCompetence() 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.

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

Gets the completion date.

Returnosid.calendaring.DateTimethe completion date
ErrorsILLEGAL_STATEisComplete() 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_ARGUMENTworkRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(workRecordType) is false
CompliancemandatoryThis method must be implemented.