OSID Logo
OSID Specifications
calendaring package
Version 3.1.0
Interfaceosid.calendaring.OffsetEventQuery
Implementsosid.OsidRuleQuery
Used Byosid.calendaring.EventQuery
osid.calendaring.OffsetEventQuerySession
osid.calendaring.OffsetEventSearchSession
osid.calendaring.OffsetEventSmartCalendarSession
osid.calendaring.rules.OffsetEventEnablerQuery
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.DateTimefrom the start of the range
osid.calendaring.DateTimeto the 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
Compliancemandatory This method must be implemented.
MethodmatchAnyFixedStartTime
Description

Matches events with fixed start times.

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

Clears the fixed start time terms.

Compliancemandatory This method must be implemented.
MethodmatchStartReferenceEventId
Description

Sets the start reference event Id for this query.

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

Clears the start reference event Id terms.

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

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

Returnosid.calendaring.EventQuery the event query
ErrorsUNIMPLEMENTED supportsStartReferenceEventQuery() is false
Complianceoptional This 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
Compliancemandatory This method must be implemented.
MethodclearStartReferenceEventTerms
Description

Clears the start reference event terms.

Compliancemandatory This method must be implemented.
MethodmatchFixedStartOffset
Description

Matches a fixed offset amount between the given range inclusive.

Parametersosid.calendaring.Durationfrom the start of the range
osid.calendaring.Durationto the 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
Compliancemandatory This method must be implemented.
MethodmatchAnyFixedStartOffset
Description

Matches fixed offset events.

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

Clears the fixed offset terms.

Compliancemandatory This method must be implemented.
MethodmatchRelativeWeekdayStartOffset
Description

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

Parametersintegerlow the start of the range
integerhigh the end of the range
booleanmatch true for a positive match, false for a negative match
Compliancemandatory This method must be implemented.
MethodclearRelativeWeekdayStartOffsetTerms
Description

Clears the relative weekday offset terms.

Compliancemandatory This method must be implemented.
MethodmatchRelativeStartWeekday
Description

Matches a relative weekday.

Parameterscardinalweekday the weekday
booleanmatch true for a positive match, false for a negative match
Compliancemandatory This method must be implemented.
MethodmatchAnyRelativeStartWeekday
Description

Matches relative weekday offset events.

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

Clears the relative weekday terms.

Compliancemandatory This method must be implemented.
MethodmatchFixedDuration
Description

Matches a fixed duration between the given range inclusive.

Parametersosid.calendaring.Durationlow the start of the range
osid.calendaring.Durationhigh the end of the range
booleanmatch true for a positive match, false for a negative match
Compliancemandatory This method must be implemented.
MethodclearFixedDurationTerms
Description

Clears the fixed duration offset terms.

Compliancemandatory This method must be implemented.
MethodmatchEndReferenceEventId
Description

Sets the end reference event Id for this query.

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

Clears the end reference event Id terms.

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

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

Returnosid.calendaring.EventQuery the event query
ErrorsUNIMPLEMENTED supportsEventReferenceEventQuery() is false
Complianceoptional This 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
Compliancemandatory This method must be implemented.
MethodclearEndReferenceEventTerms
Description

Clears the end reference event terms.

Compliancemandatory This method must be implemented.
MethodmatchFixedEndOffset
Description

Matches a fixed offset amount between the given range inclusive.

Parametersosid.calendaring.Durationfrom the start of the range
osid.calendaring.Durationto the 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
Compliancemandatory This method must be implemented.
MethodmatchAnyFixedEndOffset
Description

Matches fixed offset events.

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

Clears the fixed offset terms.

Compliancemandatory This method must be implemented.
MethodmatchRelativeWeekdayEndOffset
Description

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

Parametersintegerlow the start of the range
integerhigh the end of the range
booleanmatch true for a positive match, false for a negative match
Compliancemandatory This method must be implemented.
MethodclearRelativeWeekdayEndOffsetTerms
Description

Clears the relative weekday offset terms.

Compliancemandatory This method must be implemented.
MethodmatchRelativeEndWeekday
Description

Matches a relative weekday.

Parameterscardinalweekday the weekday
booleanmatch true for a positive match, false for a negative match
Compliancemandatory This method must be implemented.
MethodmatchAnyRelativeEndWeekday
Description

Matches relative weekday offset events.

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

Clears the relative weekday terms.

Compliancemandatory This method must be implemented.
MethodmatchLocationDescription
Description

Matches the location description string.

Parametersstringlocation location string
osid.type.TypestringMatchType string 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
Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodclearLocationDescriptionTerms
Description

Clears the location description terms.

Compliancemandatory This method must be implemented.
MethodmatchLocationId
Description

Sets the location Id for this query.

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

Clears the location Id terms.

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

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

Returnosid.mapping.LocationQuery the location query
ErrorsUNIMPLEMENTED supportsLocationQuery() is false
Complianceoptional This 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
Compliancemandatory This method must be implemented.
MethodclearLocationTerms
Description

Clears the location terms.

Compliancemandatory This method must be implemented.
MethodmatchSponsorId
Description

Sets the sponsor Id for this query.

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

Clears the sponsor Id terms.

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

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

Returnosid.resource.ResourceQuery the sponsor query
ErrorsUNIMPLEMENTED supportsSponsorQuery() is false
Complianceoptional This method must be implemented if supportsSponsorQuery() is true.
MethodclearSponsorTerms
Description

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

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

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

Parametersosid.type.TypeoffsetEventRecordType an offset event query record type
Returnosid.calendaring.records.OffsetEventQueryRecord the offset event query record
ErrorsNULL_ARGUMENT offsetEventRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(offsetEventRecordType) is false
Compliancemandatory This method must be implemented.