Interface EndpointSearchSession
- All Superinterfaces:
AutoCloseable, Closeable, EndpointQuerySession, OsidSession, OsidSession
This session provides methods for searching among Endpoint
objects. The search query is constructed using the EndpointQuery.
getEndpointsByQuery() is the basic search method and returns a
list of Endpoint objects.A more advanced search may be performed
with getEndpointsBySearch().It accepts a EndpointSearch in
addition to the query for the purpose of specifying additional options
affecting the entire search, such as ordering.
getEndpointsBySearch() returns a EndpointSearchResults that can
be used to access the resulting EndpointList or be used to perform
a search within the result set through EndpointSearch.
Endpoints may have a endpoint query record indicated by their
respective record types. The endpoint query record is accessed via the
EndpointQuery.
-
Method Summary
Modifier and TypeMethodDescriptiongetEndpointQueryFromInspector(EndpointQueryInspector endpointQueryInspector) Gets a endpoint query from an inspector.getEndpointsBySearch(EndpointQuery endpointQuery, EndpointSearch endpointSearch) Gets the search results matching the given search query using the given search.Gets a endpoint search.Gets a endpoint search order.Methods inherited from interface EndpointQuerySession
canSearchEndpoints, getEndpointQuery, getEndpointsByQueryModifier and TypeMethodDescriptionbooleanTests if this user can performEndpointsearches.Gets a endpoint query.getEndpointsByQuery(EndpointQuery endpointQuery) Gets a list ofEndpointsmatching the given endpoint query.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
-
getEndpointSearch
EndpointSearch getEndpointSearch()Gets a endpoint search.- Returns:
- the endpoint search
- Compliance:
mandatory- This method must be implemented.
-
getEndpointSearchOrder
EndpointSearchOrder getEndpointSearchOrder()Gets a endpoint search order. TheEndpointSearchOrderis supplied to aEndpointSearchto specify the ordering of results.- Returns:
- the endpoint search order
- Compliance:
mandatory- This method must be implemented.
-
getEndpointsBySearch
EndpointSearchResults getEndpointsBySearch(EndpointQuery endpointQuery, EndpointSearch endpointSearch) throws OperationFailedException, PermissionDeniedException Gets the search results matching the given search query using the given search.- Parameters:
endpointQuery- the endpoint queryendpointSearch- the endpoint search- Returns:
- the endpoint search results
- Throws:
NullArgumentException-endpointQueryorendpointSearchisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-endpointQueryorendpointSearchis not of this service- Compliance:
mandatory- This method must be implemented.
-
getEndpointQueryFromInspector
Gets a endpoint query from an inspector. The inspector is available from aEndpointSearchResults.- Parameters:
endpointQueryInspector- a endpoint query inspector- Returns:
- the endpoint query
- Throws:
NullArgumentException-endpointQueryInspectorisnullUnsupportedException-endpointQueryInspectoris not of this service- Compliance:
mandatory- This method must be implemented.
-