OSID Logo
OSID Specifications
financials package
Version 3.0.0
Release Candidate Preview
Interfaceosid.financials.SummaryQuery
Implementsosid.OsidCompendiumQuery
Description

This is the query for searching summaries. Each method match specifies an AND term while multiple invocations of the same method produce a nested OR.

MethodmatchAccountId
Description

Matches an account Id.

Parametersosid.id.IdaccountIdan account Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT accountId is null
CompliancemandatoryThis method must be implemented.
MethodclearAccountIdTerms
Description

Clears the account Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsAccountQuery
Description

Tests if an AccountQuery is available.

Returnboolean true if an account query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetAccountQuery
Description

Gets the query for an account. Multiple retrievals produce a nested OR term.

Returnosid.financials.AccountQuerythe account query
ErrorsUNIMPLEMENTED supportsAccountQuery() is false
ComplianceoptionalThis method must be implemented if supportsAccountQuery() is true.
MethodclearAccountTerms
Description

Clears the account terms.

CompliancemandatoryThis method must be implemented.
MethodmatchFiscalPeriodId
Description

Sets the fiscal period Id for this query.

Parametersosid.id.IdfiscalPeriodIda fiscal period Id
booleanmatch true if a positive match, false for a negative match
ErrorsNULL_ARGUMENT fiscalPeriodId is null
CompliancemandatoryThis method must be implemented.
MethodclearFiscalPeriodIdTerms
Description

Clears the fiscal period Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsFiscalPeriodQuery
Description

Tests if a FiscalPeriodQuery is available.

Returnboolean true if a fiscal period query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetFiscalPeriodQuery
Description

Gets the query for a fiscal period. Multiple retrievals produce a nested OR term.

Returnosid.financials.FiscalPeriodQuerythe fiscal period query
ErrorsUNIMPLEMENTED supportsFiscalPeriodQuery() is false
ComplianceoptionalThis method must be implemented if supportsFiscalPeriodQuery() is true.
MethodclearFiscalPeriodTerms
Description

Clears the fiscal period query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchCredits
Description

Matches credits within the given range inclusive.

Parametersosid.financials.Currencyfromstart of range
osid.financials.Currencytoend of range
booleanmatch true if a positive match, false for a negative match
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT from or to is null
CompliancemandatoryThis method must be implemented.
MethodclearCreditsTerms
Description

Clears the credits terms.

CompliancemandatoryThis method must be implemented.
MethodmatchDebits
Description

Matches debits within the given range inclusive.

Parametersosid.financials.Currencyfromstart of range
osid.financials.Currencytoend of range
booleanmatch true if a positive match, false for a negative match
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT from or to is null
CompliancemandatoryThis method must be implemented.
MethodclearDebitsTerms
Description

Clears the debits terms.

CompliancemandatoryThis method must be implemented.
MethodmatchBalance
Description

Matches summaries with a delta between debits and credits.

Parametersdecimalfromstart of range
decimaltoend of range
booleanmatch true if a positive match, false for a negative match
ErrorsINVALID_ARGUMENT from is greater than to
CompliancemandatoryThis method must be implemented.
MethodclearBalanceTerms
Description

Clears the balance terms.

CompliancemandatoryThis method must be implemented.
MethodmatchBudget
Description

Matches a budget within the given range inclusive.

Parametersosid.financials.Currencyfromstart of range
osid.financials.Currencytoend of range
booleanmatch true if a positive match, false for a negative match
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT from or to is null
CompliancemandatoryThis method must be implemented.
MethodclearBudgetTerms
Description

Clears the budget terms.

CompliancemandatoryThis method must be implemented.
MethodmatchDelta
Description

Matches summaries with a delta between the balance and the budget.

Parametersdecimalfromstart of range
decimaltoend of range
booleanmatch true if a positive match, false for a negative match
ErrorsINVALID_ARGUMENT from is greater than to
CompliancemandatoryThis method must be implemented.
MethodclearDeltaTerms
Description

Clears the delta terms.

CompliancemandatoryThis method must be implemented.
MethodmatchForecast
Description

Matches a forecast within the given range inclusive.

Parametersosid.financials.Currencyfromstart of range
osid.financials.Currencytoend of range
booleanmatch true if a positive match, false for a negative match
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT from or to is null
CompliancemandatoryThis method must be implemented.
MethodclearForecastTerms
Description

Clears the forecast terms.

CompliancemandatoryThis method must be implemented.
MethodgetSummaryQueryRecord
Description

Gets the summary query record corresponding to the given Summary record Type. Multiple record retrievals produce a nested OR term.

Parametersosid.type.TypesummaryRecordTypea summary record type
Returnosid.financials.records.SummaryQueryRecordthe summary query record
ErrorsNULL_ARGUMENT summaryRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(summaryRecordType) is false
CompliancemandatoryThis method must be implemented.