public interface EnrollmentCourseCatalogSession extends OsidSession
This session provides methods to retrieve Enrollment to
CourseCatalog mappings. An Enrollment may
appear in multiple CourseCatalogs. 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 |
canLookupEnrollmentCatalogMappings()
Tests if this user can perform lookups of enrollment/course catalog
mappings.
|
IdList |
getCatalogIdsByEnrollment(Id enrollmentId)
Gets the
CourseCatalog Ids mapped to an
Enrollment. |
CourseCatalogList |
getCatalogsByEnrollment(Id enrollmentId)
Gets the
CourseCatalog objects mapped to an
Enrollment. |
IdList |
getEnrollmentIdsByCatalog(Id courseCatalogId)
Gets the list of
Enrollment Ids associated with a
CourseCatalog. |
IdList |
getEnrollmentIdsByCatalogs(IdList courseCatalogIdList)
Gets the list of
Enrollment Ids corresponding to a list
of CourseCatalog objects. |
EnrollmentList |
getEnrollmentsByCatalog(Id courseCatalogId)
Gets the list of
Enrollments associated with a
CourseCatalog. |
EnrollmentList |
getEnrollmentsByCatalogs(IdList courseCatalogIdList)
Gets the list of
Enrollments corresponding to a list of
CourseCatalog objects. |
void |
useComparativeEnrollmentCatalogView()
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 |
usePlenaryEnrollmentCatalogView()
A complete view of the
Enrollment and
CourseCatalog returns is desired. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseboolean canLookupEnrollmentCatalogMappings()
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 useComparativeEnrollmentCatalogView()
mandatory - This method is must be implemented. void usePlenaryEnrollmentCatalogView()
Enrollment 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 getEnrollmentIdsByCatalog(Id courseCatalogId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Enrollment 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. EnrollmentList getEnrollmentsByCatalog(Id courseCatalogId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Enrollments 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 getEnrollmentIdsByCatalogs(IdList courseCatalogIdList) throws OperationFailedException, PermissionDeniedException
Enrollment Ids corresponding to a list
of CourseCatalog objects.courseCatalogIdList - list of course catalog Ids Ids NullArgumentException - courseCatalogIdList
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. EnrollmentList getEnrollmentsByCatalogs(IdList courseCatalogIdList) throws OperationFailedException, PermissionDeniedException
Enrollments corresponding to a list of
CourseCatalog objects.courseCatalogIdList - list of course catalog Ids NullArgumentException - courseCatalogIdList
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. IdList getCatalogIdsByEnrollment(Id enrollmentId) throws NotFoundException, OperationFailedException, PermissionDeniedException
CourseCatalog Ids mapped to an
Enrollment. enrollmentId - Id of an Enrollment NotFoundException - enrollmentId is not
foundNullArgumentException - enrollmentId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. CourseCatalogList getCatalogsByEnrollment(Id enrollmentId) throws NotFoundException, OperationFailedException, PermissionDeniedException
CourseCatalog objects mapped to an
Enrollment. enrollmentId - Id of an Enrollment NotFoundException - enrollmentId is not
foundNullArgumentException - enrollmentId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.