Interface QueueSearchSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession, QueueQuerySession
This session provides methods for searching among Queue
objects. The search query is constructed using the QueueQuery .
getQueuesByQuery() is the basic search method and returns a list
of Queues . A more advanced search may be performed with
getQueuesBySearch() . It accepts a QueueSearch in addition to the
query for the purpose of specifying additional options affecting the
entire search, such as ordering. getQueuesBySearch() returns a
QueueSearchResults that can be used to access the resulting
QueueList or be used to perform a search within the result set through
QueueSearch .
This session defines views that offer differing behaviors for searching.
- federated front office view: searches include queues in front offices of which this front office is an ancestor in the front office hierarchy
- isolated front office view: searches are restricted to queues in this frontOffice
Queues may have a query record indicated by their respective record
types. The query record is accessed via the QueueQuery .
-
Method Summary
Modifier and TypeMethodDescriptiongetQueueQueryFromInspector(QueueQueryInspector queueQueryInspector) Gets a queue query from an inspector.getQueuesBySearch(QueueQuery queueQuery, QueueSearch queueSearch) Gets the search results matching the given search query using the given search.Gets a queue search.Gets a queue 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 QueueQuerySession
canSearchQueues, getFrontOffice, getFrontOfficeId, getQueueQuery, getQueuesByQuery, useFederatedFrontOfficeView, useIsolatedFrontOfficeViewModifier and TypeMethodDescriptionbooleanTests if this user can performQueuelookups.Gets theFrontOfficeassociated with this session.Gets theFrontOfficeIdassociated with this session.Gets a queue query.getQueuesByQuery(QueueQuery queueQuery) Gets a list ofQueuesmatching the given queue query.voidFederates the view for methods in this session.voidIsolates the view for methods in this session.
-
Method Details
-
getQueueSearch
QueueSearch getQueueSearch()Gets a queue search.- Returns:
- the queue search
- Compliance:
mandatory- This method must be implemented.
-
getQueueSearchOrder
QueueSearchOrder getQueueSearchOrder()Gets a queue search order. TheQueueSearchOrderis supplied to aQueueSearchto specify the ordering of results.- Returns:
- the queue search order
- Compliance:
mandatory- This method must be implemented.
-
getQueuesBySearch
QueueSearchResults getQueuesBySearch(QueueQuery queueQuery, QueueSearch queueSearch) throws OperationFailedException, PermissionDeniedException Gets the search results matching the given search query using the given search.- Parameters:
queueQuery- the queue queryqueueSearch- the queue search- Returns:
- the returned search results
- Throws:
NullArgumentException-queueQueryorqueueSearchisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-queueQueryorqueueSearchis not of this service- Compliance:
mandatory- This method must be implemented.
-
getQueueQueryFromInspector
Gets a queue query from an inspector. The inspector is available from aQueueSearchResults.- Parameters:
queueQueryInspector- a queue query inspector- Returns:
- the queue query
- Throws:
NullArgumentException-queueQueryInspectorisnullUnsupportedException-queueQueryInspectoris not of this service- Compliance:
mandatory- This method must be implemented.
-