OSID Logo
OSID Specifications
billing package
Version 3.0.0
Interfaceosid.billing.PeriodQuery
Implementsosid.OsidObjectQuery
Used Byosid.billing.BusinessQuery
osid.billing.EntryQuery
osid.billing.PeriodQuerySession
osid.billing.PeriodSearchSession
osid.billing.PeriodSmartBusinessSession
osid.billing.payment.PaymentQuery
Description

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

MethodmatchDisplayLabel
Description

Adds a display label for this query.

Parametersstringlabellabel string to match
osid.type.TypestringMatchTypethe label match type
booleanmatchtrue for a positive match, false for a negative match
ErrorsINVALID_ARGUMENTlabel not of stringMatchType
NULL_ARGUMENTlabel or stringMatchType is null
UNSUPPORTEDsupportsStringMatchType(stringMatchType) is false
CompliancemandatoryThis method must be implemented.
MethodmatchAnyDisplayLabel
Description

Matches a display label that has any value.

Parametersbooleanmatchtrue to match customers with any label, false to match assets with no title
CompliancemandatoryThis method must be implemented.
MethodclearDisplayLabelTerms
Description

Clears the display label query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchOpenDate
Description

Matches the open date between the given range inclusive.

Parametersosid.calendaring.DateTimelowlow date range
osid.calendaring.DateTimehighhigh date range
booleanmatchtrue for a positive match, false for a negative match
ErrorsINVALID_ARGUMENThigh is less than low
CompliancemandatoryThis method must be implemented.
MethodmatchAnyOpenDate
Description

Matches a period that has any open date assigned.

Parametersbooleanmatchtrue to match periods with any open date, false to match events with no open date
CompliancemandatoryThis method must be implemented.
MethodclearOpenDateTerms
Description

Clears the open date query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchCloseDate
Description

Matches the close date between the given range inclusive.

Parametersosid.calendaring.DateTimelowlow date range
osid.calendaring.DateTimehighhigh date range
booleanmatchtrue for a positive match, false for a negative match
ErrorsINVALID_ARGUMENThigh is less than low
CompliancemandatoryThis method must be implemented.
MethodmatchAnyCloseDate
Description

Matches a period that has any close date assigned.

Parametersbooleanmatchtrue to match periods with any close date, false to match events with no close date
CompliancemandatoryThis method must be implemented.
MethodclearCloseDateTerms
Description

Clears the close date query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchBillingDate
Description

Matches the billing date between the given range inclusive.

Parametersosid.calendaring.DateTimelowlow date range
osid.calendaring.DateTimehighhigh date range
booleanmatchtrue for a positive match, false for a negative match
ErrorsINVALID_ARGUMENThigh is less than low
CompliancemandatoryThis method must be implemented.
MethodmatchAnyBillingDate
Description

Matches a period that has any billing date assigned.

Parametersbooleanmatchtrue to match periods with any billing date, false to match events with no billing date
CompliancemandatoryThis method must be implemented.
MethodclearBillingDateTerms
Description

Clears the billing date query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchDueDate
Description

Matches the due date between the given range inclusive.

Parametersosid.calendaring.DateTimelowlow date range
osid.calendaring.DateTimehighhigh date range
booleanmatchtrue for a positive match, false for a negative match
ErrorsINVALID_ARGUMENThigh is less than low
CompliancemandatoryThis method must be implemented.
MethodmatchAnyDueDate
Description

Matches a period that has any due date assigned.

Parametersbooleanmatchtrue to match periods with any due date, false to match events with no due date
CompliancemandatoryThis method must be implemented.
MethodclearDueDateTerms
Description

Clears the due date query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchBusinessId
Description

Sets the business Id for this query to match periods assigned to businesses.

Parametersosid.id.IdbusinessIdthe business Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTbusinessId is null
CompliancemandatoryThis method must be implemented.
MethodclearBusinessIdTerms
Description

Clears the business Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsBusinessQuery
Description

Tests if a BusinessQuery is available.

Returnbooleantrue if a business query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetBusinessQuery
Description

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

Returnosid.billing.BusinessQuerythe business query
ErrorsUNIMPLEMENTEDsupportsBusinessQuery() is false
ComplianceoptionalThis method must be implemented if supportsBusinessQuery() is true .
MethodclearBusinessTerms
Description

Clears the business query terms.

CompliancemandatoryThis method must be implemented.
MethodgetPeriodQueryRecord
Description

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

Parametersosid.type.TypeperiodRecordTypea period record type
Returnosid.billing.records.PeriodQueryRecordthe period query record
ErrorsNULL_ARGUMENTperiodRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(periodRecordType) is false
CompliancemandatoryThis method must be implemented.