public interface TermCourseCatalogSession extends OsidSession
This session provides methods to retrieve Term
to
CourseCatalog
mappings. A Term
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 |
canLookupTermCourseCatalogMappings()
Tests if this user can perform lookups of term/course catalog
mappings.
|
IdList |
getCourseCatalogIdsByTerm(Id termId)
Gets the
CourseCatalog Ids mapped to a
Term. |
CourseCatalogList |
getCourseCatalogsByTerm(Id termId)
Gets the
CourseCatalog objects mapped to a Term. |
IdList |
getTermIdsByCourseCatalog(Id courseCatalogId)
Gets the list of
Term Ids associated with a
CourseCatalog. |
IdList |
getTermIdsByCourseCatalogs(IdList courseCatalogIds)
Gets the list of
Term Ids corresponding to a list of
CourseCatalog objects. |
TermList |
getTermsByCourseCatalog(Id courseCatalogId)
Gets the list of
Term associated with a
CourseCatalog. |
TermList |
getTermsByCourseCatalogs(IdList courseCatalogIds)
Gets the list of
Terms corresponding to a list of
CourseCatalog objects. |
void |
useComparativeTermCourseCatalogView()
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 |
usePlenaryTermCatalogView()
A complete view of the
Term and CourseCatalog
returns is desired. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
boolean canLookupTermCourseCatalogMappings()
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 useComparativeTermCourseCatalogView()
mandatory
- This method is must be implemented. void usePlenaryTermCatalogView()
Term
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 getTermIdsByCourseCatalog(Id courseCatalogId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Term 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. TermList getTermsByCourseCatalog(Id courseCatalogId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Term
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 getTermIdsByCourseCatalogs(IdList courseCatalogIds) throws OperationFailedException, PermissionDeniedException
Term Ids
corresponding to a list of
CourseCatalog
objects.courseCatalogIds
- list of catalog Ids
Ids
NullArgumentException
- courseCatalogIds
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. TermList getTermsByCourseCatalogs(IdList courseCatalogIds) throws OperationFailedException, PermissionDeniedException
Terms
corresponding to a list of
CourseCatalog
objects.courseCatalogIds
- list of catalog Ids
NullArgumentException
- courseCatalogIds
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. IdList getCourseCatalogIdsByTerm(Id termId) throws NotFoundException, OperationFailedException, PermissionDeniedException
CourseCatalog
Ids
mapped to a
Term.
termId
- Id
of a Term
NotFoundException
- termId
is not foundNullArgumentException
- termId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. CourseCatalogList getCourseCatalogsByTerm(Id termId) throws NotFoundException, OperationFailedException, PermissionDeniedException
CourseCatalog
objects mapped to a Term.
termId
- Id
of a Term
NotFoundException
- termId
is not foundNullArgumentException
- termId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.