public interface ContactQuery extends OsidRelationshipQuery
This is the query for searching contacts. Each method specifies an
AND
term while multiple invocations of the same method
produce a nested OR.
Modifier and Type | Method and Description |
---|---|
void |
clearAddressBookIdTerms()
Clears the address book
Id terms. |
void |
clearAddressBookTerms()
Clears the address book terms.
|
void |
clearAddresseeIdTerms()
Clears the resource
Id terms. |
void |
clearAddresseeTerms()
Clears the resource terms.
|
void |
clearAddressIdTerms()
Clears the address
Id terms. |
void |
clearAddressTerms()
Clears the address terms.
|
void |
clearReferenceIdTerms()
Clears the reference
Id terms. |
AddressBookQuery |
getAddressBookQuery()
Gets the query for an address book query.
|
ResourceQuery |
getAddresseeQuery()
Gets the query for a resource query.
|
AddressQuery |
getAddressQuery()
Gets the query for an address query.
|
ContactQueryRecord |
getContactQueryRecord(Type contactRecordType)
Gets the contact query record corresponding to the given
Contact record Type. |
void |
matchAddressBookId(Id addressBookId,
boolean match)
Sets the address
Id for this query to match contacts
assigned to address books. |
void |
matchAddresseeId(Id resourceId,
boolean match)
Sets a resource
Id. |
void |
matchAddressId(Id addressId,
boolean match)
Sets an address
Id. |
void |
matchReferenceId(Id referenceId,
boolean match)
Sets a reference
Id. |
boolean |
supportsAddressBookQuery()
Tests if an
AddressBookQuery is available. |
boolean |
supportsAddresseeQuery()
Tests if a
ResourceQuery is available. |
boolean |
supportsAddressQuery()
Tests if an
AddressQuery is available. |
clearEndReasonIdTerms, clearEndReasonTerms, getEndReasonQuery, matchAnyEndReason, matchEndReasonId, supportsEndReasonQuery
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
clearDateTerms, clearEffectiveTerms, clearEndDateTerms, clearStartDateTerms, matchAnyEndDate, matchAnyStartDate, matchDate, matchEffective, matchEndDate, matchStartDate
void matchReferenceId(Id referenceId, boolean match)
Id.
referenceId
- a reference Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- referenceId
is
null
mandatory
- This method must be implemented. void clearReferenceIdTerms()
Id
terms.mandatory
- This method must be implemented. void matchAddresseeId(Id resourceId, boolean match)
Id.
resourceId
- a resource Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- resourceId
is
null
mandatory
- This method must be implemented. void clearAddresseeIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsAddresseeQuery()
ResourceQuery
is available. true
if a resource query is available,
false
otherwisemandatory
- This method must be implemented. ResourceQuery getAddresseeQuery()
OR
term.UnimplementedException
-
supportsAddresseeQuery()
is false
optional
- This method must be implemented if
supportsAddresseeQuery()
is true.
void clearAddresseeTerms()
mandatory
- This method must be implemented. void matchAddressId(Id addressId, boolean match)
Id.
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
supportsAddressrQuery()
is true.
void clearAddressTerms()
mandatory
- This method must be implemented. void matchAddressBookId(Id addressBookId, boolean match)
Id
for this query to match contacts
assigned to address books.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 clearAddressBookIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsAddressBookQuery()
AddressBookQuery
is available. true
if an address book query is available,
false
otherwisemandatory
- This method must be implemented. AddressBookQuery getAddressBookQuery()
OR
term.UnimplementedException
-
supportsAddressBookQuery()
is false
optional
- This method must be implemented if
supportsAddressBookQuery()
is true.
void clearAddressBookTerms()
mandatory
- This method must be implemented. ContactQueryRecord getContactQueryRecord(Type contactRecordType) throws OperationFailedException
Contact
record Type.
Multiple record retrievals
produce a nested OR
term.contactRecordType
- a contact record typeNullArgumentException
- contactRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(contactRecordType)
is false
mandatory
- This method must be implemented.