OSID Logo
OSID Specifications
contact package
Version 3.1.0
Interfaceosid.contact.AddressBookQuery
Implementsosid.OsidCatalogQuery
Used Byosid.contact.AddressBookQuery
osid.contact.AddressBookQuerySession
osid.contact.AddressBookSearchSession
osid.contact.AddressQuery
osid.contact.ContactQuery
osid.contact.rules.ContactEnablerQuery
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.IdcontactId a contact Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT contactId is null
Compliancemandatory This method must be implemented.
MethodclearContactIdTerms
Description

Clears the contact Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsContactQuery
Description

Tests if a contact query is available.

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

Gets the query for an address book.

Returnosid.contact.ContactQuery the contact query
ErrorsUNIMPLEMENTED supportsContactQuery() is false
Complianceoptional This 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
Compliancemandatory This method must be implemented.
MethodclearContactTerms
Description

Clears the contact terms.

Compliancemandatory This method must be implemented.
MethodmatchAddressId
Description

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

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 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
Compliancemandatory This method must be implemented.
MethodclearAddressTerms
Description

Clears the address terms.

Compliancemandatory This 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.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.
MethodclearAncestorAddressBookIdTerms
Description

Clears the ancestor address book Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsAncestorAddressBookQuery
Description

Tests if an AddressBookQuery is available.

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

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

Returnosid.contact.AddressBookQuery the address book query
ErrorsUNIMPLEMENTED supportsAncestorAddressBookQuery() is false
Complianceoptional This 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
Compliancemandatory This method must be implemented.
MethodclearAncestorAddressBookTerms
Description

Clears the ancestor address book terms.

Compliancemandatory This 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.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.
MethodclearDescendantAddressBookIdTerms
Description

Clears the descendant address book Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsDescendantAddressBookQuery
Description

Tests if an AddressBookQuery is available.

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

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

Returnosid.contact.AddressBookQuery the address book query
ErrorsUNIMPLEMENTED supportsDescendantAddressBookQuery() is false
Complianceoptional This 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
Compliancemandatory This method must be implemented.
MethodclearDescendantAddressBookTerms
Description

Clears the descendant address book terms.

Compliancemandatory This 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.TypeaddressBookRecordType an address book record type
Returnosid.contact.records.AddressBookQueryRecord the address book query record
ErrorsNULL_ARGUMENT addressBookRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(addressBookRecordType) is false
Compliancemandatory This method must be implemented.