OSID Logo
OSID Specifications
calendaring cycle package
Version 3.0.0
Release Candidate Preview
Interfaceosid.calendaring.cycle.CyclicTimePeriodQuery
Implementsosid.OsidObjectQuery
Description

This is the query for searching cyclic time periods. Each method match request produces an AND term while multiple invocations of a method produces a nested OR.

MethodmatchTimePeriodId
Description

Sets the time period Id for this query to match cyclic time periods with the given mapped time period.

Parametersosid.id.IdtimePeriodIda tiem period Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT timePeriodId is null
CompliancemandatoryThis method must be implemented.
MethodclearTimePeriodIdTerms
Description

Clears the cyclic time period Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsTimePeriodQuery
Description

Tests if a TimePeriodQuery is available for querying time periods.

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

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

Returnosid.calendaring.TimePeriodQuerythe time period query
ErrorsUNIMPLEMENTED supportsTimePeriodQuery() is false
ComplianceoptionalThis method must be implemented if supportsTimePeriodQuery() is true.
MethodmatchAnyTimePeriod
Description

Matches a cyclic time period that has any time period assigned.

Parametersbooleanmatch true to match cyclic time periods with any tiem period, false to match cyclic time periods with no tiem periods
CompliancemandatoryThis method must be implemented.
MethodclearTimePeriodTerms
Description

Clears the time period terms.

CompliancemandatoryThis method must be implemented.
MethodmatchCalendarId
Description

Sets the calendar Id for this query.

Parametersosid.id.IdcalendarIda calendar Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT calendarId is null
CompliancemandatoryThis method must be implemented.
MethodclearCalendarIdTerms
Description

Clears the calendar Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsCalendarQuery
Description

Tests if a CalendarQuery is available for querying resources.

Returnboolean true if a calendar query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetCalendarQuery
Description

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

Returnosid.calendaring.CalendarQuerythe calendar query
ErrorsUNIMPLEMENTED supportsCalendarQuery() is false
ComplianceoptionalThis method must be implemented if supportsCalendarQuery() is true.
MethodclearCalendarTerms
Description

Clears the calendar terms.

CompliancemandatoryThis method must be implemented.
MethodgetCyclicTimePeriodQueryRecord
Description

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

Parametersosid.type.TypecyclicTimePeriodRecordTypea cyclic time period query record type
Returnosid.calendaring.cycle.records.CyclicTimePeriodQueryRecordthe cyclic time period query record
ErrorsNULL_ARGUMENT cyclicTimePeriodRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(cyclicTimePeriodRecordType) is false
CompliancemandatoryThis method must be implemented.