public interface SyllabusLookupSession extends OsidSession
This session defines methods for retrieving syllabi.
This lookup session defines several views:
SyllabusAdminSession. The methods useFederatedCourseCatalogView() and
useIsolatedCourseCatalogView() behave as a radio group and one
should be selected before invoking any lookup methods.
| Modifier and Type | Method and Description |
|---|---|
boolean |
canLookupSyllabi()
Tests if this user can lookup syllabi.
|
CourseCatalog |
getCourseCatalog()
Gets the
CourseCatalog associated with this session. |
Id |
getCourseCatalogId()
Gets the
CourseCatalog Id associated
with this session. |
SyllabusList |
getSyllabi()
Gets all syllabi.
|
SyllabusList |
getSyllabiByGenusType(Type syllabusGenusType)
Gets a
SyllabusList corresponding to the given syllabus
genus Type which does not include syllabi of genus
types derived from the specified Type. |
SyllabusList |
getSyllabiByIds(IdList syllabusIds)
Gets a
SyllabusList corresponding to the given
IdList. |
SyllabusList |
getSyllabiByParentGenusType(Type syllabusGenusType)
Gets a
SyllabusList corresponding to the given syllabus
genus Type and include any additional syllabi with
genus types derived from the specified Type. |
SyllabusList |
getSyllabiByRecordType(Type syllabusRecordType)
Gets a
SyllabusList containing the given syllabus
record Type. |
SyllabusList |
getSyllabiForCourse(Id courseId)
Gets a
SyllabusList for the given course . |
Syllabus |
getSyllabus(Id syllabusId)
Gets the
Syllabus specified by its Id. |
void |
useComparativeSyllabusView()
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 |
useFederatedCourseCatalogView()
Federates the view for methods in this session.
|
void |
useIsolatedCourseCatalogView()
Isolates the view for methods in this session.
|
void |
usePlenarySyllabusView()
A complete view of the
Syllabus returns is desired. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseId getCourseCatalogId()
CourseCatalog Id associated
with this session. CourseCatalog Id associated with this
sessionmandatory - This method must be implemented. CourseCatalog getCourseCatalog() throws OperationFailedException, PermissionDeniedException
CourseCatalog associated with this session.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canLookupSyllabi()
PERMISSION_DENIED. This is intended as a hint to an
application that may opt not to offer these operations. false if syllabus lookup methods are not
authorized, true otherwisemandatory - This method must be implemented. void useComparativeSyllabusView()
mandatory - This method is must be implemented. void usePlenarySyllabusView()
Syllabus 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. void useFederatedCourseCatalogView()
mandatory - This method is must be implemented. void useIsolatedCourseCatalogView()
mandatory - This method is must be implemented. Syllabus getSyllabus(Id syllabusId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Syllabus specified by its Id.
In plenary mode, the exact Id is found or a
NOT_FOUND results. Otherwise, the returned Syllabus
may have a different Id than requested, such as
the case where a duplicate Id was assigned to a
Syllabus and retained for compatibility.syllabusId - the Id of the Syllabus
to retrieve Syllabus NotFoundException - no Syllabus found
with the given Id NullArgumentException - syllabusId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. SyllabusList getSyllabiByIds(IdList syllabusIds) throws NotFoundException, OperationFailedException, PermissionDeniedException
SyllabusList corresponding to the given
IdList. In plenary mode, the returned list contains all of the
syllabi specified in the Id list, in the order of the
list, including duplicates, or an error results if an Id
in the supplied list is not found or inaccessible. Otherwise,
inaccessible syllabi may be omitted from the list and may present the
elements in any order including returning a unique set.syllabusIds - the list of Ids to retrieve Syllabus list NotFoundException - an Id was not foundNullArgumentException - syllabusIds is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. SyllabusList getSyllabiByGenusType(Type syllabusGenusType) throws OperationFailedException, PermissionDeniedException
SyllabusList corresponding to the given syllabus
genus Type which does not include syllabi of genus
types derived from the specified Type. In plenary mode,
the returned list contains all known syllabi or an error results.
Otherwise, the returned list may contain only those syllabi that are
accessible through this session.syllabusGenusType - a syllabus genus type Syllabus listNullArgumentException - syllabusGenusType
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. SyllabusList getSyllabiByParentGenusType(Type syllabusGenusType) throws OperationFailedException, PermissionDeniedException
SyllabusList corresponding to the given syllabus
genus Type and include any additional syllabi with
genus types derived from the specified Type. In plenary
mode, the returned list contains all known syllabi or an error
results. Otherwise, the returned list may contain only those syllabi
that are accessible through this session.syllabusGenusType - a syllabus genus type Syllabus listNullArgumentException - syllabusGenusType
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. SyllabusList getSyllabiByRecordType(Type syllabusRecordType) throws OperationFailedException, PermissionDeniedException
SyllabusList containing the given syllabus
record Type. In plenary mode, the returned list
contains all known syllabi or an error results. Otherwise, the
returned list may contain only those syllabi that are accessible
through this session.syllabusRecordType - a syllabus record type Syllabus listNullArgumentException - syllabusRecordType
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. SyllabusList getSyllabiForCourse(Id courseId) throws OperationFailedException, PermissionDeniedException
SyllabusList for the given course .
In plenary mode, the returned list contains all known syllabi
or an error results. Otherwise, the returned list may contain only
those syllabi that are accessible through this session.courseId - a course Id Syllabus listNullArgumentException - courseId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. SyllabusList getSyllabi() throws OperationFailedException, PermissionDeniedException
OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.