Interface OffsetEventQuery
- All Superinterfaces:
Extensible, OsidBrowsableQuery, OsidExtensibleQuery, OsidIdentifiableQuery, OsidObjectQuery, OsidOperableQuery, OsidQuery, OsidRuleQuery, Suppliable
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 .
-
Method Summary
Modifier and TypeMethodDescriptionvoidClears the calendarIdterms.voidClears the calendar terms.voidClears the end reference eventIdterms.voidClears the end reference event terms.voidClears the fixed duration offset terms.voidClears the fixed offset terms.voidClears the fixed offset terms.voidClears the fixed start time terms.voidClears the location description terms.voidClears the locationIdterms.voidClears the location terms.voidClears the relative weekday terms.voidClears the relative weekday terms.voidClears the relative weekday offset terms.voidClears the relative weekday offset terms.voidClears the sponsorIdterms.voidClears the sponsor terms.voidClears the start reference eventIdterms.voidClears the start reference event terms.Gets the query for a calendar.Gets the query for the end reference event.Gets the query for a location.getOffsetEventQueryRecord(Type offsetEventRecordType) Gets the offset event query record corresponding to the givenOffsetEventrecordType.Gets the query for a sponsor.Gets the query for the start reference event.voidmatchAnyEndReferenceEvent(boolean match) Matches any end reference event events.voidmatchAnyFixedEndOffset(boolean match) Matches fixed offset events.voidmatchAnyFixedStartOffset(boolean match) Matches fixed offset events.voidmatchAnyFixedStartTime(boolean match) Matches events with fixed start times.voidmatchAnyLocation(boolean match) Matches an event that has any location assigned.voidmatchAnyLocationDescription(boolean match) Matches an event that has any location description assigned.voidmatchAnyRelativeEndWeekday(boolean match) Matches relative weekday offset events.voidmatchAnyRelativeStartWeekday(boolean match) Matches relative weekday offset events.voidmatchAnyStartReferenceEvent(boolean match) Matches offset events with any starting reference event.voidmatchCalendarId(Id calendarId, boolean match) Sets the calendarIdfor this query.voidmatchEndReferenceEventId(Id eventId, boolean match) Sets the end reference eventIdfor this query.voidmatchFixedDuration(Duration low, Duration high, boolean match) Matches a fixed duration between the given range inclusive.voidmatchFixedEndOffset(Duration from, Duration to, boolean match) Matches a fixed offset amount between the given range inclusive.voidmatchFixedStartOffset(Duration from, Duration to, boolean match) Matches a fixed offset amount between the given range inclusive.voidmatchFixedStartTime(DateTime from, DateTime to, boolean match) Matches a fixed start time between the given range inclusive.voidmatchLocationDescription(String location, Type stringMatchType, boolean match) Matches the location description string.voidmatchLocationId(Id locationId, boolean match) Sets the locationIdfor this query.voidmatchRelativeEndWeekday(long weekday, boolean match) Matches a relative weekday.voidmatchRelativeStartWeekday(long weekday, boolean match) Matches a relative weekday.voidmatchRelativeWeekdayEndOffset(long low, long high, boolean match) Matches a relative weekday offset amount between the given range inclusive.voidmatchRelativeWeekdayStartOffset(long low, long high, boolean match) Matches a relative weekday offset amount between the given range inclusive.voidmatchSponsorId(Id sponsorId, boolean match) Sets the sponsorIdfor this query.voidmatchStartReferenceEventId(Id eventId, boolean match) Sets the start reference eventIdfor this query.booleanTests if aCalendarQueryis available for querying calendars.booleanTests if anEventQueryis available for querying end reference event terms.booleanTests if aLocationQueryis available for querying locations.booleanTests if aLocationQueryis available for querying sponsors.booleanTests if anEventQueryis available for querying start reference event terms.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface OsidExtensibleQuery
clearRecordTerms, matchAnyRecord, matchRecordTypeModifier and TypeMethodDescriptionvoidClears all recordTypeterms.voidmatchAnyRecord(boolean match) Matches an object that has any record.voidmatchRecordType(Type recordType, boolean match) Sets aTypefor querying objects having records implementing a given record type.Methods inherited from interface OsidIdentifiableQuery
clearIdTerms, matchIdModifier and TypeMethodDescriptionvoidClears allIdterms.voidAdds anIdto match.Methods inherited from interface OsidObjectQuery
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, supportsSubjectRelevancyQueryModifier and TypeMethodDescriptionvoidClears all commentIdterms.voidClears all comment terms.voidClears all creditIdterms.voidClears all credit terms.voidClears all description terms.voidClears all display name terms.voidClears all genus type terms.voidClears all journal entryIdterms.voidClears all journal entry terms.voidClears all genus type terms.voidClears all relationshipIdterms.voidClears all relationshipIdterms.voidClears all relationship terms.voidClears all stateIdterms.voidClears all state terms.voidClears all statistic terms.voidClears all subjectIdterms.voidClears all subject relevancy terms.voidClears all subject terms.Gets the query for a comment.Gets the query for an ackowledgement credit.Gets the query for a journal entry.Gets the query for relationship.Gets the query for a state.Gets the query for a statistic.Gets the query for a subject.Gets the query for a subject relevancy.voidmatchAnyComment(boolean match) Matches an object that has anyCommentin the givenBook.voidmatchAnyCredit(boolean match) Matches an object that has anyCredit.voidmatchAnyDescription(boolean match) Matches a description that has any value.voidmatchAnyDisplayName(boolean match) Matches any object with a display name.voidmatchAnyGenusType(boolean match) Matches an object that has any genus type.voidmatchAnyJournalEntry(boolean match) Matches an object that has anyJournalEntryin the givenJournal.voidmatchAnyRelationship(boolean match) Matches an object that has anyRelationship.voidmatchAnyState(boolean match) Matches an object that has any mapping to aStatein the givenProcess.voidmatchAnyStatistic(boolean match) Matches an object that has anyStatistic.voidmatchAnySubject(boolean match) Matches an object that has any relationship to aSubject.voidmatchCommentId(Id commentId, boolean match) Matches an object that has the given comment.voidmatchCreditId(Id creditId, boolean match) Matches an object that has the given credit.voidmatchDescription(String description, Type stringMatchType, boolean match) Adds a description name to match.voidmatchDisplayName(String displayName, Type stringMatchType, boolean match) Adds a display name to match.voidmatchGenusType(Type genusType, boolean match) Sets aTypefor querying objects of a given genus.voidmatchJournalEntryId(Id journalEntryId, boolean match) Matches an object that has the given journal entry.voidmatchParentGenusType(Type genusType, boolean match) Sets aTypefor querying objects of a given genus.voidmatchRelationshipId(Id relationshipId, boolean match) Matches an object that has the given relationship.voidmatchRelationshipPeerId(Id peerId, boolean match) Matches an object that has a relationship to the given peerId.voidmatchStateId(Id stateId, boolean match) Matches an object mapped to the given state.voidmatchSubjectId(Id subjectId, boolean match) Matches an object with a relationship to the given subject.booleanTests if aCommentQueryis available.booleanTests if aCreditQueryis available to provide queries of related acknowledgements.booleanTests if aJournalEntryis available to provide queries of journaledOsidObjects.booleanTests if aRelationshipQueryis available.booleanTests if aStateQueryis available to provide queries of processed objects.booleanTests if aStatisticQueryis available to provide statistical queries.booleanTests if aSubjectQueryis available.booleanTests if aRelevancyQueryis available to provide queries about the relationships toSubjects.Methods inherited from interface OsidOperableQuery
clearActiveTerms, clearDisabledTerms, clearEnabledTerms, clearOperationalTerms, matchActive, matchDisabled, matchEnabled, matchOperationalModifier and TypeMethodDescriptionvoidClears the active query terms.voidClears the administratively disabled query terms.voidClears the administratively enabled query terms.voidClears the operational query terms.voidmatchActive(boolean match) Matches active.voidmatchDisabled(boolean match) Matches administratively disabled.voidmatchEnabled(boolean match) Matches administratively enabled.voidmatchOperational(boolean match) Matches operational operables.Methods inherited from interface OsidQuery
clearAnyTerms, clearKeywordTerms, getStringMatchTypes, matchAny, matchKeyword, supportsStringMatchTypeModifier and TypeMethodDescriptionvoidClears the match any terms.voidClears all keyword terms.Gets the string matching types supported.voidmatchAny(boolean match) Matches any object.voidmatchKeyword(String keyword, Type stringMatchType, boolean match) Adds a keyword to match.booleansupportsStringMatchType(Type stringMatchType) Tests if the given string matching type is supported.Methods inherited from interface OsidRuleQuery
clearConditionRecordTypeTerms, clearRuleIdTerms, clearRuleTerms, getRuleQuery, matchAnyConditionRecordType, matchAnyRule, matchConditionRecordType, matchRuleId, supportsRuleQueryModifier and TypeMethodDescriptionvoidClears the condition recordTypequery terms.voidClears all ruleIdterms.voidClears all rule terms.getRuleQuery(boolean match) Gets the query for the rule.voidmatchAnyConditionRecordType(boolean match) Matches rules with any condition record type.voidmatchAnyRule(boolean match) Match any associated rule.voidmatchConditionRecordType(Type conditionRecordType, boolean match) Matches a condition record type.voidmatchRuleId(Id ruleId, boolean match) Match theIdof the rule.booleanTests if aRuleQueryfor the rule is available.
-
Method Details
-
matchFixedStartTime
Matches a fixed start time between the given range inclusive.- Parameters:
from- the start of the rangeto- the end of the rangematch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-tois less thanfromNullArgumentException-fromortonull- Compliance:
mandatory- This method must be implemented.
-
matchAnyFixedStartTime
void matchAnyFixedStartTime(boolean match) Matches events with fixed start times.- Parameters:
match-truefor a positive match,falsefor a negative match- Compliance:
mandatory- This method must be implemented.
-
clearFixedStartTimeTerms
void clearFixedStartTimeTerms()Clears the fixed start time terms.- Compliance:
mandatory- This method must be implemented.
-
matchStartReferenceEventId
Sets the start reference eventIdfor this query.- Parameters:
eventId- an eventIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-eventIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearStartReferenceEventIdTerms
void clearStartReferenceEventIdTerms()Clears the start reference eventIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsStartReferenceEventQuery
boolean supportsStartReferenceEventQuery()Tests if anEventQueryis available for querying start reference event terms.- Returns:
trueif an event query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getStartReferenceEventQuery
EventQuery getStartReferenceEventQuery()Gets the query for the start reference event. Multiple retrievals produce a nestedORterm.- Returns:
- the event query
- Throws:
UnimplementedException-supportsStartReferenceEventQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsStartReferenceEventQuery()} is {@code true} .
-
matchAnyStartReferenceEvent
void matchAnyStartReferenceEvent(boolean match) Matches offset events with any starting reference event.- Parameters:
match-truefor a positive match,falsefor a negative match- Compliance:
mandatory- This method must be implemented.
-
clearStartReferenceEventTerms
void clearStartReferenceEventTerms()Clears the start reference event terms.- Compliance:
mandatory- This method must be implemented.
-
matchFixedStartOffset
Matches a fixed offset amount between the given range inclusive.- Parameters:
from- the start of the rangeto- the end of the rangematch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-tois less thanfromNullArgumentException-fromortonull- Compliance:
mandatory- This method must be implemented.
-
matchAnyFixedStartOffset
void matchAnyFixedStartOffset(boolean match) Matches fixed offset events.- Parameters:
match-truefor a positive match,falsefor a negative match- Compliance:
mandatory- This method must be implemented.
-
clearFixedStartOffsetTerms
void clearFixedStartOffsetTerms()Clears the fixed offset terms.- Compliance:
mandatory- This method must be implemented.
-
matchRelativeWeekdayStartOffset
void matchRelativeWeekdayStartOffset(long low, long high, boolean match) Matches a relative weekday offset amount between the given range inclusive.- Parameters:
low- the start of the rangehigh- the end of the rangematch-truefor a positive match,falsefor a negative match- Compliance:
mandatory- This method must be implemented.
-
clearRelativeWeekdayStartOffsetTerms
void clearRelativeWeekdayStartOffsetTerms()Clears the relative weekday offset terms.- Compliance:
mandatory- This method must be implemented.
-
matchRelativeStartWeekday
void matchRelativeStartWeekday(long weekday, boolean match) Matches a relative weekday.- Parameters:
weekday- the weekdaymatch-truefor a positive match,falsefor a negative match- Compliance:
mandatory- This method must be implemented.
-
matchAnyRelativeStartWeekday
void matchAnyRelativeStartWeekday(boolean match) Matches relative weekday offset events.- Parameters:
match-truefor a positive match,falsefor a negative match- Compliance:
mandatory- This method must be implemented.
-
clearRelativeStartWeekdayTerms
void clearRelativeStartWeekdayTerms()Clears the relative weekday terms.- Compliance:
mandatory- This method must be implemented.
-
matchFixedDuration
Matches a fixed duration between the given range inclusive.- Parameters:
low- the start of the rangehigh- the end of the rangematch-truefor a positive match,falsefor a negative match- Compliance:
mandatory- This method must be implemented.
-
clearFixedDurationTerms
void clearFixedDurationTerms()Clears the fixed duration offset terms.- Compliance:
mandatory- This method must be implemented.
-
matchEndReferenceEventId
Sets the end reference eventIdfor this query.- Parameters:
eventId- an eventIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-eventIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearEndReferenceEventIdTerms
void clearEndReferenceEventIdTerms()Clears the end reference eventIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsEndReferenceEventQuery
boolean supportsEndReferenceEventQuery()Tests if anEventQueryis available for querying end reference event terms.- Returns:
trueif an event query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getEndReferenceEventQuery
EventQuery getEndReferenceEventQuery()Gets the query for the end reference event. Multiple retrievals produce a nestedORterm.- Returns:
- the event query
- Throws:
UnimplementedException-supportsEventReferenceEventQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsEndReferenceEventQuery()} is {@code true} .
-
matchAnyEndReferenceEvent
void matchAnyEndReferenceEvent(boolean match) Matches any end reference event events.- Parameters:
match-truefor a positive match,falsefor a negative match- Compliance:
mandatory- This method must be implemented.
-
clearEndReferenceEventTerms
void clearEndReferenceEventTerms()Clears the end reference event terms.- Compliance:
mandatory- This method must be implemented.
-
matchFixedEndOffset
Matches a fixed offset amount between the given range inclusive.- Parameters:
from- the start of the rangeto- the end of the rangematch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-tois less thanfromNullArgumentException-fromortonull- Compliance:
mandatory- This method must be implemented.
-
matchAnyFixedEndOffset
void matchAnyFixedEndOffset(boolean match) Matches fixed offset events.- Parameters:
match-truefor a positive match,falsefor a negative match- Compliance:
mandatory- This method must be implemented.
-
clearFixedEndOffsetTerms
void clearFixedEndOffsetTerms()Clears the fixed offset terms.- Compliance:
mandatory- This method must be implemented.
-
matchRelativeWeekdayEndOffset
void matchRelativeWeekdayEndOffset(long low, long high, boolean match) Matches a relative weekday offset amount between the given range inclusive.- Parameters:
low- the start of the rangehigh- the end of the rangematch-truefor a positive match,falsefor a negative match- Compliance:
mandatory- This method must be implemented.
-
clearRelativeWeekdayEndOffsetTerms
void clearRelativeWeekdayEndOffsetTerms()Clears the relative weekday offset terms.- Compliance:
mandatory- This method must be implemented.
-
matchRelativeEndWeekday
void matchRelativeEndWeekday(long weekday, boolean match) Matches a relative weekday.- Parameters:
weekday- the weekdaymatch-truefor a positive match,falsefor a negative match- Compliance:
mandatory- This method must be implemented.
-
matchAnyRelativeEndWeekday
void matchAnyRelativeEndWeekday(boolean match) Matches relative weekday offset events.- Parameters:
match-truefor a positive match,falsefor a negative match- Compliance:
mandatory- This method must be implemented.
-
clearRelativeEndWeekdayTerms
void clearRelativeEndWeekdayTerms()Clears the relative weekday terms.- Compliance:
mandatory- This method must be implemented.
-
matchLocationDescription
Matches the location description string.- Parameters:
location- location stringstringMatchType- string match typematch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-locationis not ofstringMatchTypeNullArgumentException-locationorstringMatchTypeisnullUnsupportedException-supportsStringMatchType(stringMatchType)isfalse- Compliance:
mandatory- This method must be implemented.
-
matchAnyLocationDescription
void matchAnyLocationDescription(boolean match) Matches an event that has any location description assigned.- Parameters:
match-trueto match events with any location description,falseto match events with no location description- Compliance:
mandatory- This method must be implemented.
-
clearLocationDescriptionTerms
void clearLocationDescriptionTerms()Clears the location description terms.- Compliance:
mandatory- This method must be implemented.
-
matchLocationId
Sets the locationIdfor this query.- Parameters:
locationId- a locationIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-locationIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearLocationIdTerms
void clearLocationIdTerms()Clears the locationIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsLocationQuery
boolean supportsLocationQuery()Tests if aLocationQueryis available for querying locations.- Returns:
trueif a location query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getLocationQuery
LocationQuery getLocationQuery()Gets the query for a location. Multiple retrievals produce a nestedORterm.- Returns:
- the location query
- Throws:
UnimplementedException-supportsLocationQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsLocationQuery()} is {@code true} .
-
matchAnyLocation
void matchAnyLocation(boolean match) Matches an event that has any location assigned.- Parameters:
match-trueto match events with any location,falseto match events with no location- Compliance:
mandatory- This method must be implemented.
-
clearLocationTerms
void clearLocationTerms()Clears the location terms.- Compliance:
mandatory- This method must be implemented.
-
matchSponsorId
Sets the sponsorIdfor this query.- Parameters:
sponsorId- a sponsorIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-sponsorIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearSponsorIdTerms
void clearSponsorIdTerms()Clears the sponsorIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsSponsorQuery
boolean supportsSponsorQuery()Tests if aLocationQueryis available for querying sponsors.- Returns:
trueif a sponsor query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getSponsorQuery
ResourceQuery getSponsorQuery()Gets the query for a sponsor. Multiple retrievals produce a nestedORterm.- Returns:
- the sponsor query
- Throws:
UnimplementedException-supportsSponsorQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsSponsorQuery()} is {@code true} .
-
clearSponsorTerms
void clearSponsorTerms()Clears the sponsor terms.- Compliance:
mandatory- This method must be implemented.
-
matchCalendarId
Sets the calendarIdfor this query.- Parameters:
calendarId- a calendarIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-calendarIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearCalendarIdTerms
void clearCalendarIdTerms()Clears the calendarIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsCalendarQuery
boolean supportsCalendarQuery()Tests if aCalendarQueryis available for querying calendars.- Returns:
trueif a calendar query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getCalendarQuery
CalendarQuery getCalendarQuery()Gets the query for a calendar. Multiple retrievals produce a nestedORterm.- Returns:
- the calendar query
- Throws:
UnimplementedException-supportsCalendarQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsCalendarQuery()} is {@code true} .
-
clearCalendarTerms
void clearCalendarTerms()Clears the calendar terms.- Compliance:
mandatory- This method must be implemented.
-
getOffsetEventQueryRecord
OffsetEventQueryRecord getOffsetEventQueryRecord(Type offsetEventRecordType) throws OperationFailedException Gets the offset event query record corresponding to the givenOffsetEventrecordType. Multiple retrievals produce a nestedORterm.- Parameters:
offsetEventRecordType- an offset event query record type- Returns:
- the offset event query record
- Throws:
NullArgumentException-offsetEventRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(offsetEventRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-