OSID Logo
OSID Specifications
course program package
Version 3.1.0
Interfaceosid.course.program.ProgramForm
Implementsosid.OsidObjectForm
osid.OsidOperableForm
Implemented Byosid.course.program.batch.ProgramBatchForm
Used Byosid.course.program.ProgramAdminSession
Description

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

MethodgetTitleMetadata
Description

Gets the metadata for a program title.

Returnosid.Metadata metadata for the title
Compliancemandatory This method must be implemented.
MethodsetTitle
Description

Sets the title.

Parametersstringtitle the new title
ErrorsINVALID_ARGUMENT title is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT title is null
Compliancemandatory This method must be implemented.
MethodclearTitle
Description

Removes the title.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetNumberMetadata
Description

Gets the metadata for a program number.

Returnosid.Metadata metadata for the program number
Compliancemandatory This method must be implemented.
MethodsetNumber
Description

Sets the program number.

Parametersstringnumber the new program number
ErrorsINVALID_ARGUMENT number is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT number is null
Compliancemandatory This method must be implemented.
MethodclearNumber
Description

Removes the program number.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetSponsorsMetadata
Description

Gets the metadata for a set of sponsors.

Returnosid.Metadata metadata for the sponsors
Compliancemandatory This method must be implemented.
MethodsetSponsors
Description

Sets the sponsors.

Parametersosid.id.Id[]resourceIds the new sponsors
ErrorsINVALID_ARGUMENT resourceIds is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT resourceIds is null
Compliancemandatory This method must be implemented.
MethodclearSponsors
Description

Removes the sponsors.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetParentProgramMetadata
Description

Gets the metadata for the parent program.

Returnosid.Metadata metadata for the parent program
Compliancemandatory This method must be implemented.
MethodsetParentProgram
Description

Sets the parent program.

Parametersosid.id.IdprogramId the new parent program
ErrorsINVALID_ARGUMENT programId is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT programId is null
Compliancemandatory This method must be implemented.
MethodclearParentProgram
Description

Removes the parent program.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetLearningObjectivesMetadata
Description

Gets the metadata for the learning objectives.

Returnosid.Metadata metadata for the learning objectives
Compliancemandatory This method must be implemented.
MethodsetLearningObjectives
Description

Sets the learning objectives.

Parametersosid.id.Id[]objectiveIds the new learning objectives
ErrorsINVALID_ARGUMENT objectiveIds is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT objectiveIds is null
Compliancemandatory This method must be implemented.
MethodclearLearningObjectives
Description

Removes the learning objectives.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetTargetAudiencesMetadata
Description

Gets the metadata for a set of target audiences.

Returnosid.Metadata metadata for the target audiences
Compliancemandatory This method must be implemented.
MethodsetTargetAudiences
Description

Sets the target audiences.

Parametersosid.id.Id[]resourceIds the new target audiences
ErrorsINVALID_ARGUMENT resourceIds is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT resourceIds is null
Compliancemandatory This method must be implemented.
MethodclearTargetAudiences
Description

Removes the target audiences.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetCompletionRequirementsInfoMetadata
Description

Gets the metadata for a completion requirements informational string.

Returnosid.Metadata metadata for the prerequisite information
Compliancemandatory This method must be implemented.
MethodsetCompletionRequirementsInfo
Description

Sets the completion requirements information.

Parametersstringrequirements the new requirements information
ErrorsINVALID_ARGUMENT requirements is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT requirements is null
Compliancemandatory This method must be implemented.
MethodclearCompletionRequirementsInfo
Description

Removes the completion requirements information.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetCompletionRequirementsMetadata
Description

Gets the metadata for the completion requirements.

Returnosid.Metadata metadata for the requisites
Compliancemandatory This method must be implemented.
MethodsetCompletionRequirements
Description

Sets the completion requirements.

Parametersosid.id.Id[]requisiteIds the new requisites
ErrorsINVALID_ARGUMENT requisiteIds is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT requisiteIds is null
Compliancemandatory This method must be implemented.
MethodclearCompletionRequirements
Description

Removes the completion requirements.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetCredentialsMetadata
Description

Gets the metadata for a set of credentials.

Returnosid.Metadata metadata for the credentials
Compliancemandatory This method must be implemented.
MethodsetCredentials
Description

Sets the credentials.

Parametersosid.id.Id[]credentialIds the new credentials
ErrorsINVALID_ARGUMENT credentialIds is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT credentialIds is null
Compliancemandatory This method must be implemented.
MethodclearCredentials
Description

Removes the credentials.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetProgramFormRecord
Description

Gets the ProgramFormRecord corresponding to the given program record Type.

Parametersosid.type.TypeprogramRecordType a program record type
Returnosid.course.program.records.ProgramFormRecord the program form record
ErrorsNULL_ARGUMENT programRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(programRecordType) is false
Compliancemandatory This method must be implemented.