OSID Logo
OSID Specifications
calendaring package
Version 3.0.0
Release Candidate Preview
Interfaceosid.calendaring.OffsetEventQuery
Implementsosid.OsidRuleQuery
Description

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

MethodmatchFixedStartTime
Description

Matches a fixed start time between the given range inclusive.

Parametersosid.calendaring.DateTimefromthe start of the range
osid.calendaring.DateTimetothe end of the range
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT to is less than from
NULL_ARGUMENT from or to null
CompliancemandatoryThis method must be implemented.
MethodmatchAnyFixedStartTime
Description

Matches events with fixed start times.

Parametersbooleanmatch true for a positive match, false for a negative match
CompliancemandatoryThis method must be implemented.
MethodclearFixedStartTimeTerms
Description

Clears the fixed start time terms.

CompliancemandatoryThis method must be implemented.
MethodmatchStartReferenceEventId
Description

Sets the start reference event Id for this query.

Parametersosid.id.IdeventIdan event Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT eventId is null
CompliancemandatoryThis method must be implemented.
MethodclearStartReferenceEventIdTerms
Description

Clears the start reference event Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsStartReferenceEventQuery
Description

Tests if an EventQuery is available for querying start reference event terms.

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

Gets the query for the start reference event. Multiple retrievals produce a nested OR term.

Returnosid.calendaring.EventQuerythe event query
ErrorsUNIMPLEMENTED supportsStartReferenceEventQuery() is false
ComplianceoptionalThis method must be implemented if supportsStartReferenceEventQuery() is true.
MethodmatchAnyStartReferenceEvent
Description

Matches offset events with any starting reference event.

Parametersbooleanmatch true for a positive match, false for a negative match
CompliancemandatoryThis method must be implemented.
MethodclearStartReferenceEventTerms
Description

Clears the start reference event terms.

CompliancemandatoryThis method must be implemented.
MethodmatchFixedStartOffset
Description

Matches a fixed offset amount between the given range inclusive.

Parametersosid.calendaring.Durationfromthe start of the range
osid.calendaring.Durationtothe end of the range
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT to is less than from
NULL_ARGUMENT from or to null
CompliancemandatoryThis method must be implemented.
MethodmatchAnyFixedStartOffset
Description

Matches fixed offset events.

Parametersbooleanmatch true for a positive match, false for a negative match
CompliancemandatoryThis method must be implemented.
MethodclearFixedStartOffsetTerms
Description

Clears the fixed offset terms.

CompliancemandatoryThis method must be implemented.
MethodmatchRelativeWeekdayStartOffset
Description

Matches a relative weekday offset amount between the given range inclusive.

Parametersintegerlowthe start of the range
integerhighthe end of the range
booleanmatch true for a positive match, false for a negative match
CompliancemandatoryThis method must be implemented.
MethodclearRelativeWeekdayStartOffsetTerms
Description

Clears the relative weekday offset terms.

CompliancemandatoryThis method must be implemented.
MethodmatchRelativeStartWeekday
Description

Matches a relative weekday.

Parameterscardinalweekdaythe weekday
booleanmatch true for a positive match, false for a negative match
CompliancemandatoryThis method must be implemented.
MethodmatchAnyRelativeStartWeekday
Description

Matches relative weekday offset events.

Parametersbooleanmatch true for a positive match, false for a negative match
CompliancemandatoryThis method must be implemented.
MethodclearRelativeStartWeekdayTerms
Description

Clears the relative weekday terms.

CompliancemandatoryThis method must be implemented.
MethodmatchFixedDuration
Description

Matches a fixed duration between the given range inclusive.

Parametersosid.calendaring.Durationlowthe start of the range
osid.calendaring.Durationhighthe end of the range
booleanmatch true for a positive match, false for a negative match
CompliancemandatoryThis method must be implemented.
MethodclearFixedDurationTerms
Description

Clears the fixed duration offset terms.

CompliancemandatoryThis method must be implemented.
MethodmatchEndReferenceEventId
Description

Sets the end reference event Id for this query.

Parametersosid.id.IdeventIdan event Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT eventId is null
CompliancemandatoryThis method must be implemented.
MethodclearEndReferenceEventIdTerms
Description

Clears the end reference event Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsEndReferenceEventQuery
Description

Tests if an EventQuery is available for querying end reference event terms.

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

Gets the query for the end reference event. Multiple retrievals produce a nested OR term.

Returnosid.calendaring.EventQuerythe event query
ErrorsUNIMPLEMENTED supportsEventReferenceEventQuery() is false
ComplianceoptionalThis method must be implemented if supportsEndReferenceEventQuery() is true.
MethodmatchAnyEndReferenceEvent
Description

Matches any end reference event events.

Parametersbooleanmatch true for a positive match, false for a negative match
CompliancemandatoryThis method must be implemented.
MethodclearEndReferenceEventTerms
Description

Clears the end reference event terms.

CompliancemandatoryThis method must be implemented.
MethodmatchFixedEndOffset
Description

Matches a fixed offset amount between the given range inclusive.

Parametersosid.calendaring.Durationfromthe start of the range
osid.calendaring.Durationtothe end of the range
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT to is less than from
NULL_ARGUMENT from or to null
CompliancemandatoryThis method must be implemented.
MethodmatchAnyFixedEndOffset
Description

Matches fixed offset events.

Parametersbooleanmatch true for a positive match, false for a negative match
CompliancemandatoryThis method must be implemented.
MethodclearFixedEndOffsetTerms
Description

Clears the fixed offset terms.

CompliancemandatoryThis method must be implemented.
MethodmatchRelativeWeekdayEndOffset
Description

Matches a relative weekday offset amount between the given range inclusive.

Parametersintegerlowthe start of the range
integerhighthe end of the range
booleanmatch true for a positive match, false for a negative match
CompliancemandatoryThis method must be implemented.
MethodclearRelativeWeekdayEndOffsetTerms
Description

Clears the relative weekday offset terms.

CompliancemandatoryThis method must be implemented.
MethodmatchRelativeEndWeekday
Description

Matches a relative weekday.

Parameterscardinalweekdaythe weekday
booleanmatch true for a positive match, false for a negative match
CompliancemandatoryThis method must be implemented.
MethodmatchAnyRelativeEndWeekday
Description

Matches relative weekday offset events.

Parametersbooleanmatch true for a positive match, false for a negative match
CompliancemandatoryThis method must be implemented.
MethodclearRelativeEndWeekdayTerms
Description

Clears the relative weekday terms.

CompliancemandatoryThis method must be implemented.
MethodmatchLocationDescription
Description

Matches the location description string.

Parametersstringlocationlocation string
osid.type.TypestringMatchTypestring match type
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT location is not of stringMatchType
NULL_ARGUMENT location or stringMatchType is null
UNSUPPORTED supportsStringMatchType(stringMatchType) is false
CompliancemandatoryThis method must be implemented.
MethodmatchAnyLocationDescription
Description

Matches an event that has any location description assigned.

Parametersbooleanmatch true to match events with any location description, false to match events with no location description
CompliancemandatoryThis method must be implemented.
MethodclearLocationDescriptionTerms
Description

Clears the location description terms.

CompliancemandatoryThis method must be implemented.
MethodmatchLocationId
Description

Sets the location Id for this query.

Parametersosid.id.IdlocationIda location Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT locationId is null
CompliancemandatoryThis method must be implemented.
MethodclearLocationIdTerms
Description

Clears the location Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsLocationQuery
Description

Tests if a LocationQuery is available for querying locations.

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

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

Returnosid.mapping.LocationQuerythe location query
ErrorsUNIMPLEMENTED supportsLocationQuery() is false
ComplianceoptionalThis method must be implemented if supportsLocationQuery() is true.
MethodmatchAnyLocation
Description

Matches an event that has any location assigned.

Parametersbooleanmatch true to match events with any location, false to match events with no location
CompliancemandatoryThis method must be implemented.
MethodclearLocationTerms
Description

Clears the location terms.

CompliancemandatoryThis method must be implemented.
MethodmatchSponsorId
Description

Sets the sponsor Id for this query.

Parametersosid.id.IdsponsorIda sponsor Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT sponsorId is null
CompliancemandatoryThis method must be implemented.
MethodclearSponsorIdTerms
Description

Clears the sponsor Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsSponsorQuery
Description

Tests if a LocationQuery is available for querying sponsors.

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

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

Returnosid.resource.ResourceQuerythe sponsor query
ErrorsUNIMPLEMENTED supportsSponsorQuery() is false
ComplianceoptionalThis method must be implemented if supportsSponsorQuery() is true.
MethodclearSponsorTerms
Description

Clears the sponsor 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 calendars.

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.
MethodgetOffsetEventQueryRecord
Description

Gets the offset event query record corresponding to the given OffsetEvent record Type. Multiple retrievals produce a nested OR term.

Parametersosid.type.TypeoffsetEventRecordTypean offset event query record type
Returnosid.calendaring.records.OffsetEventQueryRecordthe offset event query record
ErrorsNULL_ARGUMENT offsetEventRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(offsetEventRecordType) is false
CompliancemandatoryThis method must be implemented.