Interface AccountSearchSession
- All Superinterfaces:
AccountQuerySession, AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods for searching among Accounts .
The search query is constructed using the AccountQuery .
getAccountsByQuery() is the basic search method and returns a list
of Accounts . A more advanced search may be performed with
getAccountsBySearch() .It accepts an AccountSearch in addition to
the query for the purpose of specifying additional options affecting the
entire search, such as ordering. getAccountsBySearch() returns an
AccountSearchResults that can be used to access the resulting
AccountList or be used to perform a search within the result set
through AccountSearch .
This session defines views that offer differing behaviors for searching.
- federated business view: searches include accounts in businesses of which this business is an ancestor in the business hierarchy
- isolated business view: searches are restricted to accounts in this business
Accounts may have a query record indicated by their respective record
types. The query record is accessed via the AccountQuery .
-
Method Summary
Modifier and TypeMethodDescriptiongetAccountQueryFromInspector(ItemQueryInspector accountQueryInspector) Gets an account query from an inspector.getAccountsBySearch(AccountQuery accountQuery, AccountSearch accountSearch) Gets the search results matching the given search query using the given search.Gets an account search.Gets an activity search order.Methods inherited from interface AccountQuerySession
canSearchAccounts, getAccountQuery, getAccountsByQuery, getBusiness, getBusinessId, useFederatedBusinessView, useIsolatedBusinessViewModifier and TypeMethodDescriptionbooleanTests if this user can performAccountlookups.Gets an account query.getAccountsByQuery(AccountQuery accountsQuery) Gets a list ofAccountsmatching the given account query.Gets theBusinessassociated with this session.Gets theBusinessIdassociated 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
-
getAccountSearch
AccountSearch getAccountSearch()Gets an account search.- Returns:
- the account search
- Compliance:
mandatory- This method must be implemented.
-
getAccountSearchOrder
AccountSearchOrder getAccountSearchOrder()Gets an activity search order. TheAccountSearchOrderis supplied to anAccountSearchto specify the ordering of results.- Returns:
- the account search order
- Compliance:
mandatory- This method must be implemented.
-
getAccountsBySearch
AccountSearchResults getAccountsBySearch(AccountQuery accountQuery, AccountSearch accountSearch) throws OperationFailedException, PermissionDeniedException Gets the search results matching the given search query using the given search.- Parameters:
accountQuery- the account queryaccountSearch- the account search- Returns:
- the account search results
- Throws:
NullArgumentException-accountQueryoraccountSearchisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-accountQueryoraccountSearchis not of this service- Compliance:
mandatory- This method must be implemented.
-
getAccountQueryFromInspector
Gets an account query from an inspector. The inspector is available from anAccountSearchResults.- Parameters:
accountQueryInspector- an account query inspector- Returns:
- the account query
- Throws:
NullArgumentException-accountQueryInspectorisnullUnsupportedException-accountQueryInspectoris not of this service- Compliance:
mandatory- This method must be implemented.
-