Interface ControllerSearchSession
- All Superinterfaces:
AutoCloseable, Closeable, ControllerQuerySession, OsidSession, OsidSession
This session provides methods for searching among Controllers .
The search query is constructed using the ControlleryQuery .
getControllersByQuery() is the basic search method and returns a
list of Controllers . A more advanced search may be performed with
getControllersBySearch() .It accepts a ControllerSearch in
addition to the query for the purpose of specifying additional options
affecting the entire search, such as ordering.
getControllersBySearch() returns a ControllerSearchResults that
can be used to access the resulting ControllerList or be used to
perform a search within the result set through ControllerSearch .
This session defines views that offer differing behaviors for searching.
- federated trigger view: searches include controllers in triggers of which this trigger is an ancestor in the trigger hierarchy
- isolated trigger view: searches are restricted to controllers in this trigger
Controllers may have a controller record indicated by their respective
record types. The controller record is accessed via the
ControllerQuery .
-
Method Summary
Modifier and TypeMethodDescriptiongetControllerQueryFromInspector(ControllerQueryInspector controllerQueryInspector) Gets a controller query from an inspector.getControllersBySearch(ControllerQuery controllerQuery, ControllerSearch controllerSearch) Gets the search results matching the given search query using the given search.Gets a controller search.Gets a controller search order.Methods inherited from interface ControllerQuerySession
canSearchControllers, getControllerQuery, getControllersByQuery, getSystem, getSystemId, useFederatedSystemView, useIsolatedSystemViewModifier and TypeMethodDescriptionbooleanTests if this user can performControllerlookups.Gets a controller query.getControllersByQuery(ControllerQuery controllerQuery) Gets a list ofControllersmatching the given controller query.Gets theSystemassociated with this session.Gets theSystemIdassociated 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
-
getControllerSearch
ControllerSearch getControllerSearch()Gets a controller search.- Returns:
- the controller search
- Compliance:
mandatory- This method must be implemented.
-
getControllerSearchOrder
ControllerSearchOrder getControllerSearchOrder()Gets a controller search order. TheControllerSearchOrderis supplied to aControllerSearchto specify the ordering of results.- Returns:
- the controller search order
- Compliance:
mandatory- This method must be implemented.
-
getControllersBySearch
ControllerSearchResults getControllersBySearch(ControllerQuery controllerQuery, ControllerSearch controllerSearch) throws OperationFailedException, PermissionDeniedException Gets the search results matching the given search query using the given search.- Parameters:
controllerQuery- the controller querycontrollerSearch- the controller search- Returns:
- the controller search results
- Throws:
NullArgumentException-controllerQueryorcontrollerSearchisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-controllerQueryorcontrollerSearchis not of this service- Compliance:
mandatory- This method must be implemented.
-
getControllerQueryFromInspector
Gets a controller query from an inspector. The inspector is available from aControllerSearchResults.- Parameters:
controllerQueryInspector- a controller query inspector- Returns:
- the controller query
- Throws:
NullArgumentException-controllerQueryInspectorisnullUnsupportedException-controllerQueryInspectoris not of this service- Compliance:
mandatory- This method must be implemented.
-