Interface StateSearchSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession, StateQuerySession
This session provides methods for searching among State
objects. The search query is constructed using the StateQuery .
getStatesByQuery() is the basic search method and returns a list
of States . A more advanced search may be performed with
getStatesBySearch() . It accepts an StateSearch in addition to
the query for the purpose of specifying additional options affecting the
entire search, such as ordering. getStatesBySearch() returns an
StateSearchResults that can be used to access the resulting
StateList or be used to perform a search within the result set through
StateList .
This session defines views that offer differing behaviors for searching.
- federated process view: searches include states in processes of which this process is a ancestor in the process hierarchy
- isolated process view: searches are restricted to states in this process
States may have a query record indicated by their respective record
types. The query record is accessed via the StateQuery .
-
Method Summary
Modifier and TypeMethodDescriptiongetStateQueryFromInspector(StateQueryInspector stateQueryInspector) Gets a state query from an inspector.getStatesBySearch(StateQuery stateQuery, StateSearch stateSearch) Gets the search results matching the given search query using the given search.Gets a state search.Gets a state 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 StateQuerySession
canSearchStates, getProcess, getProcessId, getStateQuery, getStatesByQuery, useFederatedProcessView, useIsolatedProcessViewModifier and TypeMethodDescriptionbooleanTests if this user can performStatesearches.Gets theProcessassociated with this session.Gets theProcessIdassociated with this session.Gets a state query.getStatesByQuery(StateQuery stateQuery) Gets a list ofStatesmatching the given state query.voidFederates the view for methods in this session.voidIsolates the view for methods in this session.
-
Method Details
-
getStateSearch
StateSearch getStateSearch()Gets a state search.- Returns:
- the state search
- Compliance:
mandatory- This method must be implemented.
-
getStateSearchOrder
StateSearchOrder getStateSearchOrder()Gets a state search order. TheStateSearchOrderis supplied to aStateSearchto specify the ordering of results.- Returns:
- the state search order
- Compliance:
mandatory- This method must be implemented.
-
getStatesBySearch
StateSearchResults getStatesBySearch(StateQuery stateQuery, StateSearch stateSearch) throws OperationFailedException, PermissionDeniedException Gets the search results matching the given search query using the given search.- Parameters:
stateQuery- the state querystateSearch- the state search- Returns:
- the state search results
- Throws:
NullArgumentException-stateQueryorstateSearchisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-stateQueryorstateSearchis not of this service- Compliance:
mandatory- This method must be implemented.
-
getStateQueryFromInspector
Gets a state query from an inspector. The inspector is available from aStateSearchResults.- Parameters:
stateQueryInspector- a state inspector- Returns:
- the state query
- Throws:
NullArgumentException-stateQueryInspectorisnullUnsupportedException-stateQueryInspectoris not of this service- Compliance:
mandatory- This method must be implemented.
-