Interface EventSearchOrder
- All Superinterfaces:
Extensible, OsidBrowsableSearchOrder, OsidContainableSearchOrder, OsidExtensibleSearchOrder, OsidIdentifiableSearchOrder, OsidObjectSearchOrder, OsidSearchOrder, OsidTemporalSearchOrder, Suppliable
public interface EventSearchOrder
extends OsidObjectSearchOrder, OsidTemporalSearchOrder, OsidContainableSearchOrder
An interface for specifying the ordering of search results.
-
Method Summary
Modifier and TypeMethodDescriptiongetEventSearchOrderRecord(Type eventRecordType) Gets the event search order record corresponding to the given event recordType.Gets the search order for a location.Gets the search order for an offset event.Gets the search order for a recurring event.Gets the search order for a superseding event.voidorderByDuration(SearchOrderStyle style) Specified a preference for ordering results by the duration.voidorderByLocation(SearchOrderStyle style) Specified a preference for ordering results by the location.voidSpecified a preference for ordering results by the location description.voidSpecified a preference for ordering results by the offset event.voidSpecified a preference for ordering results by the recurring event.voidSpecified a preference for ordering results by the superseding event.booleanTests if aLocationSearchOrderis available.booleanTests if anOffsetEventSearchOrderis available for offset events.booleanTests if aRecurringEventSearchOrderis available for recurring events.booleanTests if aSupersedingEventSearchOrderis available for offset events.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 OsidContainableSearchOrder
orderBySequesteredModifier and TypeMethodDescriptionvoidSpecifies a preference for ordering the result set by the sequestered flag.Methods inherited from interface OsidIdentifiableSearchOrder
orderByIdModifier and TypeMethodDescriptionvoidorderById(SearchOrderStyle style) Specifies a preference for ordering the result set by theId.Methods inherited from interface OsidObjectSearchOrder
orderByCreateTime, orderByCumulativeRating, orderByDescription, orderByDisplayName, orderByGenusType, orderByLastModifiedTime, orderByState, orderByStatisticModifier and TypeMethodDescriptionvoidOrders by the timestamp of the first journal entry.voidorderByCumulativeRating(Id bookId, SearchOrderStyle style) Orders by the cumulative rating in a givenBook.voidSpecifies a preference for ordering the result set by the description.voidSpecifies a preference for ordering the result set by the display name.voidorderByGenusType(SearchOrderStyle style) Specifies a preference for ordering the result set by the genus type.voidOrders by the timestamp of the last journal entry.voidorderByState(Id processId, SearchOrderStyle style) Orders by the state in a givenProcess.voidorderByStatistic(Id meterId, SearchOrderStyle style) Orders by a statistic for a givenMeter.Methods inherited from interface OsidTemporalSearchOrder
orderByEffective, orderByEndDate, orderByStartDateModifier and TypeMethodDescriptionvoidorderByEffective(SearchOrderStyle style) Specifies a preference for ordering the result set by the effective status.voidorderByEndDate(SearchOrderStyle style) Specifies a preference for ordering the result set by the end date.voidorderByStartDate(SearchOrderStyle style) Specifies a preference for ordering the result set by the start date.
-
Method Details
-
orderByDuration
Specified a preference for ordering results by the duration. For recurring events, the duration is the duration of a single event.- Parameters:
style- a search order style- Throws:
NullArgumentException-styleisnull- Compliance:
mandatory- This method must be implemented.
-
orderByRecurringEvent
Specified a preference for ordering results by the recurring event.- Parameters:
style- a search order style- Throws:
NullArgumentException-styleisnull- Compliance:
mandatory- This method must be implemented.
-
supportsRecurringEventSearchOrder
boolean supportsRecurringEventSearchOrder()Tests if aRecurringEventSearchOrderis available for recurring events.- Returns:
trueif a recurring event search order is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getRecurringEventSearchOrder
RecurringEventSearchOrder getRecurringEventSearchOrder()Gets the search order for a recurring event.- Returns:
- the recurring event search order
- Throws:
UnimplementedException-supportsRecurringEventSearchOrder()isfalse- Compliance:
optional- This method must be implemented if {@code supportsRecurringEventSearchOrder()} is {@code true} .
-
orderBySupersedingEvent
Specified a preference for ordering results by the superseding event.- Parameters:
style- a search order style- Throws:
NullArgumentException-styleisnull- Compliance:
mandatory- This method must be implemented.
-
supportsSupersedingEventSearchOrder
boolean supportsSupersedingEventSearchOrder()Tests if aSupersedingEventSearchOrderis available for offset events.- Returns:
trueif a superseding event search order is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getSupersedingEventSearchOrder
SupersedingEventSearchOrder getSupersedingEventSearchOrder()Gets the search order for a superseding event.- Returns:
- the superseding event search order
- Throws:
UnimplementedException-supportsSupersedingEventSearchOrder()isfalse- Compliance:
optional- This method must be implemented if {@code supportsSupersedingEventSearchOrder()} is {@code true} .
-
orderByOffsetEvent
Specified a preference for ordering results by the offset event.- Parameters:
style- a search order style- Throws:
NullArgumentException-styleisnull- Compliance:
mandatory- This method must be implemented.
-
supportsOffsetEventSearchOrder
boolean supportsOffsetEventSearchOrder()Tests if anOffsetEventSearchOrderis available for offset events.- Returns:
trueif an offset event search order is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getOffsetEventSearchOrder
OffsetEventSearchOrder getOffsetEventSearchOrder()Gets the search order for an offset event.- Returns:
- the offset event search order
- Throws:
UnimplementedException-supportsOffsetEventSearchOrder()isfalse- Compliance:
optional- This method must be implemented if {@code supportsOffsetEventSearchOrder()} is {@code true} .
-
orderByLocationDescription
Specified a preference for ordering results by the location description.- Parameters:
style- a search order style- Throws:
NullArgumentException-styleisnull- Compliance:
mandatory- This method must be implemented.
-
orderByLocation
Specified a preference for ordering results by the location.- Parameters:
style- a search order style- Throws:
NullArgumentException-styleisnull- Compliance:
mandatory- This method must be implemented.
-
supportsLocationSearchOrder
boolean supportsLocationSearchOrder()Tests if aLocationSearchOrderis available.- Returns:
trueif a location search order is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getLocationSearchOrder
LocationSearchOrder getLocationSearchOrder()Gets the search order for a location.- Returns:
- the location search order
- Throws:
UnimplementedException-supportsLocationSearchOrder()isfalse- Compliance:
optional- This method must be implemented if {@code supportsLocationSearchOrder()} is {@code true} .
-
getEventSearchOrderRecord
EventSearchOrderRecord getEventSearchOrderRecord(Type eventRecordType) throws OperationFailedException Gets the event search order record corresponding to the given event recordType. Multiple retrievals return the same underlying object.- Parameters:
eventRecordType- an event record type- Returns:
- the event search order record
- Throws:
NullArgumentException-eventRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(eventRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-