OSID Logo
OSID Specifications
contact package
Version 3.0.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.IdreferenceIda reference Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTreferenceId is null
CompliancemandatoryThis method must be implemented.
MethodclearReferenceIdTerms
Description

Clears the reference Id terms.

CompliancemandatoryThis method must be implemented.
MethodmatchAddresseeId
Description

Sets a resource Id .

Parametersosid.id.IdresourceIda resource Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTresourceId is null
CompliancemandatoryThis method must be implemented.
MethodclearAddresseeIdTerms
Description

Clears the resource Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsAddresseeQuery
Description

Tests if a ResourceQuery is available.

Returnbooleantrue if a resource query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetAddresseeQuery
Description

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

Returnosid.resource.ResourceQuerythe resource query
ErrorsUNIMPLEMENTEDsupportsAddresseeQuery() is false
ComplianceoptionalThis method must be implemented if supportsAddresseeQuery() is true .
MethodclearAddresseeTerms
Description

Clears the resource terms.

CompliancemandatoryThis method must be implemented.
MethodmatchAddressId
Description

Sets an address Id .

Parametersosid.id.IdaddressIdan address Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTaddressId is null
CompliancemandatoryThis method must be implemented.
MethodclearAddressIdTerms
Description

Clears the address Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsAddressQuery
Description

Tests if an AddressQuery is available.

Returnbooleantrue if an address query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetAddressQuery
Description

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

Returnosid.contact.AddressQuerythe address query
ErrorsUNIMPLEMENTEDsupportsAddressQuery() is false
ComplianceoptionalThis method must be implemented if supportsAddressrQuery() is true .
MethodclearAddressTerms
Description

Clears the address terms.

CompliancemandatoryThis method must be implemented.
MethodmatchAddressBookId
Description

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

Parametersosid.id.IdaddressBookIdan address book Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTaddressBookId is null
CompliancemandatoryThis method must be implemented.
MethodclearAddressBookIdTerms
Description

Clears the address book Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsAddressBookQuery
Description

Tests if an AddressBookQuery is available.

Returnbooleantrue if an address book query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetAddressBookQuery
Description

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

Returnosid.contact.AddressBookQuerythe address book query
ErrorsUNIMPLEMENTEDsupportsAddressBookQuery() is false
ComplianceoptionalThis method must be implemented if supportsAddressBookQuery() is true .
MethodclearAddressBookTerms
Description

Clears the address book terms.

CompliancemandatoryThis 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.TypecontactRecordTypea contact record type
Returnosid.contact.records.ContactQueryRecordthe contact query record
ErrorsNULL_ARGUMENTcontactRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(contactRecordType) is false
CompliancemandatoryThis method must be implemented.