Interface ProgramOffering
- All Superinterfaces:
Browsable, Extensible, Identifiable, OsidObject, OsidRelationship, Temporal
A ProgramOffering represents a learning unit offered duing a
Term . Scheduling information of a ProgramOffering is
maintained at the Activity level resulting in a composite
RecurringEvent . A separate Calendar of activities can be made
available through orchestration of the Calendaring OSID.
-
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.longGets the maximum number of students this offering can have.longGets the minimum number of students this offering can have.Gets the program number which is a label generally used to index the program offering in a catalog, such as 16.Gets the parent program offering.Gets theIdfor the parent program offering.Gets the canonical program associated with this program offering.Gets the canonical programIdassociated with this program offering.getProgramOfferingRecord(Type programOfferingRecordType) Gets the program offering record corresponding to the givenProgramOfferingrecordType.Gets the restricted audienceIdsfor this program offering.Gets the restricted audiences for this program offering.Gets the sponsorIds.Gets the sponsors.getTerm()Gets theTermof this offering.Gets theIdof theTermof this offering.getTitle()Gets the formal title of this program offering.getURL()Gets an external resource, such as a class web site, associated with this offering.booleanTests if this program has a rule for the program completion.booleanTests if this program offering has restricted audiences.booleanTests if this program offering has sponsors.booleanisPartOf()Tests if this program offering is part of another program offering.booleanTests if this program offering requires advanced registration.Methods 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 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.Methods inherited from interface OsidRelationship
getEndReason, getEndReasonId, hasEndReasonModifier and TypeMethodDescriptionGets a state indicating why this relationship has ended.Gets a stateIdindicating why this relationship has ended.booleanTests if a reason this relationship came to an end is known.Methods inherited from interface Temporal
getEndDate, getStartDate, isEffectiveModifier and TypeMethodDescriptionGets the end date.Gets the start date.booleanTests if the current date is within the start end end dates inclusive.
-
Method Details
-
getProgramId
Id getProgramId()Gets the canonical programIdassociated with this program offering.- Returns:
- the program
Id - Compliance:
mandatory- This method must be implemented.
-
getProgram
Gets the canonical program associated with this program offering.- Returns:
- the program
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getTermId
Id getTermId()Gets theIdof theTermof this offering.- Returns:
- the
TermId - Compliance:
mandatory- This method must be implemented.
-
getTerm
Gets theTermof this offering.- Returns:
- the term
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getTitle
DisplayText getTitle()Gets the formal title of this program offering. 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 offering in a catalog, such as 16.- Returns:
- the program number
- Compliance:
mandatory- This method must be implemented.
-
hasSponsors
boolean hasSponsors()Tests if this program offering has sponsors.- Returns:
trueif this program offering 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 offering is part of another program offering.- Returns:
trueif this program offering has a parent,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getParentProgramOfferingId
Id getParentProgramOfferingId()Gets theIdfor the parent program offering.- Returns:
- the parent program offering
Id - Throws:
IllegalStateException-isPartOf()isfalse- Compliance:
mandatory- This method must be implemented.
-
getParentProgramOffering
Gets the parent program offering.- Returns:
- the parent program offering
- 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.
-
hasRestrictedAudiences
boolean hasRestrictedAudiences()Tests if this program offering has restricted audiences.- Returns:
trueif this program offering has a restricted audience,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getRestrictedAudienceIds
IdList getRestrictedAudienceIds()Gets the restricted audienceIdsfor this program offering.- Returns:
- the restricted audience
Ids - Throws:
IllegalStateException-hasRestrictedAudiences()isfalse- Compliance:
mandatory- This method must be implemented.
-
getRestrictedAudiences
Gets the restricted audiences for this program offering.- Returns:
- the restricted audiences
- Throws:
IllegalStateException-hasRestrictedAudiences()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.
-
requiresRegistration
boolean requiresRegistration()Tests if this program offering requires advanced registration.- Returns:
trueif this progranm offering requires advance registration,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getMinimumSeats
long getMinimumSeats()Gets the minimum number of students this offering can have.- Returns:
- the minimum seats
- Throws:
IllegalStateException-requiresRegistration()isfalse- Compliance:
mandatory- This method must be implemented.
-
getMaximumSeats
long getMaximumSeats()Gets the maximum number of students this offering can have.- Returns:
- the maximum seats
- Throws:
IllegalStateException-requiresRegistration()isfalse- Compliance:
mandatory- This method must be implemented.
-
getURL
String getURL()Gets an external resource, such as a class web site, associated with this offering.- Returns:
- a URL string
- Compliance:
mandatory- This method must be implemented.
-
getProgramOfferingRecord
ProgramOfferingRecord getProgramOfferingRecord(Type programOfferingRecordType) throws OperationFailedException Gets the program offering record corresponding to the givenProgramOfferingrecordType. This method is used to retrieve an object implementing the requested record. TheprogramOfferingRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(programOfferingRecordType)istrue.- Parameters:
programOfferingRecordType- the type of program offering record to retrieve- Returns:
- the program offering record
- Throws:
NullArgumentException-programOfferingRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(programOfferingRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-