public interface CourseOfferingCourseCatalogSession extends OsidSession
This session provides methods to retrieve CourseOffering
to CourseCatalog mappings. A CourseOffering
may appear in multiple CourseCatalog objects. Each catalog
may have its own authorizations governing who is allowed to look at it.
This lookup session defines several views:
| Modifier and Type | Method and Description |
|---|---|
boolean |
canLookupCourseOfferingCourseCatalogMappings()
Tests if this user can perform lookups of course offering/course
catalog mappings.
|
IdList |
getCourseCatalogIdsByCourseOffering(Id courseOfferingId)
Gets the
CourseCatalog Ids mapped to a
CourseOffering. |
CourseCatalogList |
getCourseCatalogsByCourseOffering(Id courseOfferingId)
Gets the
CourseCatalog objects mapped to a
CourseOffering. |
IdList |
getCourseOfferingIdsByCourseCatalog(Id courseCatalogId)
Gets the list of
CourseOffering Ids associated with a
CourseCatalog. |
IdList |
getCourseOfferingIdsByCourseCatalogs(IdList courseCatalogIds)
Gets the list of
CourseOffering Ids corresponding to a
list of CourseCatalog objects. |
CourseOfferingList |
getCourseOfferingsByCourseCatalog(Id courseCatalogId)
Gets the list of
CourseOfferings associated with a
CourseCatalog. |
CourseOfferingList |
getCourseOfferingsByCourseCatalogs(IdList courseCatalogIds)
Gets the list of
CourseOfferings corresponding to a
list of CourseCatalog objects. |
void |
useComparativeCourseOfferingCourseCatalogView()
The returns from the lookup methods may omit or translate elements
based on this session, such as authorization, and not result in an
error.
|
void |
usePlenaryCourseOfferingCourseCatalogView()
A complete view of the
CourseOffering and
CourseCatalog returns is desired. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseboolean canLookupCourseOfferingCourseCatalogMappings()
PERMISSION_DENIED.
This is intended as a hint to an application that may opt not
to offer lookup operations to unauthorized users. false if looking up mappings is not authorized,
true otherwisemandatory - This method must be implemented. void useComparativeCourseOfferingCourseCatalogView()
mandatory - This method is must be implemented. void usePlenaryCourseOfferingCourseCatalogView()
CourseOffering and
CourseCatalog returns is desired. Methods will return what is
requested or result in an error. This view is used when greater
precision is desired at the expense of interoperability.mandatory - This method is must be implemented. IdList getCourseOfferingIdsByCourseCatalog(Id courseCatalogId) throws NotFoundException, OperationFailedException, PermissionDeniedException
CourseOffering Ids associated with a
CourseCatalog. courseCatalogId - Id of the CourseCatalog
Ids NotFoundException - courseCatalogId is
not foundNullArgumentException - courseCatalogId
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. CourseOfferingList getCourseOfferingsByCourseCatalog(Id courseCatalogId) throws NotFoundException, OperationFailedException, PermissionDeniedException
CourseOfferings associated with a
CourseCatalog. courseCatalogId - Id of the CourseCatalog
NotFoundException - courseCatalogId is
not foundNullArgumentException - courseCatalogId
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. IdList getCourseOfferingIdsByCourseCatalogs(IdList courseCatalogIds) throws OperationFailedException, PermissionDeniedException
CourseOffering Ids corresponding to a
list of CourseCatalog objects.courseCatalogIds - list of course catalog Ids Ids NullArgumentException - courseCatalogIds
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. CourseOfferingList getCourseOfferingsByCourseCatalogs(IdList courseCatalogIds) throws OperationFailedException, PermissionDeniedException
CourseOfferings corresponding to a
list of CourseCatalog objects.courseCatalogIds - list of course catalog Ids NullArgumentException - courseCatalogIds
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. IdList getCourseCatalogIdsByCourseOffering(Id courseOfferingId) throws NotFoundException, OperationFailedException, PermissionDeniedException
CourseCatalog Ids mapped to a
CourseOffering. courseOfferingId - Id of a CourseOffering
NotFoundException - courseOfferingId is
not foundNullArgumentException - courseOfferingId
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. CourseCatalogList getCourseCatalogsByCourseOffering(Id courseOfferingId) throws NotFoundException, OperationFailedException, PermissionDeniedException
CourseCatalog objects mapped to a
CourseOffering. courseOfferingId - Id of a CourseOffering
NotFoundException - courseOfferingId is
not foundNullArgumentException - courseOfferingId
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.