Interface CanonicalUnitSearchSession
- All Superinterfaces:
AutoCloseable, CanonicalUnitQuerySession, Closeable, OsidSession, OsidSession
This session provides methods for searching CanonicalUnits .
The search query is constructed using the CanonicalUnitQuery . The
canonical unit record Type also specifies the record for the
canonical unit query.
getCanonicalUnitsByQuery() is the basic search method and returns
a list of CanonicalUnit elements. A more advanced search may be
performed with getCanonicalUnitsBySearch() . It accepts a
CanonicalUnitSearch in addition to the query for the purpose of
specifying additional options affecting the entire search, such as
ordering. getCanonicalUnitsBySearch() returns a
CanonicalUnitSearchResults that can be used to access the resulting
CanonicalUnitList or be used to perform a search within the result
set through CanonicalUnitSearch .
This session defines views that offer differing behaviors for searching.
- federated catalogue view: searches include canonical units in catalogues of which this catalogue is an ancestor in the catalogue hierarchy
- isolated catalogue view: searches are restricted to canonical units in this catalogue
CanonicalUnits may have a query record indicated by their respective
record types. The query record is accessed via the
CanonicalUnitQuery . The returns in this session may not be cast directly
to these interfaces.
-
Method Summary
Modifier and TypeMethodDescriptiongetCanonicalUnitQueryFromInspector(CanonicalUnitQueryInspector canonicalUnitQueryInspector) Gets a canonical unit query from an inspector.getCanonicalUnitsBySearch(CanonicalUnitQuery canonicalUnitQuery, CanonicalUnitSearch canonicalUnitSearch) Gets the search results matching the given search.Gets a canonical unit search.Gets a canonical unit search order.Methods inherited from interface CanonicalUnitQuerySession
canSearchCanonicalUnits, getCanonicalUnitQuery, getCanonicalUnitsByQuery, getCatalogue, getCatalogueId, useFederatedCatalogueView, useIsolatedCatalogueViewModifier and TypeMethodDescriptionbooleanTests if this user can performCanonicalUnitsearches.Gets a canonical unit query.getCanonicalUnitsByQuery(CanonicalUnitQuery canonicalUnitQuery) Gets a list of canonical units matching the given canonical unit query.Gets theCatalogueassociated with this session.Gets theCatalogueIdassociated with this session.voidFederates the view for methods in this session.voidIsolates the view for methods in this session.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.
-
Method Details
-
getCanonicalUnitSearch
CanonicalUnitSearch getCanonicalUnitSearch()Gets a canonical unit search.- Returns:
- the canonical unit search
- Compliance:
mandatory- This method must be implemented.
-
getCanonicalUnitSearchOrder
CanonicalUnitSearchOrder getCanonicalUnitSearchOrder()Gets a canonical unit search order. TheCanonicalUnitSearchOrderis supplied to aCanonicalUnitSearchto specify the ordering of results.- Returns:
- the canonical unit search order
- Compliance:
mandatory- This method must be implemented.
-
getCanonicalUnitsBySearch
CanonicalUnitSearchResults getCanonicalUnitsBySearch(CanonicalUnitQuery canonicalUnitQuery, CanonicalUnitSearch canonicalUnitSearch) throws OperationFailedException, PermissionDeniedException Gets the search results matching the given search.- Parameters:
canonicalUnitQuery- the canonical unit querycanonicalUnitSearch- the canonical unit search- Returns:
- the search results
- Throws:
NullArgumentException-canonicalUnitQueryorcanonicalUnitSearchisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-canonicalUnitQueryorcanonicalUnitSearchis not of this service- Compliance:
mandatory- This method must be implemented.
-
getCanonicalUnitQueryFromInspector
CanonicalUnitQuery getCanonicalUnitQueryFromInspector(CanonicalUnitQueryInspector canonicalUnitQueryInspector) Gets a canonical unit query from an inspector. The inspector is available from aCanonicalUnitSearchResults.- Parameters:
canonicalUnitQueryInspector- a canonical unit query inspector- Returns:
- the canonical unit query
- Throws:
NullArgumentException-canonicalUnitQueryInspectorisnullUnsupportedException-canonicalUnitQueryInspectoris not of this service- Compliance:
mandatory- This method must be implemented.
-