OSID Logo
OSID Specifications
billing package
Version 3.0.0
Release Candidate Preview
Interfaceosid.billing.PeriodQuery
Implementsosid.OsidObjectQuery
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
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT label not of stringMatchType
NULL_ARGUMENT label or stringMatchType is null
UNSUPPORTED supportsStringMatchType(stringMatchType) is false
CompliancemandatoryThis method must be implemented.
MethodmatchAnyDisplayLabel
Description

Matches a display label that has any value.

Parametersbooleanmatch true 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
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT high is less than low
CompliancemandatoryThis method must be implemented.
MethodmatchAnyOpenDate
Description

Matches a period that has any open date assigned.

Parametersbooleanmatch true 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
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT high is less than low
CompliancemandatoryThis method must be implemented.
MethodmatchAnyCloseDate
Description

Matches a period that has any close date assigned.

Parametersbooleanmatch true 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
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT high is less than low
CompliancemandatoryThis method must be implemented.
MethodmatchAnyBillingDate
Description

Matches a period that has any billing date assigned.

Parametersbooleanmatch true 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
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT high is less than low
CompliancemandatoryThis method must be implemented.
MethodmatchAnyDueDate
Description

Matches a period that has any due date assigned.

Parametersbooleanmatch true 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
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT businessId 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.

Returnboolean true 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
ErrorsUNIMPLEMENTED supportsBusinessQuery() 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_ARGUMENT periodRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(periodRecordType) is false
CompliancemandatoryThis method must be implemented.