public interface PostSearchOrder extends OsidObjectSearchOrder, OsidAggregateableSearchOrder
An interface for specifying the ordering of search results.
Modifier and Type | Method and Description |
---|---|
PostSearchOrder |
getCorrectedPostSearchOrder()
Gets the post search order.
|
FiscalPeriodSearchOrder |
getFiscalPeriodSearchOrder()
Gets the fiscal period search order.
|
PostSearchOrderRecord |
getPostSearchOrderRecord(Type postRecordType)
Gets the post search order record corresponding to the given post
record
Type. |
void |
orderByCorrectedPost(SearchOrderStyle style)
Specifies a preference for ordering the result set by the corrected
post.
|
void |
orderByDate(SearchOrderStyle style)
Specifies a preference for ordering the result set by date.
|
void |
orderByFiscalPeriod(SearchOrderStyle style)
Specifies a preference for ordering the result set by fiscal period.
|
void |
orderByPosted(SearchOrderStyle style)
Specifies a preference for ordering the result set by the posted
status.
|
boolean |
supportsCorrectedPostSearchOrder()
Tests if a post search order is available.
|
boolean |
supportsFiscalPeriodSearchOrder()
Tests if a fiscal period search order is available.
|
orderByCreateTime, orderByCumulativeRating, orderByDescription, orderByDisplayName, orderByGenusType, orderByLastModifiedTime, orderByState, orderByStatistic
orderById
getRecordTypes, hasRecordType
void orderByFiscalPeriod(SearchOrderStyle style)
style
- a search order styleNullArgumentException
- style
is
null
mandatory
- This method must be implemented. boolean supportsFiscalPeriodSearchOrder()
true
if a fiscal period search order is
available, false
otherwisemandatory
- This method must be implemented. FiscalPeriodSearchOrder getFiscalPeriodSearchOrder()
UnimplementedException
-
supportsFiscalPeriodSearchOrder()
is false
optional
- This method must be implemented if
supportsFiscalPeriodSearchOrder()
is true.
void orderByPosted(SearchOrderStyle style)
style
- a search order styleNullArgumentException
- style
is
null
mandatory
- This method must be implemented. void orderByDate(SearchOrderStyle style)
style
- a search order styleNullArgumentException
- style
is
null
mandatory
- This method must be implemented. void orderByCorrectedPost(SearchOrderStyle style)
style
- a search order styleNullArgumentException
- style
is
null
mandatory
- This method must be implemented. boolean supportsCorrectedPostSearchOrder()
true
if a post search order is available,
false
otherwisemandatory
- This method must be implemented. PostSearchOrder getCorrectedPostSearchOrder()
UnimplementedException
-
supportsCorrectedPostSearchOrder()
is false
optional
- This method must be implemented if
supportsCorrectedPostSearchOrder()
is true.
PostSearchOrderRecord getPostSearchOrderRecord(Type postRecordType) throws OperationFailedException
Type.
Multiple retrievals return the same
underlying object.postRecordType
- a post record typeNullArgumentException
- postRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(postRecordType)
is false
mandatory
- This method must be implemented.