OSID Logo
OSID Specifications
resourcing package
Version 3.0.0
Release Candidate Preview
Interfaceosid.resourcing.WorkForm
Implementsosid.OsidObjectForm
osid.OsidSubjugateableForm
Description

This is the form for creating and updating Works. Like all OsidForm objects, various data elements may be set here for use in the create and update methods in the WorkAdminSession. For each data element that may be set, metadata may be examined to provide display hints or data constraints.

MethodgetCompetenciesMetadata
Description

Gets the metadata for the competencies.

Returnosid.Metadatametadata for the competency
CompliancemandatoryThis method must be implemented.
MethodsetCompetencies
Description

Sets specific competencies required for this work.

Parametersosid.id.IdListcompetencyIdsthe new competencies
ErrorsINVALID_ARGUMENT competencyIds is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT competencyId is null
CompliancemandatoryThis method must be implemented.
MethodclearCompetencies
Description

Removes the competencies.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetWorkFormRecord
Description

Gets the WorkFormRecord corresponding to the given work record Type.

Parametersosid.type.TypeworkRecordTypea work record type
Returnosid.resourcing.records.WorkFormRecordthe work form record
ErrorsNULL_ARGUMENT workRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(workRecordType) is false
CompliancemandatoryThis method must be implemented.