Interface Offering
- All Superinterfaces:
Browsable, Extensible, Identifiable, OsidObject, OsidRelationship, Temporal
An Offering is an OsidRelationship between a
CanonicalUnit and a TimePeriod .
-
Method Summary
Modifier and TypeMethodDescriptionGets the canonical of this offering.Gets theIdof the canonical unit.getCode()Gets the code for this offering.getOfferingRecord(Type offeringRecordType) Gets the record corresponding to the givenOfferingrecordType.This method is used to retrieve an object implementing the requested record.Gets the various result optionIdsallowed for results.Gets the various result options allowed for this offering.Gets the scheduleIdsassociated with this offering.Gets the schedules associated with this offering.Gets the sponsorIds.Gets the sponsors.Gets the time period of this offeringGets theIdof the time period.getTitle()Gets the title for this offering.booleanTests if this offering has results when offered.booleanTests if this offering has sponsors.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
-
getCanonicalUnitId
Id getCanonicalUnitId()Gets theIdof the canonical unit.- Returns:
- the canonical unit
Id - Compliance:
mandatory- This method must be implemented.
-
getCanonicalUnit
Gets the canonical of this offering.- Returns:
- the canonical unit
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getTimePeriodId
Id getTimePeriodId()Gets theIdof the time period.- Returns:
- the time period
Id - Compliance:
mandatory- This method must be implemented.
-
getTimePeriod
Gets the time period of this offering- Returns:
- the time period
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getTitle
DisplayText getTitle()Gets the title for this offering.- Returns:
- the title
- Compliance:
mandatory- This method must be implemented.
-
getCode
String getCode()Gets the code for this offering.- Returns:
- the code
- Compliance:
mandatory- This method must be implemented.
-
hasResults
boolean hasResults()Tests if this offering has results when offered.- Returns:
trueif this offering has results,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getResultOptionIds
IdList getResultOptionIds()Gets the various result optionIdsallowed for results.- Returns:
- the returned list of grading option
Ids - Throws:
IllegalStateException-hasResults()isfalse- Compliance:
mandatory- This method must be implemented.
-
getResultOptions
Gets the various result options allowed for this offering.- Returns:
- the returned list of grading options
- Throws:
IllegalStateException-hasResults()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
hasSponsors
boolean hasSponsors()Tests if this offering has sponsors.- Returns:
trueif this 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.
-
getScheduleIds
IdList getScheduleIds()Gets the scheduleIdsassociated with this offering.- Returns:
- the schedule
Ids - Compliance:
mandatory- This method must be implemented.
-
getSchedules
Gets the schedules associated with this offering.- Returns:
- the schedules
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getOfferingRecord
Gets the record corresponding to the givenOfferingrecordType.This method is used to retrieve an object implementing the requested record. TheofferingRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(offeringRecordType)istrue.- Parameters:
offeringRecordType- the type of offering record to retrieve- Returns:
- the offering record
- Throws:
NullArgumentException-offeringRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(offeringRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-