OSID Logo
OSID Specifications
ordering package
Version 3.0.0
Release Candidate Preview
Interfaceosid.ordering.PriceSearchOrder
Implementsosid.OsidRuleSearchOrder
osid.OsidSubjugateableSearchOrder
Description

An interface for specifying the ordering of search results.

MethodorderByPriceSchedule
Description

Specifies a preference for ordering the result set by the price schedule.

Parametersosid.SearchOrderStylestylesearch order style
ErrorsNULL_ARGUMENT style is null
CompliancemandatoryThis method must be implemented.
MethodsupportsPriceScheduleSearchOrder
Description

Tests if a price schedule order is available.

Returnboolean true if a price schedule order is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetPriceScheduleSearchOrder
Description

Gets the price schedule order.

Returnosid.ordering.PriceScheduleSearchOrderthe price schedule search order
ErrorsUNIMPLEMENTED supportsPriceScheduleSearchOrder() is false
ComplianceoptionalThis method must be implemented if supportsPriceScheduleSearchOrder() is true.
MethodorderByMinimumQuantity
Description

Specifies a preference for ordering the result set by the minimum quantity.

Parametersosid.SearchOrderStylestylesearch order style
ErrorsNULL_ARGUMENT style is null
CompliancemandatoryThis method must be implemented.
MethodorderByMaximumQuantity
Description

Specifies a preference for ordering the result set by the maximum quanttity.

Parametersosid.SearchOrderStylestylesearch order style
ErrorsNULL_ARGUMENT style is null
CompliancemandatoryThis method must be implemented.
MethodorderByDemographic
Description

Specifies a preference for ordering the result set by the demographic.

Parametersosid.SearchOrderStylestylesearch order style
ErrorsNULL_ARGUMENT style is null
CompliancemandatoryThis method must be implemented.
MethodsupportsDemographicSearchOrder
Description

Tests if a resource search order is available.

Returnboolean true if a demographic order is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetDemographicSearchOrder
Description

Gets the resource order.

Returnosid.resource.ResourceSearchOrderthe resource search order
ErrorsUNIMPLEMENTED supportsDemographicSearchOrder() is false
ComplianceoptionalThis method must be implemented if supportsDemographicSearchOrder() is true.
MethodorderByAmount
Description

Specifies a preference for ordering the result set by the amount.

Parametersosid.SearchOrderStylestylesearch order style
ErrorsNULL_ARGUMENT style is null
CompliancemandatoryThis method must be implemented.
MethodorderByRecurringInterval
Description

Specifies a preference for ordering the result set by the recurring interval.

Parametersosid.SearchOrderStylestylesearch order style
ErrorsNULL_ARGUMENT style is null
CompliancemandatoryThis method must be implemented.
MethodgetPriceSearchOrderRecord
Description

Gets the price search order record corresponding to the given price record Type. Multiple retrievals return the same underlying object.

Parametersosid.type.TypepriceRecordTypea price record type
Returnosid.ordering.records.PriceSearchOrderRecordthe price search order record
ErrorsNULL_ARGUMENT priceRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(priceRecordType) is false
CompliancemandatoryThis method must be implemented.