Interface RegistrationTarget
- All Superinterfaces:
Browsable, Extensible, Identifiable, OsidObject, Subjugateable
A RegistrationTarget represents a set of Activities in
which a Registration is permissible.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanTests if registration to this registration target.Gets the activities in this registration target.Gets the activityIdsin this registration target.Gets the course offering associated with this registration target.Gets the course offeringIdassociated with this registration target.Gets the number of credits available to register for in this course.Gets the various grading optionIdsavailable to register in this course.Gets the various grading options available to register in this course.getRegistrationTargetRecord(Type registrationTargetRecordType) Gets the registration target record corresponding to the givenRegistrationTarget recordType.booleanisGraded()Tests if a registration to this registration target.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.
-
Method Details
-
getCourseOfferingId
Id getCourseOfferingId()Gets the course offeringIdassociated with this registration target.- Returns:
- the course offering
Id - Compliance:
mandatory- This method must be implemented.
-
getCourseOffering
Gets the course offering associated with this registration target.- Returns:
- the course offering
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getActivityIds
IdList getActivityIds()Gets the activityIdsin this registration target.- Returns:
Idsof thelearning objectives- Compliance:
mandatory- This method is must be implemented.
-
getActivities
Gets the activities in this registration target.- Returns:
- the activites
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
definesCredits
boolean definesCredits()Tests if registration to this registration target. results in credits to be earned.- Returns:
trueif this course has credits,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getCredits
BigDecimal[] getCredits()Gets the number of credits available to register for in this course. Each array element is a distinct option.- Returns:
- the number of credits
- Throws:
IllegalStateException-definesCredits()isfalse- Compliance:
mandatory- This method must be implemented.
-
isGraded
boolean isGraded()Tests if a registration to this registration target. will be for for grades.- Returns:
trueif this registration is for grades,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getGradingOptionIds
IdList getGradingOptionIds()Gets the various grading optionIdsavailable to register in this course.- Returns:
- the returned list of grading option
Ids - Throws:
IllegalStateException-isGraded()isfalse- Compliance:
mandatory- This method must be implemented.
-
getGradingOptions
Gets the various grading options available to register in this course.- Returns:
- the returned list of grading options
- Throws:
IllegalStateException-isGraded()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getRegistrationTargetRecord
RegistrationTargetRecord getRegistrationTargetRecord(Type registrationTargetRecordType) throws OperationFailedException Gets the registration target record corresponding to the givenRegistrationTarget recordType. This method ie used to retrieve an object implementing the requested record. TheregistrationTargetRecordType may be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(registrationTargetRecordType) istrue.- Parameters:
registrationTargetRecordType- the type of registration target record to retrieve- Returns:
- the registration target record
- Throws:
NullArgumentException-registrationTargetRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(registrationTargetRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-