OSID Logo
OSID Specifications
contact package
Version 3.0.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.IdcontactIda contact Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTcontactId 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.

Returnbooleantrue 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
ErrorsUNIMPLEMENTEDsupportsContactQuery() is false
ComplianceoptionalThis method must be implemented if supportsContactQuery() is true .
MethodmatchAnyContact
Description

Matches address books with any contact.

Parametersbooleanmatchtrue 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
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 supportsAddressQuery() is true .
MethodmatchAnyAddress
Description

Matches address books with any address.

Parametersbooleanmatchtrue 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
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTaddressBookId 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.

Returnbooleantrue 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
ErrorsUNIMPLEMENTEDsupportsAncestorAddressBookQuery() is false
ComplianceoptionalThis method must be implemented if supportsAncestorAddressBookQuery() is true .
MethodmatchAnyAncestorAddressBook
Description

Matches address books with any ancestor.

Parametersbooleanmatchtrue 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
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTaddressBookId 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.

Returnbooleantrue 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
ErrorsUNIMPLEMENTEDsupportsDescendantAddressBookQuery() is false
ComplianceoptionalThis method must be implemented if supportsDescendantAddressBookQuery() is true .
MethodmatchAnyDescendantAddressBook
Description

Matches address books with any descendant.

Parametersbooleanmatchtrue 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_ARGUMENTaddressBookRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(addressBookRecordType) is false
CompliancemandatoryThis method must be implemented.