public interface AddressBookQuery extends OsidCatalogQuery
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.
Modifier and Type | Method and Description |
---|---|
void |
clearAddressIdTerms()
Clears the address
Id terms. |
void |
clearAddressTerms()
Clears the address terms.
|
void |
clearAncestorAddressBookIdTerms()
Clears the ancestor address book
Id terms. |
void |
clearAncestorAddressBookTerms()
Clears the ancestor address book terms.
|
void |
clearContactIdTerms()
Clears the contact
Id terms. |
void |
clearContactTerms()
Clears the contact terms.
|
void |
clearDescendantAddressBookIdTerms()
Clears the descendant address book
Id terms. |
void |
clearDescendantAddressBookTerms()
Clears the descendant address book terms.
|
AddressBookQueryRecord |
getAddressBookQueryRecord(Type addressBookRecordType)
Gets the query record corresponding to the given
AddressBook
record Type. |
AddressQuery |
getAddressQuery()
Gets the query for an address query.
|
AddressBookQuery |
getAncestorAddressBookQuery()
Gets the query for an address book.
|
ContactQuery |
getContactQuery()
Gets the query for an address book.
|
AddressBookQuery |
getDescendantAddressBookQuery()
Gets the query for an address book.
|
void |
matchAddressId(Id addressId,
boolean match)
Sets the address
Id for this query to match contacts
assigned to addresses. |
void |
matchAncestorAddressBookId(Id addressBookId,
boolean match)
Sets the address book
Id for this query to match
address books that have the specified address book as an ancestor. |
void |
matchAnyAddress(boolean match)
Matches address books with any address.
|
void |
matchAnyAncestorAddressBook(boolean match)
Matches address books with any ancestor.
|
void |
matchAnyContact(boolean match)
Matches address books with any contact.
|
void |
matchAnyDescendantAddressBook(boolean match)
Matches address books with any descendant.
|
void |
matchContactId(Id contactId,
boolean match)
Sets the contact
Id for this query to match contacts
assigned to address books. |
void |
matchDescendantAddressBookId(Id addressBookId,
boolean match)
Sets the address book
Id for this query to match
address books that have the specified address book as a descendant. |
boolean |
supportsAddressQuery()
Tests if an
AddressQuery is available. |
boolean |
supportsAncestorAddressBookQuery()
Tests if an
AddressBookQuery is available. |
boolean |
supportsContactQuery()
Tests if a contact query is available.
|
boolean |
supportsDescendantAddressBookQuery()
Tests if an
AddressBookQuery is available. |
clearCommentIdTerms, clearCommentTerms, clearCreditIdTerms, clearCreditTerms, clearDescriptionTerms, clearDisplayNameTerms, clearGenusTypeTerms, clearJournalEntryIdTerms, clearJournalEntryTerms, clearParentGenusTypeTerms, clearRelationshipIdTerms, clearRelationshipPeerIdTerms, clearRelationshipTerms, clearStateIdTerms, clearStateTerms, clearStatisticTerms, clearSubjectIdTerms, clearSubjectRelevancyTerms, clearSubjectTerms, getCommentQuery, getCreditQuery, getJournalEntryQuery, getRelationshipQuery, getStateQuery, getStatisticQuery, getSubjectQuery, getSubjectRelevancyQuery, matchAnyComment, matchAnyCredit, matchAnyDescription, matchAnyDisplayName, matchAnyGenusType, matchAnyJournalEntry, matchAnyRelationship, matchAnyState, matchAnyStatistic, matchAnySubject, matchCommentId, matchCreditId, matchDescription, matchDisplayName, matchGenusType, matchJournalEntryId, matchParentGenusType, matchRelationshipId, matchRelationshipPeerId, matchStateId, matchSubjectId, supportsCommentQuery, supportsCreditQuery, supportsJournalEntryQuery, supportsRelationshipQuery, supportsStateQuery, supportsStatisticQuery, supportsSubjectQuery, supportsSubjectRelevancyQuery
clearIdTerms, matchId
clearRecordTerms, matchAnyRecord, matchRecordType
getRecordTypes, hasRecordType
clearAnyTerms, clearKeywordTerms, getStringMatchTypes, matchAny, matchKeyword, supportsStringMatchType
clearBrandingIdTerms, clearBrandingTerms, clearLicenseTerms, clearProviderIdTerms, clearProviderTerms, getBrandingQuery, getProviderQuery, matchAnyBranding, matchAnyLicense, matchAnyProvider, matchBrandingId, matchLicense, matchProviderId, supportsBrandingQuery, supportsProviderQuery
void matchContactId(Id contactId, boolean match)
Id
for this query to match contacts
assigned to address books.contactId
- a contact Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- contactId
is
null
mandatory
- This method must be implemented. void clearContactIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsContactQuery()
true
if a contact query is available,
false
otherwisemandatory
- This method must be implemented. ContactQuery getContactQuery()
UnimplementedException
- supportsContactQuery()
is false
optional
- This method must be implemented if
supportsContactQuery()
is true.
void matchAnyContact(boolean match)
match
- true
to match address books with any
contact, false
to match address books with no
contactsmandatory
- This method must be implemented. void clearContactTerms()
mandatory
- This method must be implemented. void matchAddressId(Id addressId, boolean match)
Id
for this query to match contacts
assigned to addresses.addressId
- an address Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- addressId
is
null
mandatory
- This method must be implemented. void clearAddressIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsAddressQuery()
AddressQuery
is available. true
if an address query is available,
false
otherwisemandatory
- This method must be implemented. AddressQuery getAddressQuery()
OR
term.UnimplementedException
- supportsAddressQuery()
is false
optional
- This method must be implemented if
supportsAddressQuery()
is true.
void matchAnyAddress(boolean match)
match
- true
to match address books with any
address, false
to match address books with no
addressesmandatory
- This method must be implemented. void clearAddressTerms()
mandatory
- This method must be implemented. void matchAncestorAddressBookId(Id addressBookId, boolean match)
Id
for this query to match
address books that have the specified address book as an ancestor.addressBookId
- an address book Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- addressBookId
is
null
mandatory
- This method must be implemented. void clearAncestorAddressBookIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsAncestorAddressBookQuery()
AddressBookQuery
is available. true
if an address book query is available,
false
otherwisemandatory
- This method must be implemented. AddressBookQuery getAncestorAddressBookQuery()
OR
term.UnimplementedException
-
supportsAncestorAddressBookQuery()
is false
optional
- This method must be implemented if
supportsAncestorAddressBookQuery()
is true.
void matchAnyAncestorAddressBook(boolean match)
match
- true
to match address books with any
ancestor, false
to match root address booksmandatory
- This method must be implemented. void clearAncestorAddressBookTerms()
mandatory
- This method must be implemented. void matchDescendantAddressBookId(Id addressBookId, boolean match)
Id
for this query to match
address books that have the specified address book as a descendant.addressBookId
- an address book Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- addressBookId
is
null
mandatory
- This method must be implemented. void clearDescendantAddressBookIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsDescendantAddressBookQuery()
AddressBookQuery
is available. true
if an address book query is available,
false
otherwisemandatory
- This method must be implemented. AddressBookQuery getDescendantAddressBookQuery()
OR
term.UnimplementedException
-
supportsDescendantAddressBookQuery()
is false
optional
- This method must be implemented if
supportsDescendantAddressBookQuery()
is
true.
void matchAnyDescendantAddressBook(boolean match)
match
- true
to match address books with any
descendant, false
to match leaf address booksmandatory
- This method must be implemented. void clearDescendantAddressBookTerms()
mandatory
- This method must be implemented. AddressBookQueryRecord getAddressBookQueryRecord(Type addressBookRecordType) throws OperationFailedException
AddressBook
record Type.
Multiple record retrievals produce
a nested boolean OR
term.addressBookRecordType
- an address book record typeNullArgumentException
- addressBookRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(addressBookRecordType)
is false
mandatory
- This method must be implemented.