Interface Program
- All Superinterfaces:
Browsable, Extensible, Identifiable, Operable, OsidObject
A Program represents a canonical program and instantiated for
offering through the creation of a ProgramOffering .
-
Method Summary
Modifier and TypeMethodDescriptionbooleanTests if completion of this program results in credentials awarded.Gets theRequisiteIdsfor the program completion.Gets the requisites for the program completion.Gets the an informational string for the program completion.Gets the awarded credentialIds.Gets the awarded credentials.Gets theObjectiveIdsfor the program.Gets the learning objectives for the program.Gets the program number which is a label generally used to index the program in a catalog, such as "16c."Gets the parent program.Gets theIdfor the parent program.getProgramRecord(Type programRecordType) Gets the program record corresponding to the givenProgramrecordType.This method is used to retrieve an object implementing the requested record.Gets the sponsorIds.Gets the sponsors.Gets the target audienceIdsfor the program.Gets the target audiences for the program.getTitle()Gets the formal title of this program.booleanTests if this program has a rule for the program completion.booleanTests if this program has sponsors.booleanTests if this program has associated target audiences.booleanisPartOf()Tests if this program such is part of anotherMethods inherited from interface Browsable
getProperties, getPropertiesByRecordTypeModifier and TypeMethodDescriptionGets a list of properties.getPropertiesByRecordType(Type recordType) Gets a list of properties corresponding to the specified record type.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface Identifiable
getId, isCurrentMethods inherited from interface Operable
isActive, isDisabled, isEnabled, isOperationalModifier and TypeMethodDescriptionbooleanisActive()Tests if this operable is active.booleanTests if this operable is administravely disabled.booleanTests if this operable is administravely enabled.booleanTests if thisOperableis operational.Methods inherited from interface OsidObject
getDescription, getDisplayName, getGenusType, isOfGenusTypeModifier and TypeMethodDescriptionGets the description associated with this instance of this OSID object.Gets the preferred display name associated with this instance of this OSID object appropriate for display to the user.Gets the genus type of this object.booleanisOfGenusType(Type genusType) Tests if this object is of the given genusType.
-
Method Details
-
getTitle
DisplayText getTitle()Gets the formal title of this program. It may be the same as the display name or it may be used to more formally label the program. It may be the same as the display name or it may be used to more formally label the program. A display name might be Course 16 where the title is Aeronautics & Astronautics.- Returns:
- the program title
- Compliance:
mandatory- This method must be implemented.
-
getNumber
String getNumber()Gets the program number which is a label generally used to index the program in a catalog, such as "16c."- Returns:
- the program number
- Compliance:
mandatory- This method must be implemented.
-
hasSponsors
boolean hasSponsors()Tests if this program has sponsors.- Returns:
trueif this program has sponsors,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getSponsorIds
IdList getSponsorIds()Gets the sponsorIds.- Returns:
- the sponsor
Ids - Throws:
IllegalStateException-hasSponsors()isfalse- Compliance:
mandatory- This method must be implemented.
-
getSponsors
Gets the sponsors.- Returns:
- the sponsors
- Throws:
IllegalStateException-hasSponsors()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
isPartOf
boolean isPartOf()Tests if this program such is part of anotherprogram
. Programs may also be linked by creating dependencies using program requirements.- Returns:
trueif this program has a parentfalseotherwise- Compliance:
mandatory- This method must be implemented.
-
getParentProgramId
Id getParentProgramId()Gets theIdfor the parent program.- Returns:
- the parent program
Id - Throws:
IllegalStateException-isPartOf()isfalse- Compliance:
mandatory- This method must be implemented.
-
getParentProgram
Gets the parent program.- Returns:
- the parent program
- Throws:
IllegalStateException-isPartOf()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getLearningObjectiveIds
IdList getLearningObjectiveIds()Gets theObjectiveIdsfor the program.- Returns:
- the learning objective
Ids - Compliance:
mandatory- This method must be implemented.
-
getLearningObjectives
Gets the learning objectives for the program.- Returns:
- the learning objectives
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
hasTargetAudiences
boolean hasTargetAudiences()Tests if this program has associated target audiences.- Returns:
trueif this program has a target audience,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getTargetAudienceIds
IdList getTargetAudienceIds()Gets the target audienceIdsfor the program.- Returns:
- the target audience
Ids - Throws:
IllegalStateException-hasTargetAudiences()isfalse- Compliance:
mandatory- This method must be implemented.
-
getTargetAudiences
Gets the target audiences for the program.- Returns:
- the target audiences
- Throws:
IllegalStateException-hasTargetAudiences()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getCompletionRequirementsInfo
DisplayText getCompletionRequirementsInfo()Gets the an informational string for the program completion.- Returns:
- the program completion
- Compliance:
mandatory- This method must be implemented.
-
hasCompletionRequirements
boolean hasCompletionRequirements()Tests if this program has a rule for the program completion.- Returns:
trueif this program has a completion rule,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getCompletionRequirementIds
IdList getCompletionRequirementIds()Gets theRequisiteIdsfor the program completion.- Returns:
- the completion requisite
Ids - Throws:
IllegalStateException-hasCompletionRequirements()isfalse- Compliance:
mandatory- This method must be implemented.
-
getCompletionRequirements
Gets the requisites for the program completion. EachRequisiteis anANDterm and must be true for the requirements to be satisifed.- Returns:
- the completion requisites
- Throws:
IllegalStateException-hasCompletionRequirements()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
earnsCredentials
boolean earnsCredentials()Tests if completion of this program results in credentials awarded.- Returns:
trueif this program earns credentials,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getCredentialIds
IdList getCredentialIds()Gets the awarded credentialIds.- Returns:
- the returned list of credential
Ids - Throws:
IllegalStateException-earnsCredentials()isfalse- Compliance:
mandatory- This method must be implemented.
-
getCredentials
Gets the awarded credentials.- Returns:
- the returned list of credentials
- Throws:
IllegalStateException-earnsCredentials()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getProgramRecord
Gets the program record corresponding to the givenProgramrecordType.This method is used to retrieve an object implementing the requested record. TheprogramRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(programRecordType)istrue.- Parameters:
programRecordType- the type of program record to retrieve- Returns:
- the program record
- Throws:
NullArgumentException-programRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(programRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-