OSID Logo
OSID Specifications
offering package
Version 3.0.0
Release Candidate Preview
Interfaceosid.offering.OfferingSearchOrder
Implementsosid.OsidRelationshipSearchOrder
Description

An interface for specifying the ordering of search results.

MethodorderByCanonicalUnit
Description

Specifies a preference for ordering the result set by canonical unit.

Parametersosid.SearchOrderStylestylea search order style
ErrorsNULL_ARGUMENT style is null
CompliancemandatoryThis method must be implemented.
MethodsupportsCanonicalUnitSearchOrder
Description

Tests if a canonical unit order is available.

Returnboolean true if a canonical unit order is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetCanonicalUnitSearchOrder
Description

Gets the canonical unit order.

Returnosid.offering.CanonicalUnitSearchOrderthe canonical unit search order
ErrorsUNIMPLEMENTED supportsCanonicalUnitSearchOrder() is false
ComplianceoptionalThis method must be implemented if supportsCanonicalUnitSearchOrder() is true.
MethodorderByTimePeriod
Description

Specifies a preference for ordering the result set by time period.

Parametersosid.SearchOrderStylestylea search order style
ErrorsNULL_ARGUMENT style is null
CompliancemandatoryThis method must be implemented.
MethodsupportsTimePeriodSearchOrder
Description

Tests if a time period order is available.

Returnboolean true if a time period order is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetTimePeriodSearchOrder
Description

Gets the time period order.

Returnosid.calendaring.TimePeriodSearchOrderthe time period search order
ErrorsUNIMPLEMENTED supportsTimePeriodSearchOrder() is false
ComplianceoptionalThis method must be implemented if supportsTimePeriodSearchOrder() is true.
MethodorderByTitle
Description

Specifies a preference for ordering the result set by offering title.

Parametersosid.SearchOrderStylestylea search order style
ErrorsNULL_ARGUMENT style is null
CompliancemandatoryThis method must be implemented.
MethodorderByCode
Description

Specifies a preference for ordering the result set by offering code.

Parametersosid.SearchOrderStylestylea search order style
ErrorsNULL_ARGUMENT style is null
CompliancemandatoryThis method must be implemented.
MethodgetOfferingSearchOrderRecord
Description

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

Parametersosid.type.TypeofferingRecordTypean offering record type
Returnosid.offering.records.OfferingSearchOrderRecordthe offering search order record
ErrorsNULL_ARGUMENT offeringRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(offeringRecordType) is false
CompliancemandatoryThis method must be implemented.