Interface Participant
- All Superinterfaces:
Browsable, Extensible, Identifiable, OsidObject, OsidRelationship, Temporal
A Participant in an OsidRelationship between an
Offering and a Resource .
-
Method Summary
Modifier and TypeMethodDescriptionGets the offering for this participant.Gets theIdof the offering to which this participant is assigned.getParticipantRecord(Type participantRecordType) Gets the record corresponding to the givenParticipantrecordType.Gets the resource for this participant.Gets theIdof the resource.Gets the various result optionIdsapplied to this participation.Gets the various result optionIdsapplied to this participation.Gets the time period for this participant.Gets theIdof the time period.booleanTests if there are result options that inform or constrain the results.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
-
getOfferingId
Id getOfferingId()Gets theIdof the offering to which this participant is assigned.- Returns:
- the
OfferingId - Compliance:
mandatory- This method must be implemented.
-
getOffering
Gets the offering for this participant.- Returns:
- the
Offering - Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getResourceId
Id getResourceId()Gets theIdof the resource.- Returns:
- the
ResourceId - Compliance:
mandatory- This method must be implemented.
-
getResource
Gets the resource for this participant.- Returns:
- the
Resource - Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getTimePeriodId
Id getTimePeriodId()Gets theIdof the time period.- Returns:
- the
TimePeriodId - Compliance:
mandatory- This method must be implemented.
-
getTimePeriod
Gets the time period for this participant.- Returns:
- the
TimePeriod - Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
hasResults
boolean hasResults()Tests if there are result options that inform or constrain the results.- Returns:
trueif there are results,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getResultOptionIds
IdList getResultOptionIds()Gets the various result optionIdsapplied to this participation.- Returns:
- the returned list of grading option
Ids - Throws:
IllegalStateException-hasResults()isfalse- Compliance:
mandatory- This method must be implemented.
-
getResultOptions
Gets the various result optionIdsapplied to this participation.- Returns:
- the returned list of grading options
- Throws:
IllegalStateException-hasResults()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getParticipantRecord
Gets the record corresponding to the givenParticipantrecordType. This method is used to retrieve an object implementing the requested record. TheparticipantRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(participantRecordType)istrue.- Parameters:
participantRecordType- the type of participant record to retrieve- Returns:
- the participant record
- Throws:
NullArgumentException-participantRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(participantRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-