OSID Logo
OSID Specifications
contact package
Version 3.0.0
Release Candidate Preview
Interfaceosid.contact.AddressBookQuery
Implementsosid.OsidCatalogQuery
Description

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

MethodmatchContactId
Description

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

Parametersosid.id.IdcontactIda contact Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT contactId is null
CompliancemandatoryThis method must be implemented.
MethodclearContactIdTerms
Description

Clears the contact Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsContactQuery
Description

Tests if a contact query is available.

Returnboolean true if a contact query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetContactQuery
Description

Gets the query for an address book.

Returnosid.contact.ContactQuerythe contact query
ErrorsUNIMPLEMENTED supportsContactQuery() is false
ComplianceoptionalThis method must be implemented if supportsContactQuery() is true.
MethodmatchAnyContact
Description

Matches address books with any contact.

Parametersbooleanmatch true to match address books with any contact, false to match address books with no contacts
CompliancemandatoryThis method must be implemented.
MethodclearContactTerms
Description

Clears the contact terms.

CompliancemandatoryThis method must be implemented.
MethodmatchAddressId
Description

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

Parametersosid.id.IdaddressIdan address Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT addressId 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.

Returnboolean true 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
ErrorsUNIMPLEMENTED supportsAddressQuery() is false
ComplianceoptionalThis method must be implemented if supportsAddressQuery() is true.
MethodmatchAnyAddress
Description

Matches address books with any address.

Parametersbooleanmatch true to match address books with any address, false to match address books with no addresses
CompliancemandatoryThis method must be implemented.
MethodclearAddressTerms
Description

Clears the address terms.

CompliancemandatoryThis method must be implemented.
MethodmatchAncestorAddressBookId
Description

Sets the address book Id for this query to match address books that have the specified address book as an ancestor.

Parametersosid.id.IdaddressBookIdan address book Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT addressBookId is null
CompliancemandatoryThis method must be implemented.
MethodclearAncestorAddressBookIdTerms
Description

Clears the ancestor address book Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsAncestorAddressBookQuery
Description

Tests if an AddressBookQuery is available.

Returnboolean true if an address book query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetAncestorAddressBookQuery
Description

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

Returnosid.contact.AddressBookQuerythe address book query
ErrorsUNIMPLEMENTED supportsAncestorAddressBookQuery() is false
ComplianceoptionalThis method must be implemented if supportsAncestorAddressBookQuery() is true.
MethodmatchAnyAncestorAddressBook
Description

Matches address books with any ancestor.

Parametersbooleanmatch true to match address books with any ancestor, false to match root address books
CompliancemandatoryThis method must be implemented.
MethodclearAncestorAddressBookTerms
Description

Clears the ancestor address book terms.

CompliancemandatoryThis method must be implemented.
MethodmatchDescendantAddressBookId
Description

Sets the address book Id for this query to match address books that have the specified address book as a descendant.

Parametersosid.id.IdaddressBookIdan address book Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT addressBookId is null
CompliancemandatoryThis method must be implemented.
MethodclearDescendantAddressBookIdTerms
Description

Clears the descendant address book Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsDescendantAddressBookQuery
Description

Tests if an AddressBookQuery is available.

Returnboolean true if an address book query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetDescendantAddressBookQuery
Description

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

Returnosid.contact.AddressBookQuerythe address book query
ErrorsUNIMPLEMENTED supportsDescendantAddressBookQuery() is false
ComplianceoptionalThis method must be implemented if supportsDescendantAddressBookQuery() is true.
MethodmatchAnyDescendantAddressBook
Description

Matches address books with any descendant.

Parametersbooleanmatch true to match address books with any descendant, false to match leaf address books
CompliancemandatoryThis method must be implemented.
MethodclearDescendantAddressBookTerms
Description

Clears the descendant address book terms.

CompliancemandatoryThis method must be implemented.
MethodgetAddressBookQueryRecord
Description

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

Parametersosid.type.TypeaddressBookRecordTypean address book record type
Returnosid.contact.records.AddressBookQueryRecordthe address book query record
ErrorsNULL_ARGUMENT addressBookRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(addressBookRecordType) is false
CompliancemandatoryThis method must be implemented.