OSID Logo
OSID Specifications
resourcing package
Version 3.1.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.Id the job Id
Compliancemandatory This method must be implemented.
MethodgetJob
Description

Gets the job of which this work is a part.

Returnosid.resourcing.Job the job
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodgetCompetencyIds
Description

Gets the Ids of the competencies.

Returnosid.id.IdList the competency Ids
ErrorsILLEGAL_STATE needsCompetence() is false
Compliancemandatory This method must be implemented.
MethodgetCompetencies
Description

Gets the competency.

Returnosid.resourcing.CompetencyList the competency
ErrorsILLEGAL_STATE needsCompetence() is false
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetCreatedDate
Description

Gets the date this work was created.

Returnosid.calendaring.DateTime the created date
Compliancemandatory This method must be implemented.
MethodisComplete
Description

Tests if this work has been completed.

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

Gets the completion date.

Returnosid.calendaring.DateTime the completion date
ErrorsILLEGAL_STATE isComplete() is false
Compliancemandatory This 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.TypeworkRecordType the type of work record to retrieve
Returnosid.resourcing.records.WorkRecord the work record
ErrorsNULL_ARGUMENT workRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(workRecordType) is false
Compliancemandatory This method must be implemented.