public interface ModuleCourseCatalogSession extends OsidSession
This session provides methods to retrieve Module
to
CourseCatalog
mappings. A Module
may appear
in multiple Course Catalogs.
Each CourseCatalog
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 |
canLookupModuleCourseCatalogMappings()
Tests if this user can perform lookups of module/course catalog
mappings.
|
IdList |
getCourseCatalogIdsByModule(Id moduleId)
Gets the list of
CourseCatalog Ids
mapped to a Module. |
CourseCatalogList |
getCourseCatalogsByModule(Id moduleId)
Gets the list of
CourseCatalog objects mapped to a
Module. |
IdList |
getModuleIdsByCourseCatalog(Id courseCatalogId)
Gets the list of Module Ids associated with an
CourseCatalog. |
IdList |
getModuleIdsByCourseCatalogs(IdList courseCatalogIds)
Gets the list of
Module Ids corresponding to a list of
CourseCatalog objects. |
ModuleList |
getModulesByCourseCatalog(Id courseCatalogId)
Gets the list of
Modules associated with an
CourseCatalog. |
ModuleList |
getModulesByCourseCatalogs(IdList courseCatalogIds)
Gets the list of
Modules corresponding to a list of
Course Catalogs. |
void |
useComparativeCourseCatalogView()
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 |
usePlenaryCourseCatalogView()
A complete view of the
Module and CourseCatalog
returns is desired. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
boolean canLookupModuleCourseCatalogMappings()
PERMISSION_DENIED.
This is intendedas 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 useComparativeCourseCatalogView()
mandatory
- This method is must be implemented. void usePlenaryCourseCatalogView()
Module
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 getModuleIdsByCourseCatalog(Id courseCatalogId) throws NotFoundException, OperationFailedException, PermissionDeniedException
CourseCatalog.
courseCatalogId
- Id
of an CourseCatalog.
Ids
NotFoundException
- courseCatalogId
is
not foundNullArgumentException
- courseCatalogId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. ModuleList getModulesByCourseCatalog(Id courseCatalogId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Modules
associated with an
CourseCatalog.
courseCatalogId
- Id
of an CourseCatalog
NotFoundException
- courseCatalogId
is
not foundNullArgumentException
- courseCatalogId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. IdList getModuleIdsByCourseCatalogs(IdList courseCatalogIds) throws OperationFailedException, PermissionDeniedException
Module 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. ModuleList getModulesByCourseCatalogs(IdList courseCatalogIds) throws OperationFailedException, PermissionDeniedException
Modules
corresponding to a list of
Course Catalogs.
courseCatalogIds
- list of course catalog Ids
NullArgumentException
- courseCatalogIds
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. IdList getCourseCatalogIdsByModule(Id moduleId) throws NotFoundException, OperationFailedException, PermissionDeniedException
CourseCatalog
Ids
mapped to a Module.
moduleId
- Id
of a Module
Ids
NotFoundException
- moduleId
is not
foundNullArgumentException
- moduleId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. CourseCatalogList getCourseCatalogsByModule(Id moduleId) throws NotFoundException, OperationFailedException, PermissionDeniedException
CourseCatalog
objects mapped to a
Module.
moduleId
- Id
of a Module
NotFoundException
- moduleId
is not
foundNullArgumentException
- moduleId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.