public interface EventQuery extends OsidObjectQuery, OsidTemporalQuery, OsidContainableQuery
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.
| Modifier and Type | Method and Description |
|---|---|
void |
clearCalendarIdTerms()
Clears the calendar
Id terms. |
void |
clearCalendarTerms()
Clears the calendar terms.
|
void |
clearCommitmentIdTerms()
Clears the commitment
Id terms. |
void |
clearCommitmentTerms()
Clears the commitment terms.
|
void |
clearContainingEventIdTerms()
Clears the containing event
Id terms. |
void |
clearContainingEventTerms()
Clears the containing event terms.
|
void |
clearCoordinateTerms()
Clears the cooordinate terms.
|
void |
clearDurationTerms()
Clears the duration terms.
|
void |
clearImplicitTerms()
Clears the implcit terms.
|
void |
clearLocationDescriptionTerms()
Clears the location description terms.
|
void |
clearLocationIdTerms()
Clears the location
Id terms. |
void |
clearLocationTerms()
Clears the location terms.
|
void |
clearOffsetEventIdTerms()
Clears the recurring events type terms.
|
void |
clearOffsetEventTerms()
Clears the offset event terms.
|
void |
clearRecurringEventIdTerms()
Clears the recurring event terms.
|
void |
clearRecurringEventTerms()
Clears the recurring event terms.
|
void |
clearSpatialUnitTerms()
Clears the spatial unit terms.
|
void |
clearSponsorIdTerms()
Clears the sponsor
Id terms. |
void |
clearSponsorTerms()
Clears the sponsor terms.
|
void |
clearSupersedingEventIdTerms()
Clears the superseding events type terms.
|
void |
clearSupersedingEventTerms()
Clears the superseding event terms.
|
CalendarQuery |
getCalendarQuery()
Gets the query for a calendar.
|
CommitmentQuery |
getCommitmentQuery()
Gets the query for a commitment.
|
EventQuery |
getContainingEventQuery()
Gets the query for a containing event.
|
EventQueryRecord |
getEventQueryRecord(Type eventRecordType)
Gets the event query record corresponding to the given
Event
record Type. |
LocationQuery |
getLocationQuery()
Gets the query for a location.
|
OffsetEventQuery |
getOffsetEventQuery()
Gets the query for an offset event.
|
RecurringEventQuery |
getRecurringEventQuery()
Gets the query for a recurring event.
|
ResourceQuery |
getSponsorQuery()
Gets the query for a sponsor.
|
SupersedingEventQuery |
getSupersedingEventQuery()
Gets the query for a superseding event.
|
void |
matchAnyCommitment(boolean match)
Matches an event that has any commitment.
|
void |
matchAnyContainingEvent(boolean match)
Matches events with any ancestor event.
|
void |
matchAnyDuration(boolean match)
Matches an event that has any duration.
|
void |
matchAnyLocation(boolean match)
Matches an event that has any location assigned.
|
void |
matchAnyLocationDescription(boolean match)
Matches an event that has any location description assigned.
|
void |
matchAnyOffsetEvent(boolean match)
Matches any offset event.
|
void |
matchAnyRecurringEvent(boolean match)
Matches an event that is part of any recurring event.
|
void |
matchAnySupersedingEvent(boolean match)
Matches any superseding event.
|
void |
matchCalendarId(Id calendarId,
boolean match)
Sets the calendar
Id for this query. |
void |
matchCommitmentId(Id commitmentId,
boolean match)
Sets the commitment
Id for this query. |
void |
matchContainingEventId(Id eventId,
boolean match)
Sets the event
Id for this query to match events that
have the specified event as an ancestor. |
void |
matchCoordinate(Coordinate coordinate,
boolean match)
Matches events whose locations contain the given coordinate.
|
void |
matchDuration(Duration low,
Duration high,
boolean match)
Matches the event duration between the given range inclusive.
|
void |
matchImplicit(boolean match)
Matches an event that is implicitly generated.
|
void |
matchLocationDescription(java.lang.String location,
Type stringMatchType,
boolean match)
Matches the location description string.
|
void |
matchLocationId(Id locationId,
boolean match)
Sets the location
Id for this query. |
void |
matchOffsetEventId(Id offsetEventId,
boolean match)
Matches events that relates to the offset event.
|
void |
matchRecurringEventId(Id recurringEventId,
boolean match)
Matches events that related to the recurring event.
|
void |
matchSpatialUnit(SpatialUnit spatialUnit,
boolean match)
Matches events whose locations fall within the given spatial unit.
|
void |
matchSponsorId(Id sponsorId,
boolean match)
Sets the sponsor
Id for this query. |
void |
matchSupersedingEventId(Id supersedingEventId,
boolean match)
Matches events that relate to the superseding event.
|
boolean |
supportsCalendarQuery()
Tests if a
CalendarQuery is available for querying
calendars. |
boolean |
supportsCommitmentQuery()
Tests if a
CommitmentQuery is available for querying
recurring event terms. |
boolean |
supportsContainingEventQuery()
Tests if a containing event query is available.
|
boolean |
supportsLocationQuery()
Tests if a
LocationQuery is available for querying
locations. |
boolean |
supportsOffsetEventQuery()
Tests if an
OffsetEventQuery is available for querying
offset events. |
boolean |
supportsRecurringEventQuery()
Tests if a
RecurringEventQuery is available for
querying recurring events. |
boolean |
supportsSponsorQuery()
Tests if a
LocationQuery is available for querying
sponsors. |
boolean |
supportsSupersedingEventQuery()
Tests if a
SupersedingEventQuery is available for
querying offset events. |
clearCommentIdTerms, clearCommentTerms, clearCreditIdTerms, clearCreditTerms, clearDescriptionTerms, clearDisplayNameTerms, clearGenusTypeTerms, clearJournalEntryIdTerms, clearJournalEntryTerms, clearParentGenusTypeTerms, clearRelationshipIdTerms, clearRelationshipPeerIdTerms, clearRelationshipTerms, clearStateIdTerms, clearStateTerms, clearStatisticTerms, clearSubjectIdTerms, clearSubjectRelevancyTerms, clearSubjectTerms, getCommentQuery, getCreditQuery, getJournalEntryQuery, getRelationshipQuery, getStateQuery, getStatisticQuery, getSubjectQuery, getSubjectRelevancyQuery, matchAnyComment, matchAnyCredit, matchAnyDescription, matchAnyDisplayName, matchAnyGenusType, matchAnyJournalEntry, matchAnyRelationship, matchAnyState, matchAnyStatistic, matchAnySubject, matchCommentId, matchCreditId, matchDescription, matchDisplayName, matchGenusType, matchJournalEntryId, matchParentGenusType, matchRelationshipId, matchRelationshipPeerId, matchStateId, matchSubjectId, supportsCommentQuery, supportsCreditQuery, supportsJournalEntryQuery, supportsRelationshipQuery, supportsStateQuery, supportsStatisticQuery, supportsSubjectQuery, supportsSubjectRelevancyQueryclearIdTerms, matchIdclearRecordTerms, matchAnyRecord, matchRecordTypegetRecordTypes, hasRecordTypeclearDateTerms, clearEffectiveTerms, clearEndDateTerms, clearStartDateTerms, matchAnyEndDate, matchAnyStartDate, matchDate, matchEffective, matchEndDate, matchStartDateclearSequesteredTerms, matchSequesteredvoid matchImplicit(boolean match)
match - true to match events implicitly
generated, false to match events explicitly
definedmandatory - This method must be implemented. void clearImplicitTerms()
mandatory - This method must be implemented. void matchDuration(Duration low, Duration high, boolean match)
low - low duration rangehigh - high duration rangematch - true for a positive match, false
for a negative matchInvalidArgumentException - high is less
than low NullArgumentException - high or
low is null mandatory - This method must be implemented. void matchAnyDuration(boolean match)
match - true to match events with any duration,
false to match events with no start timemandatory - This method must be implemented. void clearDurationTerms()
mandatory - This method must be implemented. void matchRecurringEventId(Id recurringEventId, boolean match)
recurringEventId - an Id for a recurring eventmatch - true for a positive match, false
for a negative matchNullArgumentException - recurringEventId
is null mandatory - This method must be implemented. void clearRecurringEventIdTerms()
mandatory - This method must be implemented. boolean supportsRecurringEventQuery()
RecurringEventQuery is available for
querying recurring events. true if a recurring event query is available,
false otherwisemandatory - This method must be implemented. RecurringEventQuery getRecurringEventQuery()
OR term.UnimplementedException -
supportsRecurringEventQuery() is false optional - This method must be implemented if
supportsRecurringEventQuery() is true.
void matchAnyRecurringEvent(boolean match)
match - true to match events part of any
recurring event, false to match only standalone
eventsmandatory - This method must be implemented. void clearRecurringEventTerms()
mandatory - This method must be implemented. void matchSupersedingEventId(Id supersedingEventId, boolean match)
supersedingEventId - an Id for a superseding
eventmatch - true for a positive match, false
for a negative matchmandatory - This method must be implemented. void clearSupersedingEventIdTerms()
mandatory - This method must be implemented. boolean supportsSupersedingEventQuery()
SupersedingEventQuery is available for
querying offset events. true if a superseding event query is available,
false otherwisemandatory - This method must be implemented. SupersedingEventQuery getSupersedingEventQuery()
OR term.UnimplementedException -
supportsSupersedingEventQuery() is false
optional - This method must be implemented if
supportsSupersedingEventQuery() is true.
void matchAnySupersedingEvent(boolean match)
match - true to match any superseding events,
false otherwisemandatory - This method must be implemented. void clearSupersedingEventTerms()
mandatory - This method must be implemented. void matchOffsetEventId(Id offsetEventId, boolean match)
offsetEventId - an Id for an offset eventmatch - true for a positive match, false
for a negative matchmandatory - This method must be implemented. void clearOffsetEventIdTerms()
mandatory - This method must be implemented. boolean supportsOffsetEventQuery()
OffsetEventQuery is available for querying
offset events. true if an offset event query is available,
false otherwisemandatory - This method must be implemented. OffsetEventQuery getOffsetEventQuery()
OR term.UnimplementedException -
supportsOffsetEventQuery() is false optional - This method must be implemented if
supportsOffsetEventQuery() is true. void matchAnyOffsetEvent(boolean match)
match - true to match any offset events,
false otherwisemandatory - This method must be implemented. void clearOffsetEventTerms()
mandatory - This method must be implemented. void matchLocationDescription(java.lang.String location,
Type stringMatchType,
boolean match)
location - location stringstringMatchType - string match typematch - true for a positive match, false
for a negative matchInvalidArgumentException - location is
not of stringMatchType NullArgumentException - location or
stringMatchType is null UnsupportedException -
supportsStringMatchType(stringMatchType) is
false mandatory - This method must be implemented. void matchAnyLocationDescription(boolean match)
match - true to match events with any location
description, false to match events with no
location descriptionmandatory - This method must be implemented. void clearLocationDescriptionTerms()
mandatory - This method must be implemented. void matchLocationId(Id locationId, boolean match)
Id for this query.locationId - a location Id match - true for a positive match, false
for a negative matchNullArgumentException - locationId is
null mandatory - This method must be implemented. void clearLocationIdTerms()
Id terms.mandatory - This method must be implemented. boolean supportsLocationQuery()
LocationQuery is available for querying
locations. true if a location query is available,
false otherwisemandatory - This method must be implemented. LocationQuery getLocationQuery()
OR term.UnimplementedException - supportsLocationQuery()
is false optional - This method must be implemented if
supportsLocationQuery() is true. void matchAnyLocation(boolean match)
match - true to match events with any location,
false to match events with no locationmandatory - This method must be implemented. void clearLocationTerms()
mandatory - This method must be implemented. void matchSponsorId(Id sponsorId, boolean match)
Id for this query.sponsorId - a sponsor Id match - true for a positive match, false
for a negative matchNullArgumentException - sponsorId is
null mandatory - This method must be implemented. void clearSponsorIdTerms()
Id terms.mandatory - This method must be implemented. boolean supportsSponsorQuery()
LocationQuery is available for querying
sponsors. true if a sponsor query is available,
false otherwisemandatory - This method must be implemented. ResourceQuery getSponsorQuery()
OR term.UnimplementedException - supportsSponsorQuery()
is false optional - This method must be implemented if
supportsSponsorQuery() is true. void clearSponsorTerms()
mandatory - This method must be implemented. void matchCoordinate(Coordinate coordinate, boolean match)
coordinate - a coordinatematch - true for a positive match, false
for a negative matchNullArgumentException - coordinate is
null mandatory - This method must be implemented. void clearCoordinateTerms()
mandatory - This method must be implemented. void matchSpatialUnit(SpatialUnit spatialUnit, boolean match)
spatialUnit - a spatial unitmatch - true for a positive match, false
for a negative matchNullArgumentException - spatialUnit is
null mandatory - This method must be implemented. void clearSpatialUnitTerms()
mandatory - This method must be implemented. void matchCommitmentId(Id commitmentId, boolean match)
Id for this query.commitmentId - a commitment Id match - true for a positive match, false
for a negative matchNullArgumentException - commitmentId is
null mandatory - This method must be implemented. void clearCommitmentIdTerms()
Id terms.mandatory - This method must be implemented. boolean supportsCommitmentQuery()
CommitmentQuery is available for querying
recurring event terms. true if a commitment query is available,
false otherwisemandatory - This method must be implemented. CommitmentQuery getCommitmentQuery()
OR term.UnimplementedException -
supportsCommitmentQuery() is false optional - This method must be implemented if
supportsCommitmentQuery() is true. void matchAnyCommitment(boolean match)
match - true to match events with any commitment,
false to match events with no commitmentsmandatory - This method must be implemented. void clearCommitmentTerms()
mandatory - This method must be implemented. void matchContainingEventId(Id eventId, boolean match)
Id for this query to match events that
have the specified event as an ancestor.eventId - an event Id match - true for a positive match, false
for a negative matchNullArgumentException - eventId is
null mandatory - This method must be implemented. void clearContainingEventIdTerms()
Id terms.mandatory - This method must be implemented. boolean supportsContainingEventQuery()
true if a containing event query is available,
false otherwisemandatory - This method must be implemented. EventQuery getContainingEventQuery()
UnimplementedException -
supportsContainingEventQuery() is false optional - This method must be implemented if
supportsContainingEventQuery() is true.
void matchAnyContainingEvent(boolean match)
match - true to match events with any ancestor
event, false to match events with no ancestor
eventsmandatory - This method must be implemented. void clearContainingEventTerms()
mandatory - This method must be implemented. void matchCalendarId(Id calendarId, boolean match)
Id for this query.calendarId - a calendar Id match - true for a positive match, false
for a negative matchNullArgumentException - calendarId is
null mandatory - This method must be implemented. void clearCalendarIdTerms()
Id terms.mandatory - This method must be implemented. boolean supportsCalendarQuery()
CalendarQuery is available for querying
calendars. true if a calendar query is available,
false otherwisemandatory - This method must be implemented. CalendarQuery getCalendarQuery()
OR term.UnimplementedException - supportsCalendarQuery()
is false optional - This method must be implemented if
supportsCalendarQuery() is true. void clearCalendarTerms()
mandatory - This method must be implemented. EventQueryRecord getEventQueryRecord(Type eventRecordType) throws OperationFailedException
Event
record Type. Multiple retrievals produce a
nested OR term.eventRecordType - an event query record typeNullArgumentException - eventRecordType
is null OperationFailedException - unable to complete requestUnsupportedException -
hasRecordType(eventRecordType) is false mandatory - This method must be implemented.