OSID Logo
OSID Specifications
resourcing package
Version 3.0.0
Interfaceosid.resourcing.AvailabilityForm
Implementsosid.OsidRelationshipForm
Implemented Byosid.resourcing.batch.AvailabilityBatchForm
Used Byosid.resourcing.AvailabilityAdminSession
Description

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

MethodgetCompetencyMetadata
Description

Gets the metadata for the competency.

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

Sets the competency.

Parametersosid.id.IdcompetencyIdthe new competency
ErrorsINVALID_ARGUMENTcompetencyId is invalid
NO_ACCESSMetadata.isReadOnly() is true
NULL_ARGUMENTcompetencyId is null
CompliancemandatoryThis method must be implemented.
MethodclearCompetency
Description

Removes the competency.

ErrorsNO_ACCESSMetadata.isRequired() is true or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetPercentageMetadata
Description

Gets the metadata for the percentage availability.

Returnosid.Metadatametadata for the percentage availability
CompliancemandatoryThis method must be implemented.
MethodsetPercentage
Description

Sets the percent availability.

Parameterscardinalavailabilitythe new percentage vaailability
ErrorsINVALID_ARGUMENTavailability is invalid
NO_ACCESSMetadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodclearPercentage
Description

Removes the percentage availability.

ErrorsNO_ACCESSMetadata.isRequired() is true or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetAvailabilityFormRecord
Description

Gets the AvailabilityFormRecord corresponding to the given availability record Type .

Parametersosid.type.TypeavailabilityRecordTypean availability record type
Returnosid.resourcing.records.AvailabilityFormRecordthe availability form record
ErrorsNULL_ARGUMENTavailabilityRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(availabilityRecordType) is false
CompliancemandatoryThis method must be implemented.