OSID Logo
OSID Specifications
contact package
Version 3.1.0
Interfaceosid.contact.ContactQuery
Implementsosid.OsidRelationshipQuery
Used Byosid.contact.AddressBookQuery
osid.contact.AddressQuery
osid.contact.ContactQuerySession
osid.contact.ContactSearchSession
osid.contact.ContactSmartAddressBookSession
osid.contact.rules.ContactEnablerQuery
Description

This is the query for searching contacts. Each method specifies an AND term while multiple invocations of the same method produce a nested OR.

MethodmatchReferenceId
Description

Sets a reference Id.

Parametersosid.id.IdreferenceId a reference Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT referenceId is null
Compliancemandatory This method must be implemented.
MethodclearReferenceIdTerms
Description

Clears the reference Id terms.

Compliancemandatory This method must be implemented.
MethodmatchAddresseeId
Description

Sets a resource Id.

Parametersosid.id.IdresourceId a resource Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT resourceId is null
Compliancemandatory This method must be implemented.
MethodclearAddresseeIdTerms
Description

Clears the resource Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsAddresseeQuery
Description

Tests if a ResourceQuery is available.

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

Gets the query for a resource query. Multiple retrievals produce a nested OR term.

Returnosid.resource.ResourceQuery the resource query
ErrorsUNIMPLEMENTED supportsAddresseeQuery() is false
Complianceoptional This method must be implemented if supportsAddresseeQuery() is true.
MethodclearAddresseeTerms
Description

Clears the resource terms.

Compliancemandatory This method must be implemented.
MethodmatchAddressId
Description

Sets an address Id.

Parametersosid.id.IdaddressId an address Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT addressId is null
Compliancemandatory This method must be implemented.
MethodclearAddressIdTerms
Description

Clears the address Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsAddressQuery
Description

Tests if an AddressQuery is available.

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

Gets the query for an address query. Multiple retrievals produce a nested OR term.

Returnosid.contact.AddressQuery the address query
ErrorsUNIMPLEMENTED supportsAddressQuery() is false
Complianceoptional This method must be implemented if supportsAddressrQuery() is true.
MethodclearAddressTerms
Description

Clears the address terms.

Compliancemandatory This method must be implemented.
MethodmatchAddressBookId
Description

Sets the address Id for this query to match contacts assigned to address books.

Parametersosid.id.IdaddressBookId an address book Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT addressBookId is null
Compliancemandatory This method must be implemented.
MethodclearAddressBookIdTerms
Description

Clears the address book Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsAddressBookQuery
Description

Tests if an AddressBookQuery is available.

Returnboolean true if an address book query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetAddressBookQuery
Description

Gets the query for an address book query. Multiple retrievals produce a nested OR term.

Returnosid.contact.AddressBookQuery the address book query
ErrorsUNIMPLEMENTED supportsAddressBookQuery() is false
Complianceoptional This method must be implemented if supportsAddressBookQuery() is true.
MethodclearAddressBookTerms
Description

Clears the address book terms.

Compliancemandatory This method must be implemented.
MethodgetContactQueryRecord
Description

Gets the contact query record corresponding to the given Contact record Type .Multiple record retrievals produce a nested OR term.

Parametersosid.type.TypecontactRecordType a contact record type
Returnosid.contact.records.ContactQueryRecord the contact query record
ErrorsNULL_ARGUMENT contactRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(contactRecordType) is false
Compliancemandatory This method must be implemented.