OSID Logo
OSID Specifications
contact package
Version 3.0.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.SearchOrderStylestylesearch order style
ErrorsNULL_ARGUMENTstyle 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_ARGUMENTstyle is null
CompliancemandatoryThis method must be implemented.
MethodsupportsAddresseeSearchOrder
Description

Tests if a resource order is available.

Returnbooleantrue 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
ErrorsUNIMPLEMENTEDsupportsAddresseeSearchOrder() 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_ARGUMENTstyle is null
CompliancemandatoryThis method must be implemented.
MethodsupportsAddressSearchOrder
Description

Tests if an address order interface is available.

Returnbooleantrue 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
ErrorsUNIMPLEMENTEDsupportsAddressSearchOrder() 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_ARGUMENTcontactRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(contactRecordType) is false
CompliancemandatoryThis method must be implemented.