OSID Logo
OSID Specifications
contact package
Version 3.1.0
Interfaceosid.contact.ContactSearchOrder
Implementsosid.OsidRelationshipSearchOrder
Used Byosid.contact.ContactSearchSession
osid.contact.ContactSmartAddressBookSession
Description

An interface for specifying the ordering of search results.

MethodorderByReference
Description

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

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

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

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

Tests if a resource order is available.

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

Gets the resource order.

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

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

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

Tests if an address order interface is available.

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

Gets the address order.

Returnosid.contact.AddressSearchOrder the address search order
ErrorsUNIMPLEMENTED supportsAddressSearchOrder() is false
Complianceoptional This 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.TypecontactRecordType a contact record type
Returnosid.contact.records.ContactSearchOrderRecord the contact search order record
ErrorsNULL_ARGUMENT contactRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(contactRecordType) is false
Compliancemandatory This method must be implemented.