Interface ValueSearchSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession, ValueQuerySession
This session provides methods for searching Values . The search
query is constructed using the ValueQuery . The parameter
Type also specifies the record for the value query.
getValuesByQuery() is the basic search method and returns a list
of Values . A more advanced search may be performed with
getValuesBySearch() . It accepts a ValueSearch in addition to the
query for the purpose of specifying additional options affecting the
entire search, such as ordering. getValuesBySearch() returns a
ValueSearchResults that can be used to access the resulting
ValueList or be used to perform a search within the result set through
ValueSearch .
Two views of the configuration data are defined;
- federated: values defined in configurations that are a parent of this configuration in the configuration hierarchy are included
- isolated: values are contained to within this configuration
-
Method Summary
Modifier and TypeMethodDescriptiongetValueQueryFromInspector(ValueQueryInspector valueQueryInspector) Gets a value query from an inspector.getValuesBySearch(ValueQuery valueQuery, ValueSearch valueSearch) Gets a list ofValuesmatching the given search query using the given search.Gets a value search.Gets a value 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 ValueQuerySession
canSearchValues, getConfiguration, getConfigurationId, getValueQuery, getValuesByQuery, useFederatedConfigurationView, useIsolatedConfigurationViewModifier and TypeMethodDescriptionbooleanTests if this user can performValuesearches.Gets theConfigurationassociated with this session.Gets theConfigurationIdassociated with this session.Gets a value query.getValuesByQuery(ValueQuery valueQuery) Gets a list ofValuesmatching the given value query.voidFederates the view for methods in this session.voidIsolates the view for methods in this session.
-
Method Details
-
getValueSearch
ValueSearch getValueSearch()Gets a value search.- Returns:
- the value search
- Compliance:
mandatory- This method must be implemented.
-
getValueSearchOrder
ValueSearchOrder getValueSearchOrder()Gets a value search order. TheValueSearchOrderis supplied to aValueSearchto specify the ordering of results.- Returns:
- the value search order
- Compliance:
mandatory- This method must be implemented.
-
getValuesBySearch
ValueSearchResults getValuesBySearch(ValueQuery valueQuery, ValueSearch valueSearch) throws OperationFailedException, PermissionDeniedException Gets a list ofValuesmatching the given search query using the given search.- Parameters:
valueQuery- the value queryvalueSearch- the value search- Returns:
- the serach results
- Throws:
NullArgumentException-valueQueryorvalueSearchisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-valueQueryorvalueSearchis not of this service- Compliance:
mandatory- This method must be implemented.
-
getValueQueryFromInspector
Gets a value query from an inspector. The inspector is available from aValueSearchResults.- Parameters:
valueQueryInspector- a value query inspector- Returns:
- the value query
- Throws:
NullArgumentException-valueQueryInspectorisnullUnsupportedException-valueQueryInspectoris not of this service- Compliance:
mandatory- This method must be implemented.
-