public interface ProgramOfferingCourseCatalogSession extends OsidSession
This session provides methods to retrieve ProgramOffering
to CourseCatalog
mappings. A ProgramOffering
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 |
canLookupProgramOfferingCourseCatalogMappings()
Tests if this user can perform lookups of program offering/course
catalog mappings.
|
IdList |
getCourseCatalogIdsByProgramOffering(Id programOfferingId)
Gets the
CourseCatalog Ids mapped to a
ProgramOffering. |
CourseCatalogList |
getCourseCatalogsByProgramOffering(Id programOfferingId)
Gets the
CourseCatalogs mapped to a
ProgramOffering. |
IdList |
getProgramOfferingIdsByCourseCatalog(Id courseCatalogId)
Gets the list of
ProgramOffering Ids associated with a
CourseCatalog. |
IdList |
getProgramOfferingIdsByCourseCatalogs(IdList courseCatalogIds)
Gets the list of
ProgramOffering Ids corresponding to a
list of CourseCatalog objects. |
ProgramOfferingList |
getProgramOfferingsByCourseCatalog(Id courseCatalogId)
Gets the list of
ProgramOfferings associated with a
CourseCatalog. |
ProgramOfferingList |
getProgramOfferingsByCourseCatalogs(IdList courseCatalogIds)
Gets the list of
ProgramOfferings corresponding to a
list of CourseCatalog objects. |
void |
useComparativeProgramOfferingCourseCatalogView()
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 |
usePlenaryProgramOfferingCourseCatalogView()
A complete view of the
ProgramOffering and
CourseCatalog returns is desired. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
boolean canLookupProgramOfferingCourseCatalogMappings()
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 useComparativeProgramOfferingCourseCatalogView()
mandatory
- This method is must be implemented. void usePlenaryProgramOfferingCourseCatalogView()
ProgramOffering
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 getProgramOfferingIdsByCourseCatalog(Id courseCatalogId) throws NotFoundException, OperationFailedException, PermissionDeniedException
ProgramOffering 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. ProgramOfferingList getProgramOfferingsByCourseCatalog(Id courseCatalogId) throws NotFoundException, OperationFailedException, PermissionDeniedException
ProgramOfferings
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 getProgramOfferingIdsByCourseCatalogs(IdList courseCatalogIds) throws OperationFailedException, PermissionDeniedException
ProgramOffering 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. ProgramOfferingList getProgramOfferingsByCourseCatalogs(IdList courseCatalogIds) throws OperationFailedException, PermissionDeniedException
ProgramOfferings
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 getCourseCatalogIdsByProgramOffering(Id programOfferingId) throws NotFoundException, OperationFailedException, PermissionDeniedException
CourseCatalog
Ids
mapped to a
ProgramOffering.
programOfferingId
- Id
of a
ProgramOffering
NotFoundException
- programOfferingId
is
not foundNullArgumentException
- programOfferingId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. CourseCatalogList getCourseCatalogsByProgramOffering(Id programOfferingId) throws NotFoundException, OperationFailedException, PermissionDeniedException
CourseCatalogs
mapped to a
ProgramOffering.
programOfferingId
- Id
of a
ProgramOffering
NotFoundException
- programOfferingId
is
not foundNullArgumentException
- programOfferingId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.