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

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

MethodmatchScheduleSlotId
Description

Sets the schedule Id for this query for matching nested schedule slots.

Parametersosid.id.IdscheduleSlotIda schedule slot Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT scheduleSlotId is null
CompliancemandatoryThis method must be implemented.
MethodclearScheduleSlotIdTerms
Description

Clears the schedule slot Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsScheduleSlotQuery
Description

Tests if a ScheduleSlotQuery is available for querying sechedule slots.

Returnboolean true if a schedule slot query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetScheduleSlotQuery
Description

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

Returnosid.calendaring.ScheduleSlotQuerythe schedule slot query
ErrorsUNIMPLEMENTED supportsScheduleSlotQuery() is false
ComplianceoptionalThis method must be implemented if supportsScheduleSlotQuery() is true.
MethodmatchAnyScheduleSlot
Description

Matches a schedule that has any schedule slot assigned.

Parametersbooleanmatch true to match schedule with any schedule slots, false to match schedules with no schedule slots
CompliancemandatoryThis method must be implemented.
MethodclearScheduleSlotTerms
Description

Clears the schedule slot terms.

CompliancemandatoryThis method must be implemented.
MethodmatchTimePeriodId
Description

Sets the time period Id for this query.

Parametersosid.id.IdtimePeriodIda time 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 time period Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsTimePeriodQuery
Description

Tests if a TimePeriodQuery is available.

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 schedule that has any time period assigned.

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

Clears the time period terms.

CompliancemandatoryThis method must be implemented.
MethodmatchScheduleStart
Description

Matches the schedule start time between the given range inclusive.

Parametersosid.calendaring.DateTimelowlow time range
osid.calendaring.DateTimehighhigh time 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.
MethodmatchAnyScheduleStart
Description

Matches a schedule that has any start time assigned.

Parametersbooleanmatch true to match schedules with any start time, false to match schedules with no start time
CompliancemandatoryThis method must be implemented.
MethodclearScheduleStartTerms
Description

Clears the schedule start terms.

CompliancemandatoryThis method must be implemented.
MethodmatchScheduleEnd
Description

Matches the schedule end time between the given range inclusive.

Parametersosid.calendaring.DateTimelowlow time range
osid.calendaring.DateTimehighhigh time 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.
MethodmatchAnyScheduleEnd
Description

Matches a schedule that has any end time assigned.

Parametersbooleanmatch true to match schedules with any end time, false to match schedules with no start time
CompliancemandatoryThis method must be implemented.
MethodclearScheduleEndTerms
Description

Clears the schedule end terms.

CompliancemandatoryThis method must be implemented.
MethodmatchScheduleTime
Description

Matches schedules with start and end times between the given range inclusive.

Parametersosid.calendaring.DateTimedatea date
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT date is null
CompliancemandatoryThis method must be implemented.
MethodmatchAnyScheduleTime
Description

Matches schedules that has any time assigned.

Parametersbooleanmatch true to match schedules with any time, false to match schedules with no time
CompliancemandatoryThis method must be implemented.
MethodclearScheduleTimeTerms
Description

Clears the schedule time terms.

CompliancemandatoryThis method must be implemented.
MethodmatchScheduleTimeInclusive
Description

Matches schedules with start and end times between the given range inclusive.

Parametersosid.calendaring.DateTimestartstart date
osid.calendaring.DateTimeendend date
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT end is less than start
NULL_ARGUMENT end or start is null
CompliancemandatoryThis method must be implemented.
MethodclearScheduleTimeInclusiveTerms
Description

Clears the schedule time inclusive terms.

CompliancemandatoryThis method must be implemented.
MethodmatchLimit
Description

Matches schedules that have the given limit in the given range inclusive.

Parametersintegerfromstart range
integertoend range
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT to is less than from
CompliancemandatoryThis method must be implemented.
MethodmatchAnyLimit
Description

Matches schedules with any occurrence limit.

Parametersbooleanmatch true to match schedules with any limit, to match schedules with no limit
CompliancemandatoryThis method must be implemented.
MethodclearLimitTerms
Description

Clears the limit 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 a schedule that has any location description assigned.

Parametersbooleanmatch true to match schedules with any location description, false to match schedules 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 a schedule that has any location assigned.

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

Clears the location terms.

CompliancemandatoryThis method must be implemented.
MethodmatchTotalDuration
Description

Matches the total 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.
MethodclearTotalDurationTerms
Description

Clears the total duration 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.
MethodgetScheduleQueryRecord
Description

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

Parametersosid.type.TypescheduleRecordTypea schedule query record type
Returnosid.calendaring.records.ScheduleQueryRecordthe schedule query record
ErrorsNULL_ARGUMENT scheduleRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(scheduleRecordType) is false
CompliancemandatoryThis method must be implemented.