Interface FunctionSearchSession
- All Superinterfaces:
AutoCloseable, Closeable, FunctionQuerySession, OsidSession, OsidSession
This session provides methods for searching Function objects.
The search query is constructed using the FunctionQuery . The
function record Type also specifies the record for the function
query.
getFunctionsByQuery() is the basic search method and returns a
list of Functions . A more advanced search may be performed with
getFunctionsBySearch() .It accepts a FunctionSearch in
addition to the query for the purpose of specifying additional options
affecting the entire search, such as ordering.
getFunctionsBySearch() returns an FunctionSearchResults that can
be used to access the resulting FunctionList or be used to perform
a search within the result set through FunctionSearch .
This session defines views that offer differing behaviors for searching.
- federated vault view: searches include functions in vaults of which this vault is a ancestor in the vault hierarchy
- isolated vault view: searches are restricted to functions in this vault
Functions may have a query record indicated by their respective record
types. The query record is accessed via the FunctionQuery .
-
Method Summary
Modifier and TypeMethodDescriptiongetFunctionQueryFromInspector(FunctionQueryInspector functionQueryInspector) Gets a function query from an inspector.getFunctionsBySearch(FunctionQuery functionQuery, FunctionSearch functionSearch) Gets the search results matching the given search query using the given search.Gets a function search.Gets a function search order.Methods inherited from interface FunctionQuerySession
canSearchFunctions, getFunctionQuery, getFunctionsByQuery, getVault, getVaultId, useFederatedVaultView, useIsolatedVaultViewModifier and TypeMethodDescriptionbooleanTests if this user can performFunctionsearches.Gets a function query.getFunctionsByQuery(FunctionQuery functionQuery) Gets a list ofFunctionsmatching the given query.getVault()Gets theVaultassociated with this session.Gets theVaultIdassociated 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
-
getFunctionSearch
FunctionSearch getFunctionSearch()Gets a function search.- Returns:
- the function search
- Compliance:
mandatory- This method must be implemented.
-
getFunctionSearchOrder
FunctionSearchOrder getFunctionSearchOrder()Gets a function search order. TheFunctionSearchOrderis supplied to aFunctionSearchto specify the ordering of results.- Returns:
- the function search order
- Compliance:
mandatory- This method must be implemented.
-
getFunctionsBySearch
FunctionSearchResults getFunctionsBySearch(FunctionQuery functionQuery, FunctionSearch functionSearch) throws OperationFailedException, PermissionDeniedException Gets the search results matching the given search query using the given search.- Parameters:
functionQuery- the function queryfunctionSearch- the function search- Returns:
- the returned search results
- Throws:
NullArgumentException-functionQueryorfunctionSearchisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-functionSearchorfunctionQueryis not of this service- Compliance:
mandatory- This method must be implemented.
-
getFunctionQueryFromInspector
Gets a function query from an inspector. The inspector is available from aFunctionSearchResults.- Parameters:
functionQueryInspector- a function query inspector- Returns:
- the function query
- Throws:
NullArgumentException-functionQueryInspectorisnullUnsupportedException-functionQueryInspectoris not of this service- Compliance:
mandatory- This method must be implemented.
-