Interface OrderSearchOrder
- All Superinterfaces:
Extensible, OsidAggregateableSearchOrder, OsidBrowsableSearchOrder, OsidExtensibleSearchOrder, OsidIdentifiableSearchOrder, OsidObjectSearchOrder, OsidSearchOrder, Suppliable
An interface for specifying the ordering of search results.
-
Method Summary
Modifier and TypeMethodDescriptionGets the closer search order.Gets the closing agent search order.Gets the customer search order.getOrderSearchOrderRecord(Type orderRecordType) Gets the order search order record corresponding to the given order recordType.Gets the submitter search order.Gets the submitting agent search order.voidSpecifies a preference for ordering the result set by the closed date.voidorderByCloser(SearchOrderStyle style) Specifies a preference for ordering the result set by the closer.voidSpecifies a preference for ordering the result set by the closer.voidorderByCustomer(SearchOrderStyle style) Specifies a preference for ordering the result set by the customer.voidSpecifies a preference for ordering the result set by the submitted date.voidorderBySubmitter(SearchOrderStyle style) Specifies a preference for ordering the result set by the submitter.voidSpecifies a preference for ordering the result set by the submitting agent.voidorderByTotalCost(SearchOrderStyle style) Specifies a preference for ordering the result set by the total cost.booleanTests if a closer search order is available.booleanTests if a closing agent search order is available.booleanTests if a customer search order is available.booleanTests if a submitter search order is available.booleanTests if a submitting agent search order is available.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 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.
-
Method Details
-
orderByCustomer
Specifies a preference for ordering the result set by the customer.- Parameters:
style- search order style- Throws:
NullArgumentException-styleisnull- Compliance:
mandatory- This method must be implemented.
-
supportsCustomerSearchOrder
boolean supportsCustomerSearchOrder()Tests if a customer search order is available.- Returns:
trueif a customer order is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getCustomerSearchOrder
ResourceSearchOrder getCustomerSearchOrder()Gets the customer search order.- Returns:
- the customer search order
- Throws:
UnimplementedException-supportsCustomerSearchOrder()isfalse- Compliance:
optional- This method must be implemented if {@code supportsCustomerSearchOrder()} is {@code true} .
-
orderByTotalCost
Specifies a preference for ordering the result set by the total cost.- Parameters:
style- search order style- Throws:
NullArgumentException-styleisnull- Compliance:
mandatory- This method must be implemented.
-
orderBySubmitDate
Specifies a preference for ordering the result set by the submitted date.- Parameters:
style- search order style- Throws:
NullArgumentException-styleisnull- Compliance:
mandatory- This method must be implemented.
-
orderBySubmitter
Specifies a preference for ordering the result set by the submitter.- Parameters:
style- search order style- Throws:
NullArgumentException-styleisnull- Compliance:
mandatory- This method must be implemented.
-
supportsSubmitterSearchOrder
boolean supportsSubmitterSearchOrder()Tests if a submitter search order is available.- Returns:
trueif a resource order is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getSubmitterSearchOrder
ResourceSearchOrder getSubmitterSearchOrder()Gets the submitter search order.- Returns:
- the resource search order
- Throws:
UnimplementedException-supportsSubmitterSearchOrder()isfalse- Compliance:
optional- This method must be implemented if {@code supportsSubmitterSearchOrder()} is {@code true} .
-
orderBySubmittingAgent
Specifies a preference for ordering the result set by the submitting agent.- Parameters:
style- search order style- Throws:
NullArgumentException-styleisnull- Compliance:
mandatory- This method must be implemented.
-
supportsSubmittingAgentSearchOrder
boolean supportsSubmittingAgentSearchOrder()Tests if a submitting agent search order is available.- Returns:
trueif an agent order is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getSubmittingAgentSearchOrder
AgentSearchOrder getSubmittingAgentSearchOrder()Gets the submitting agent search order.- Returns:
- the agent search order
- Throws:
UnimplementedException-supportsSubmittingAgentSearchOrder()isfalse- Compliance:
optional- This method must be implemented if {@code supportsSubmittingAgentSearchOrder()} is {@code true} .
-
orderByClosedDate
Specifies a preference for ordering the result set by the closed date.- Parameters:
style- search order style- Throws:
NullArgumentException-styleisnull- Compliance:
mandatory- This method must be implemented.
-
orderByCloser
Specifies a preference for ordering the result set by the closer.- Parameters:
style- search order style- Throws:
NullArgumentException-styleisnull- Compliance:
mandatory- This method must be implemented.
-
supportsCloserSearchOrder
boolean supportsCloserSearchOrder()Tests if a closer search order is available.- Returns:
trueif a resource order is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getCloserSearchOrder
AgentSearchOrder getCloserSearchOrder()Gets the closer search order.- Returns:
- the resource search order
- Throws:
UnimplementedException-supportsCloserSearchOrder()isfalse- Compliance:
optional- This method must be implemented if {@code supportsCloserSearchOrder()} is {@code true} .
-
orderByClosingAgent
Specifies a preference for ordering the result set by the closer.- Parameters:
style- search order style- Throws:
NullArgumentException-styleisnull- Compliance:
mandatory- This method must be implemented.
-
supportsClosingAgentSearchOrder
boolean supportsClosingAgentSearchOrder()Tests if a closing agent search order is available.- Returns:
trueif an agent order is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getClosingAgentSearchOrder
AgentSearchOrder getClosingAgentSearchOrder()Gets the closing agent search order.- Returns:
- the agent search order
- Throws:
UnimplementedException-supportsClosingAgentSearchOrder()isfalse- Compliance:
optional- This method must be implemented if {@code supportsClosingAgentSearchOrder()} is {@code true} .
-
getOrderSearchOrderRecord
OrderSearchOrderRecord getOrderSearchOrderRecord(Type orderRecordType) throws OperationFailedException Gets the order search order record corresponding to the given order recordType. Multiple retrievals return the same underlying object.- Parameters:
orderRecordType- an order record type- Returns:
- the order search order record
- Throws:
NullArgumentException-orderRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(orderRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-