OSID Logo
OSID Specifications
calendaring package
Version 3.0.0
Release Candidate Preview
Interfaceosid.calendaring.EventQuery
Implementsosid.OsidObjectQuery
osid.OsidTemporalQuery
osid.OsidContainableQuery
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.

MethodmatchImplicit
Description

Matches an event that is implicitly generated.

Parametersbooleanmatch true to match events implicitly generated, false to match events explicitly defined
CompliancemandatoryThis method must be implemented.
MethodclearImplicitTerms
Description

Clears the implcit terms.

CompliancemandatoryThis method must be implemented.
MethodmatchDuration
Description

Matches the event duration between the given range inclusive.

Parametersosid.calendaring.Durationlowlow duration range
osid.calendaring.Durationhighhigh duration range
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT high is less than low
NULL_ARGUMENT high or low is null
CompliancemandatoryThis method must be implemented.
MethodmatchAnyDuration
Description

Matches an event that has any duration.

Parametersbooleanmatch true to match events with any duration, false to match events with no start time
CompliancemandatoryThis method must be implemented.
MethodclearDurationTerms
Description

Clears the duration terms.

CompliancemandatoryThis method must be implemented.
MethodmatchRecurringEventId
Description

Matches events that related to the recurring event.

Parametersosid.id.IdrecurringEventIdan Id for a recurring event
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT recurringEventId is null
CompliancemandatoryThis method must be implemented.
MethodclearRecurringEventIdTerms
Description

Clears the recurring event terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsRecurringEventQuery
Description

Tests if a RecurringEventQuery is available for querying recurring events.

Returnboolean true if a recurring event query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetRecurringEventQuery
Description

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

Returnosid.calendaring.RecurringEventQuerythe recurring event query
ErrorsUNIMPLEMENTED supportsRecurringEventQuery() is false
ComplianceoptionalThis method must be implemented if supportsRecurringEventQuery() is true.
MethodmatchAnyRecurringEvent
Description

Matches an event that is part of any recurring event.

Parametersbooleanmatch true to match events part of any recurring event, false to match only standalone events
CompliancemandatoryThis method must be implemented.
MethodclearRecurringEventTerms
Description

Clears the recurring event terms.

CompliancemandatoryThis method must be implemented.
MethodmatchSupersedingEventId
Description

Matches events that relate to the superseding event.

Parametersosid.id.IdsupersedingEventIdan Id for a superseding event
booleanmatch true for a positive match, false for a negative match
CompliancemandatoryThis method must be implemented.
MethodclearSupersedingEventIdTerms
Description

Clears the superseding events type terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsSupersedingEventQuery
Description

Tests if a SupersedingEventQuery is available for querying offset events.

Returnboolean true if a superseding event query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetSupersedingEventQuery
Description

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

Returnosid.calendaring.SupersedingEventQuerythe superseding event query
ErrorsUNIMPLEMENTED supportsSupersedingEventQuery() is false
ComplianceoptionalThis method must be implemented if supportsSupersedingEventQuery() is true.
MethodmatchAnySupersedingEvent
Description

Matches any superseding event.

Parametersbooleanmatch true to match any superseding events, false otherwise
CompliancemandatoryThis method must be implemented.
MethodclearSupersedingEventTerms
Description

Clears the superseding event terms.

CompliancemandatoryThis method must be implemented.
MethodmatchOffsetEventId
Description

Matches events that relates to the offset event.

Parametersosid.id.IdoffsetEventIdan Id for an offset event
booleanmatch true for a positive match, false for a negative match
CompliancemandatoryThis method must be implemented.
MethodclearOffsetEventIdTerms
Description

Clears the recurring events type terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsOffsetEventQuery
Description

Tests if an OffsetEventQuery is available for querying offset events.

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

Gets the query for an offset event. Multiple retrievals produce a nested OR term.

Returnosid.calendaring.OffsetEventQuerythe offset event query
ErrorsUNIMPLEMENTED supportsOffsetEventQuery() is false
ComplianceoptionalThis method must be implemented if supportsOffsetEventQuery() is true.
MethodmatchAnyOffsetEvent
Description

Matches any offset event.

Parametersbooleanmatch true to match any offset events, false otherwise
CompliancemandatoryThis method must be implemented.
MethodclearOffsetEventTerms
Description

Clears the offset event 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.
MethodmatchCoordinate
Description

Matches events whose locations contain the given coordinate.

Parametersosid.mapping.Coordinatecoordinatea coordinate
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT coordinate is null
CompliancemandatoryThis method must be implemented.
MethodclearCoordinateTerms
Description

Clears the cooordinate terms.

CompliancemandatoryThis method must be implemented.
MethodmatchSpatialUnit
Description

Matches events whose locations fall within the given spatial unit.

Parametersosid.mapping.SpatialUnitspatialUnita spatial unit
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT spatialUnit is null
CompliancemandatoryThis method must be implemented.
MethodclearSpatialUnitTerms
Description

Clears the spatial unit terms.

CompliancemandatoryThis method must be implemented.
MethodmatchCommitmentId
Description

Sets the commitment Id for this query.

Parametersosid.id.IdcommitmentIda commitment Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT commitmentId is null
CompliancemandatoryThis method must be implemented.
MethodclearCommitmentIdTerms
Description

Clears the commitment Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsCommitmentQuery
Description

Tests if a CommitmentQuery is available for querying recurring event terms.

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

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

Returnosid.calendaring.CommitmentQuerythe commitment query
ErrorsUNIMPLEMENTED supportsCommitmentQuery() is false
ComplianceoptionalThis method must be implemented if supportsCommitmentQuery() is true.
MethodmatchAnyCommitment
Description

Matches an event that has any commitment.

Parametersbooleanmatch true to match events with any commitment, false to match events with no commitments
CompliancemandatoryThis method must be implemented.
MethodclearCommitmentTerms
Description

Clears the commitment terms.

CompliancemandatoryThis method must be implemented.
MethodmatchContainingEventId
Description

Sets the event Id for this query to match events that have the specified event as an ancestor.

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

Clears the containing event Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsContainingEventQuery
Description

Tests if a containing event query is available.

Returnboolean true if a containing event query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetContainingEventQuery
Description

Gets the query for a containing event.

Returnosid.calendaring.EventQuerythe containing event query
ErrorsUNIMPLEMENTED supportsContainingEventQuery() is false
ComplianceoptionalThis method must be implemented if supportsContainingEventQuery() is true.
MethodmatchAnyContainingEvent
Description

Matches events with any ancestor event.

Parametersbooleanmatch true to match events with any ancestor event, false to match events with no ancestor events
CompliancemandatoryThis method must be implemented.
MethodclearContainingEventTerms
Description

Clears the containing event 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.
MethodgetEventQueryRecord
Description

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

Parametersosid.type.TypeeventRecordTypean event query record type
Returnosid.calendaring.records.EventQueryRecordthe event query record
ErrorsNULL_ARGUMENT eventRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(eventRecordType) is false
CompliancemandatoryThis method must be implemented.