Interface SyllabusSearchSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession, SyllabusQuerySession
This session provides methods for searching Syllabi . The
search query is constructed using the SyllabusQuery . The syllabus
record Type also specifies the record for the syllabus query.
getSyllabiByQuery() is the basic search method and returns a list
of CourseCatalog elements. A more advanced search may be performed
with getSyllabiBySearch() . It accepts a SyllabusSearch in
addition to the query for the purpose of specifying additional options
affecting the entire search, such as ordering.
getSyllabiBySearch() returns a SyllabusSearchResults that can be
used to access the resulting SyllabusList or be used to perform a
search within the result set through SyllabusSearch .
Syllabi may have a query record indicated by their respective record
types. The query record is accessed via the SyllabusQuery . The
returns in this session may not be cast directly to these interfaces.
-
Method Summary
Modifier and TypeMethodDescriptiongetSyllabiBySearch(SyllabusQuery syllabusQuery, SyllabusSearch syllabusSearch) Gets the search results matching the given search.getSyllabusQueryFromInspector(SyllabusQueryInspector syllabusQueryInspector) Gets a syllabus query from an inspector.Gets a syllabus search.Gets a syllabus search order.Methods inherited from interface OsidSession
closeMethods inherited from interface OsidSession
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionsModifier and TypeMethodDescriptionGets the agent authenticated to this session.Gets theIdof the agent authenticated to this session.Gets the rate of the service clock.getDate()Gets the service date which may be the current date or the effective date in which this session exists.Gets the effective agent in use by this session.Gets theIdof the effective agent in use by this session.Gets theDisplayTextformatTypepreference in effect for this session.Gets the locale indicating the localization preferences in effect for this session.booleanTests if an agent is authenticated to this session.Starts a new transaction for this sesson.booleanTests for the availability of transactions.Methods inherited from interface SyllabusQuerySession
canSearchSyllabi, getCourseCatalog, getCourseCatalogId, getSyllabiByQuery, getSyllabusQuery, useFederatedCourseCatalogView, useIsolatedCourseCatalogViewModifier and TypeMethodDescriptionbooleanTests if this user can perform susbcription searches.Gets theCourseCatalogassociated with this session.Gets theCourseCatalogIdassociated with this session.getSyllabiByQuery(SyllabusQuery syllabusQuery) Gets a list of syllabi matching the given syllabus query.Gets a syllabus query.voidFederates the view for methods in this session.voidIsolates the view for methods in this session.
-
Method Details
-
getSyllabusSearch
SyllabusSearch getSyllabusSearch()Gets a syllabus search.- Returns:
- the syllabus search
- Compliance:
mandatory- This method must be implemented.
-
getSyllabusSearchOrder
SyllabusSearchOrder getSyllabusSearchOrder()Gets a syllabus search order. TheSyllabusSearchOrderis supplied to aSyllabusSearchto specify the ordering of results.- Returns:
- the syllabus search order interface
- Compliance:
mandatory- This method must be implemented.
-
getSyllabiBySearch
SyllabusSearchResults getSyllabiBySearch(SyllabusQuery syllabusQuery, SyllabusSearch syllabusSearch) throws OperationFailedException, PermissionDeniedException Gets the search results matching the given search.- Parameters:
syllabusQuery- the syllabus querysyllabusSearch- the syllabus search- Returns:
- the syllabus search results
- Throws:
NullArgumentException-syllabusQueryorsyllabusSearchisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-syllabusQueryorsyllabusSearchis not of this service- Compliance:
mandatory- This method must be implemented.
-
getSyllabusQueryFromInspector
Gets a syllabus query from an inspector. The inspector is available from aSyllabusSearchResults.- Parameters:
syllabusQueryInspector- a syllabus query inspector- Returns:
- the syllabus query
- Throws:
NullArgumentException-syllabusQueryInspectorisnullUnsupportedException-syllabusQueryInspectoris not of this service- Compliance:
mandatory- This method must be implemented.
-