OSID Logo
OSID Specifications
contact rules package
Version 3.0.0
Release Candidate Preview
Interfaceosid.contact.rules.ContactEnablerQuery
Implementsosid.OsidEnablerQuery
Description

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

MethodmatchRuledContactId
Description

Matches enablers mapped to the contact.

Parametersosid.id.IdcontactIdthe contact book Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT contactBookId is null
CompliancemandatoryThis method must be implemented.
MethodclearRuledContactIdTerms
Description

Clears the contact Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsRuledContactQuery
Description

Tests if a ContactBookQuery is available.

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

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

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

Matches enablers mapped to any contact.

Parametersbooleanmatch true for enablers mapped to any contact, false to match enablers mapped to no contact
CompliancemandatoryThis method must be implemented.
MethodclearRuledContactTerms
Description

Clears the contact query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchAddressBookId
Description

Matches enablers mapped to the address book.

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

Clears the address book Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsAddressBookQuery
Description

Tests if an AddressBookQuery is available.

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

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

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

Clears the address book query terms.

CompliancemandatoryThis method must be implemented.
MethodgetContactEnablerQueryRecord
Description

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

Parametersosid.type.TypecontactEnablerRecordTypea contact enabler record type
Returnosid.contact.rules.records.ContactEnablerQueryRecordthe contact enabler query record
ErrorsNULL_ARGUMENT contactEnablerRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(contactEnablerRecordType) is false
CompliancemandatoryThis method must be implemented.