OSID Logo
OSID Specifications
contact package
Version 3.0.0
Release Candidate Preview
Interfaceosid.contact.ContactSearchOrder
Implementsosid.OsidRelationshipSearchOrder
Description

An interface for specifying the ordering of search results.

MethodorderByReference
Description

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

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

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

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

Tests if a resource order is available.

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

Gets the resource order.

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

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

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

Tests if an address order interface is available.

Returnboolean true if an address order is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetAddressSearchOrder
Description

Gets the address order.

Returnosid.contact.AddressSearchOrderthe address search order
ErrorsUNIMPLEMENTED supportsAddressSearchOrder() is false
ComplianceoptionalThis method must be implemented if supportsAddressSearchOrder() is true.
MethodgetContactSearchOrderRecord
Description

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

Parametersosid.type.TypecontactRecordTypea contact record type
Returnosid.contact.records.ContactSearchOrderRecordthe contact search order record
ErrorsNULL_ARGUMENT contactRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(contactRecordType) is false
CompliancemandatoryThis method must be implemented.