public interface ParticipantSearchOrder extends OsidRelationshipSearchOrder
An interface for specifying the ordering of search results.
Modifier and Type | Method and Description |
---|---|
OfferingSearchOrder |
getOfferingSearchOrder()
Gets the offering search order.
|
ParticipantSearchOrderRecord |
getParticipantSearchOrderRecord(Type participantRecordType)
Gets the participant search order record corresponding to the given
participant record
Type. |
ResourceSearchOrder |
getResourceSearchOrder()
Gets the resource search order.
|
TimePeriodSearchOrder |
getTimePeriodSearchOrder()
Gets the time period order.
|
void |
orderByOffering(SearchOrderStyle style)
Specifies a preference for ordering the result set by the offering.
|
void |
orderByResource(SearchOrderStyle style)
Specifies a preference for ordering the result set by the resource.
|
void |
orderByTimePeriod(SearchOrderStyle style)
Specifies a preference for ordering the result set by time period.
|
boolean |
supportsOfferingSearchOrder()
Tests if a offering search order is available.
|
boolean |
supportsResourceSearchOrder()
Tests if a resource search order is available.
|
boolean |
supportsTimePeriodSearchOrder()
Tests if a time period order is available.
|
getEndReasonSearchOrder, orderByEndReason, supportsEndReasonSearchOrder
orderByCreateTime, orderByCumulativeRating, orderByDescription, orderByDisplayName, orderByGenusType, orderByLastModifiedTime, orderByState, orderByStatistic
orderById
getRecordTypes, hasRecordType
orderByEffective, orderByEndDate, orderByStartDate
void orderByOffering(SearchOrderStyle style)
style
- search order styleNullArgumentException
- style
is
null
mandatory
- This method must be implemented. boolean supportsOfferingSearchOrder()
true
if an offering search order is available,
false
otherwisemandatory
- This method must be implemented. OfferingSearchOrder getOfferingSearchOrder()
UnimplementedException
-
supportsOfferingSearchOrder()
is false
optional
- This method must be implemented if
supportsOfferingSearchOrder()
is true.
void orderByResource(SearchOrderStyle style)
style
- search order styleNullArgumentException
- style
is
null
mandatory
- This method must be implemented. boolean supportsResourceSearchOrder()
true
if a offering search order is available,
false
otherwisemandatory
- This method must be implemented. ResourceSearchOrder getResourceSearchOrder()
UnimplementedException
-
supportsResourceSearchOrder()
is false
optional
- This method must be implemented if
supportsResourceSearchOrder()
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.
ParticipantSearchOrderRecord getParticipantSearchOrderRecord(Type participantRecordType) throws OperationFailedException
Type.
Multiple retrievals return the
same underlying object.participantRecordType
- a participant record typeNullArgumentException
- participantRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(participantRecordType)
is false
mandatory
- This method must be implemented.