OSID Logo
OSID Specifications
resource package
Version 3.1.0
Interfaceosid.resource.ResourceRelationshipSearchOrder
Implementsosid.OsidRelationshipSearchOrder
Used Byosid.resource.ResourceRelationshipSearchSession
osid.resource.ResourceRelationshipSmartBinSession
Description

An interface for specifying the ordering of search results.

MethodorderBySourceResource
Description

Specified a preference for ordering results by the resource.

Parametersosid.SearchOrderStylestyle search order style
ErrorsNULL_ARGUMENT style is null
Compliancemandatory This method must be implemented.
MethodsupportsSourceResourceSearchOrder
Description

Tests if a ResourceSearchOrder is available.

Returnboolean true if a resource search order is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetSourceResourceSearchOrder
Description

Gets the search order for a resource.

Returnosid.resource.ResourceSearchOrder the resource search order
ErrorsUNIMPLEMENTED supportsSourceResourceSearchOrder() is false
Complianceoptional This method must be implemented if supportsSourceResourceSearchOrder() is true.
MethodorderByDestinationResource
Description

Specified a preference for ordering results by the resource.

Parametersosid.SearchOrderStylestyle search order style
ErrorsNULL_ARGUMENT style is null
Compliancemandatory This method must be implemented.
MethodsupportsDestinationResourceSearchOrder
Description

Tests if a ResourceSearchOrder is available.

Returnboolean true if a resource search order is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetDestinationResourceSearchOrder
Description

Gets the search order for a peer resource.

Returnosid.resource.ResourceSearchOrder the resource search order
ErrorsUNIMPLEMENTED supportsDestinationResourceSearchOrder() is false
Complianceoptional This method must be implemented if supportsDestinationResourceSearchOrder() is true.
MethodgetResourceRelationshipSearchOrderRecord
Description

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

Parametersosid.type.TyperesourceRelationshipRecordType a resource relationship record type
Returnosid.resource.records.ResourceRelationshipSearchOrderRecord the resource relationship search order record
ErrorsNULL_ARGUMENT resourceRelationshipRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(ResourceRelationshipRecordType) is false
Compliancemandatory This method must be implemented.