Interface AvailabilitySearchSession
- All Superinterfaces:
AutoCloseable, AvailabilityQuerySession, Closeable, OsidSession, OsidSession
This session provides methods for searching among Availability
objects. The search query is constructed using the
AvailabilityQuery .
getAvailabilitiesByQuery() is the basic search method and returns
a list of Availabilities . A more advanced search may be performed
with getAvailabilitiesBySearch() .It accepts an
AvailabilitySearch in addition to the query for the purpose of specifying
additional options affecting the entire search, such as ordering.
getAvailabilitiesBySearch() returns an AvailabilitySearchResults
that can be used to access the resulting AvailabilityList or be
used to perform a search within the result set through
AvailabilitySearch .
This session defines views that offer differing behaviors for searching.
- federated foundry view: searches include availabilities in foundries of which this foundry is an ancestor in the foundry hierarchy
- isolated foundry view: searches are restricted to availabilities in this foundry
Availabilitys may have a query record indicated by their respective
record types. The query record is accessed via the
AvailabilityQuery .
-
Method Summary
Modifier and TypeMethodDescriptiongetAvailabilitiesBySearch(AvailabilityQuery availabilityQuery, AvailabilitySearch availabilitySearch) Gets the search results matching the given search query using the given search.getAvailabilityQueryFromInspector(AvailabilityQueryInspector availabilityQueryInspector) Gets an availability query from an inspector.Gets an availability search.Gets an availability search order.Methods inherited from interface AvailabilityQuerySession
canSearchAvailabilities, getAvailabilitiesByQuery, getAvailabilityQuery, getFoundry, getFoundryId, useFederatedFoundryView, useIsolatedFoundryViewModifier and TypeMethodDescriptionbooleanTests if this user can performAvailabilitylookups.getAvailabilitiesByQuery(AvailabilityQuery availabilityQuery) Gets a list ofAvailabilitiesmatching the given availability query.Gets an availability query.Gets theFoundryassociated with this session.Gets theFoundryIdassociated 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
-
getAvailabilitySearch
AvailabilitySearch getAvailabilitySearch()Gets an availability search.- Returns:
- the availability search
- Compliance:
mandatory- This method must be implemented.
-
getAvailabilitySearchOrder
AvailabilitySearchOrder getAvailabilitySearchOrder()Gets an availability search order. TheAvailabilitySearchOrderis supplied to anAvailabilitySearchto specify the ordering of results.- Returns:
- the availability search order
- Compliance:
mandatory- This method must be implemented.
-
getAvailabilitiesBySearch
AvailabilitySearchResults getAvailabilitiesBySearch(AvailabilityQuery availabilityQuery, AvailabilitySearch availabilitySearch) throws OperationFailedException, PermissionDeniedException Gets the search results matching the given search query using the given search.- Parameters:
availabilityQuery- the availability queryavailabilitySearch- the availability search- Returns:
- the returned search results
- Throws:
NullArgumentException-availabilityQueryoravailabilitySearchisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-availabilityQueryoravailabilitySearchis not of this service- Compliance:
mandatory- This method must be implemented.
-
getAvailabilityQueryFromInspector
AvailabilityQuery getAvailabilityQueryFromInspector(AvailabilityQueryInspector availabilityQueryInspector) Gets an availability query from an inspector. The inspector is available from anAvailabilitySearchResults.- Parameters:
availabilityQueryInspector- an availability query inspector- Returns:
- the availability query
- Throws:
NullArgumentException-availabilityQueryInspectorisnullUnsupportedException-availabilityQueryInspectoris not of this service- Compliance:
mandatory- This method must be implemented.
-