public interface OfferingSearchOrder extends OsidRelationshipSearchOrder
An interface for specifying the ordering of search results.
| Modifier and Type | Method and Description |
|---|---|
CanonicalUnitSearchOrder |
getCanonicalUnitSearchOrder()
Gets the canonical unit order.
|
OfferingSearchOrderRecord |
getOfferingSearchOrderRecord(Type offeringRecordType)
Gets the offering search order record corresponding to the given
offering record
Type. |
TimePeriodSearchOrder |
getTimePeriodSearchOrder()
Gets the time period order.
|
void |
orderByCanonicalUnit(SearchOrderStyle style)
Specifies a preference for ordering the result set by canonical unit.
|
void |
orderByCode(SearchOrderStyle style)
Specifies a preference for ordering the result set by offering code.
|
void |
orderByTimePeriod(SearchOrderStyle style)
Specifies a preference for ordering the result set by time period.
|
void |
orderByTitle(SearchOrderStyle style)
Specifies a preference for ordering the result set by offering title.
|
boolean |
supportsCanonicalUnitSearchOrder()
Tests if a canonical unit order is available.
|
boolean |
supportsTimePeriodSearchOrder()
Tests if a time period order is available.
|
getEndReasonSearchOrder, orderByEndReason, supportsEndReasonSearchOrderorderByCreateTime, orderByCumulativeRating, orderByDescription, orderByDisplayName, orderByGenusType, orderByLastModifiedTime, orderByState, orderByStatisticorderByIdgetRecordTypes, hasRecordTypeorderByEffective, orderByEndDate, orderByStartDatevoid orderByCanonicalUnit(SearchOrderStyle style)
style - a search order styleNullArgumentException - style is
null mandatory - This method must be implemented. boolean supportsCanonicalUnitSearchOrder()
true if a canonical unit order is available,
false otherwisemandatory - This method must be implemented. CanonicalUnitSearchOrder getCanonicalUnitSearchOrder()
UnimplementedException -
supportsCanonicalUnitSearchOrder() is false
optional - This method must be implemented if
supportsCanonicalUnitSearchOrder() is true.
void orderByTimePeriod(SearchOrderStyle style)
style - a search order styleNullArgumentException - style is
null mandatory - This method must be implemented. boolean supportsTimePeriodSearchOrder()
true if a time period order is available,
false otherwisemandatory - This method must be implemented. TimePeriodSearchOrder getTimePeriodSearchOrder()
UnimplementedException -
supportsTimePeriodSearchOrder() is false
optional - This method must be implemented if
supportsTimePeriodSearchOrder() is true.
void orderByTitle(SearchOrderStyle style)
style - a search order styleNullArgumentException - style is
null mandatory - This method must be implemented. void orderByCode(SearchOrderStyle style)
style - a search order styleNullArgumentException - style is
null mandatory - This method must be implemented. OfferingSearchOrderRecord getOfferingSearchOrderRecord(Type offeringRecordType) throws OperationFailedException
Type. Multiple retrievals return the
same underlying object.offeringRecordType - an offering record typeNullArgumentException - offeringRecordType
is null OperationFailedException - unable to complete requestUnsupportedException -
hasRecordType(offeringRecordType) is false
mandatory - This method must be implemented.