Interface BudgetSearchSession
- All Superinterfaces:
AutoCloseable, BudgetQuerySession, Closeable, OsidSession, OsidSession
This session provides methods for searching among Budgets . The
search query is constructed using the BudgetQuery .
getBudgetsByQuery() is the basic search method and returns a list
of Budgets . A more advanced search may be performed with
getBudgetsBySearch() .It accepts a BudgetSearch in addition to
the query for the purpose of specifying additional options affecting the
entire search, such as ordering. getBudgetsBySearch() returns a
BudgetSearchResults that can be used to access the resulting
BudgetList or be used to perform a search within the result set
through BudgetSearch .
This session defines views that offer differing behaviors for searching.
- federated business view: searches include budgets in businesses of which this business is an ancestor in the business hierarchy
- isolated business view: searches are restricted to budgets in this business
Budgets may have a query record indicated by their respective record
types. The queryrecord is accessed via the BudgetQuery .
-
Method Summary
Modifier and TypeMethodDescriptiongetBudgetQueryFromInspector(ItemQueryInspector budgetQueryInspector) Gets a budget query from an inspector.getBudgetsBySearch(BudgetQuery budgetQuery, BudgetSearch budgetSearch) Gets the search results matching the given search query using the given search.Gets a budget search.Gets a budget search order.Methods inherited from interface BudgetQuerySession
canSearchBudgets, getBudgetQuery, getBudgetsByQuery, getBusiness, getBusinessId, useFederatedBusinessView, useIsolatedBusinessViewModifier and TypeMethodDescriptionbooleanTests if this user can performBudgetlookups.Gets a budget query.getBudgetsByQuery(BudgetQuery budgetQuery) Gets a list ofBudgetsmatching the given budget 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
-
getBudgetSearch
BudgetSearch getBudgetSearch()Gets a budget search.- Returns:
- the budget search
- Compliance:
mandatory- This method must be implemented.
-
getBudgetSearchOrder
BudgetSearchOrder getBudgetSearchOrder()Gets a budget search order. TheBudgetSearchOrderis supplied to aBudgetSearchto specify the ordering of results.- Returns:
- the budget search order
- Compliance:
mandatory- This method must be implemented.
-
getBudgetsBySearch
BudgetSearchResults getBudgetsBySearch(BudgetQuery budgetQuery, BudgetSearch budgetSearch) throws OperationFailedException, PermissionDeniedException Gets the search results matching the given search query using the given search.- Parameters:
budgetQuery- the budget querybudgetSearch- the budget search- Returns:
- the budget search results
- Throws:
NullArgumentException-budgetQueryorbudgetSearchisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-budgetQueryorbudgetSearchis not of this service- Compliance:
mandatory- This method must be implemented.
-
getBudgetQueryFromInspector
Gets a budget query from an inspector. The inspector is available from aBudgetSearchResults.- Parameters:
budgetQueryInspector- a budget query inspector- Returns:
- the budget query
- Throws:
NullArgumentException-budgetQueryInspectorisnullUnsupportedException-budgetQueryInspectoris not of this service- Compliance:
mandatory- This method must be implemented.
-