public interface SubscriptionSearchOrder extends OsidRelationshipSearchOrder
An interface for specifying the ordering of search results.
Modifier and Type | Method and Description |
---|---|
AddressSearchOrder |
getAddressSearchOrder()
Gets the address order.
|
DispatchSearchOrder |
getDispatchSearchOrder()
Gets the dispatch order.
|
ResourceSearchOrder |
getSubscriberSearchOrder()
Gets the subscriber order.
|
SubscriptionSearchOrderRecord |
getSubscriptionSearchOrderRecord(Type subscriptionRecordType)
Gets the subscription search order record corresponding to the given
subscription record
Type. |
void |
orderByAddress(SearchOrderStyle style)
Specifies a preference for ordering the result set by the address.
|
void |
orderByDispatch(SearchOrderStyle style)
Specifies a preference for ordering the result set by the dispatch.
|
void |
orderBySubscriber(SearchOrderStyle style)
Specifies a preference for ordering the result set by the subscriber.
|
boolean |
supportsAddressSearchOrder()
Tests if a address order is available.
|
boolean |
supportsDispatchSearchOrder()
Tests if a dispatch order is available.
|
boolean |
supportsSubscriberSearchOrder()
Tests if a subscriber order is available.
|
getEndReasonSearchOrder, orderByEndReason, supportsEndReasonSearchOrder
orderByCreateTime, orderByCumulativeRating, orderByDescription, orderByDisplayName, orderByGenusType, orderByLastModifiedTime, orderByState, orderByStatistic
orderById
getRecordTypes, hasRecordType
orderByEffective, orderByEndDate, orderByStartDate
void orderByDispatch(SearchOrderStyle style)
style
- search order styleNullArgumentException
- style
is
null
mandatory
- This method must be implemented. boolean supportsDispatchSearchOrder()
true
if a dispatch order is available,
false
otherwisemandatory
- This method must be implemented. DispatchSearchOrder getDispatchSearchOrder()
UnimplementedException
-
supportsDispatchSearchOrder()
is false
optional
- This method must be implemented if
supportsDispatchSearchOrder()
is true.
void orderBySubscriber(SearchOrderStyle style)
style
- search order styleNullArgumentException
- style
is
null
mandatory
- This method must be implemented. boolean supportsSubscriberSearchOrder()
true
if a subscriber order is available,
false
otherwisemandatory
- This method must be implemented. ResourceSearchOrder getSubscriberSearchOrder()
UnimplementedException
-
supportsSubscriberSearchOrder()
is false
optional
- This method must be implemented if
supportsSubscriberSearchOrder()
is true.
void orderByAddress(SearchOrderStyle style)
style
- search order styleNullArgumentException
- style
is
null
mandatory
- This method must be implemented. boolean supportsAddressSearchOrder()
true
if an address order is available,
false
otherwisemandatory
- This method must be implemented. AddressSearchOrder getAddressSearchOrder()
UnimplementedException
-
supportsAddressSearchOrder()
is false
optional
- This method must be implemented if
supportsAddressSearchOrder()
is true.
SubscriptionSearchOrderRecord getSubscriptionSearchOrderRecord(Type subscriptionRecordType) throws OperationFailedException
Type.
Multiple retrievals return
the same underlying object.subscriptionRecordType
- a subscription record typeNullArgumentException
- subscriptionRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(subscriptionRecordType)
is false
mandatory
- This method must be implemented.