OSID Logo
OSID Specifications
calendaring cycle package
Version 3.1.0
Interfaceosid.calendaring.cycle.CyclicTimePeriodQuery
Implementsosid.OsidObjectQuery
Used Byosid.OsidEnablerQuery
osid.calendaring.cycle.CyclicTimePeriodQuerySession
osid.calendaring.cycle.CyclicTimePeriodSearchSession
osid.calendaring.cycle.CyclicTimePeriodSmartCalendarSession
osid.offering.CanonicalUnitQuery
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.IdtimePeriodId a tiem period Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT timePeriodId is null
Compliancemandatory This method must be implemented.
MethodclearTimePeriodIdTerms
Description

Clears the cyclic time period Id terms.

Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodgetTimePeriodQuery
Description

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

Returnosid.calendaring.TimePeriodQuery the time period query
ErrorsUNIMPLEMENTED supportsTimePeriodQuery() is false
Complianceoptional This 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
Compliancemandatory This method must be implemented.
MethodclearTimePeriodTerms
Description

Clears the time period terms.

Compliancemandatory This method must be implemented.
MethodmatchCalendarId
Description

Sets the calendar Id for this query.

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

Clears the calendar Id terms.

Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodgetCalendarQuery
Description

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

Returnosid.calendaring.CalendarQuery the calendar query
ErrorsUNIMPLEMENTED supportsCalendarQuery() is false
Complianceoptional This method must be implemented if supportsCalendarQuery() is true.
MethodclearCalendarTerms
Description

Clears the calendar terms.

Compliancemandatory This 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.TypecyclicTimePeriodRecordType a cyclic time period query record type
Returnosid.calendaring.cycle.records.CyclicTimePeriodQueryRecord the cyclic time period query record
ErrorsNULL_ARGUMENT cyclicTimePeriodRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(cyclicTimePeriodRecordType) is false
Compliancemandatory This method must be implemented.