OSID Logo
OSID Specifications
osid package
Version 3.0.0
Release Candidate Preview
Interfaceosid.OsidEnablerQuery
Implementsosid.OsidRuleQuery
osid.OsidTemporalQuery
Description

This is the query interface for searching enablers. Each method specifies an AND term while multiple invocations of the same method produce a nested OR.

MethodmatchScheduleId
Description

Match the Id of an associated schedule.

Parametersosid.id.IdscheduleId Id to match
booleanmatch true if for a positive match, false for a negative match
ErrorsNULL_ARGUMENT scheduleId is null
CompliancemandatoryThis method must be implemented.
MethodclearScheduleIdTerms
Description

Clears all schedule Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsScheduleQuery
Description

Tests if a ScheduleQuery for the rule is available.

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

Gets the query for the schedule. Each retrieval performs a boolean OR.

Parametersbooleanmatch true if for a positive match, false for a negative match
Returnosid.calendaring.ScheduleQuerythe schedule query
ErrorsUNIMPLEMENTED supportsScheduleQuery() is false
ComplianceoptionalThis method must be implemented if supportsScheduleQuery() is true.
MethodmatchAnySchedule
Description

Match any associated schedule.

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

Clears all schedule terms.

CompliancemandatoryThis method must be implemented.
MethodmatchEventId
Description

Match the Id of an associated event.

Parametersosid.id.IdeventId Id to match
booleanmatch true if for a positive match, false for a negative match
ErrorsNULL_ARGUMENT eventId is null
CompliancemandatoryThis method must be implemented.
MethodclearEventIdTerms
Description

Clears all event Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsEventQuery
Description

Tests if a EventQuery for the rule is available.

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

Gets the query for the event. Each retrieval performs a boolean OR.

Parametersbooleanmatch true if for a positive match, false for a negative match
Returnosid.calendaring.EventQuerythe event query
ErrorsUNIMPLEMENTED supportsEventQuery() is false
ComplianceoptionalThis method must be implemented if supportsEventQuery() is true.
MethodmatchAnyEvent
Description

Match any associated event.

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

Clears all recurirng event terms.

CompliancemandatoryThis method must be implemented.
MethodmatchCyclicEventId
Description

Sets the cyclic event Id for this query.

Parametersosid.id.IdcyclicEventIdthe cyclic event Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT cyclicEventId is null
CompliancemandatoryThis method must be implemented.
MethodclearCyclicEventIdTerms
Description

Clears the cyclic event Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsCyclicEventQuery
Description

Tests if a CyclicEventQuery is available.

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

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

Returnosid.calendaring.cycle.CyclicEventQuerythe cyclic event query
ErrorsUNIMPLEMENTED supportsCyclicEventQuery() is false
ComplianceoptionalThis method must be implemented if supportsCyclicEventQuery() is true.
MethodmatchAnyCyclicEvent
Description

Matches any enabler with a cyclic event.

Parametersbooleanmatch true to match any enablers with a cyclic event, false to match enablers with no cyclic events
CompliancemandatoryThis method must be implemented.
MethodclearCyclicEventTerms
Description

Clears the cyclic event query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchDemographicId
Description

Match the Id of the demographic resource.

Parametersosid.id.IdresourceId Id to match
booleanmatch true if for a positive match, false for a negative match
ErrorsNULL_ARGUMENT resourceId is null
CompliancemandatoryThis method must be implemented.
MethodclearDemographicIdTerms
Description

Clears all resource Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsDemographicQuery
Description

Tests if a ResourceQuery for the demographic is available.

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

Gets the query for the resource. Each retrieval performs a boolean OR.

Parametersbooleanmatch true if for a positive match, false for a negative match
Returnosid.resource.ResourceQuerythe resource query
ErrorsUNIMPLEMENTED supportsResourceQuery() is false
ComplianceoptionalThis method must be implemented if supportsResourceQuery() is true.
MethodmatchAnyDemographic
Description

Match any associated resource.

Parametersbooleanmatch true to match any demographic, false to match no rules
CompliancemandatoryThis method must be implemented.
MethodclearDemographicTerms
Description

Clears all demographic terms.

CompliancemandatoryThis method must be implemented.