public interface AddressQuery extends OsidObjectQuery
This is the query for searching for addresses. 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 |
clearAddressTextTerms()
Clears the text address terms.
|
void |
clearContactIdTerms()
Clears the contact
Id terms. |
void |
clearContactTerms()
Clears the contact terms.
|
void |
clearResourceIdTerms()
Clears the resource
Id terms. |
void |
clearResourceTerms()
Clears the resource terms.
|
AddressBookQuery |
getAddressBookQuery()
Gets the query for an address book query.
|
AddressQueryRecord |
getAddressQueryRecord(Type addressRecordType)
Gets the address query record corresponding to the given
Address record Type. |
ContactQuery |
getContactQuery()
Gets the query for an address.
|
ResourceQuery |
getResourceQuery()
Gets the query for a resource query.
|
void |
matchAddressBookId(Id addressBookId,
boolean match)
Sets the address
Id for this query to match contacts
assigned to address books. |
void |
matchAddressText(java.lang.String address,
Type stringMatchType,
boolean match)
Matches the address text.
|
void |
matchAnyContact(boolean match)
Matches addresses with any contact.
|
void |
matchContactId(Id contactId,
boolean match)
Sets the contact
Id for this query to match contacts
assigned to addresses. |
void |
matchResourceId(Id resourceId,
boolean match)
Sets a resource
Id. |
boolean |
supportsAddressBookQuery()
Tests if an
AddressBookQuery is available. |
boolean |
supportsContactQuery()
Tests if a contact query is available.
|
boolean |
supportsResourceQuery()
Tests if a
ResourceQuery 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
void matchResourceId(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 clearResourceIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsResourceQuery()
ResourceQuery
is available. true
if a resource query is available,
false
otherwisemandatory
- This method must be implemented. ResourceQuery getResourceQuery()
OR
term.UnimplementedException
- supportsResourceQuery()
is false
optional
- This method must be implemented if
supportsResourceQuery()
is true.
void clearResourceTerms()
mandatory
- This method must be implemented. void matchAddressText(java.lang.String address, Type stringMatchType, boolean match)
address
- the address textstringMatchType
- a string match typematch
- true
for a positive match, false
for a negative matchNullArgumentException
- address
or
stringMatchType
is null
mandatory
- This method must be implemented. void clearAddressTextTerms()
mandatory
- This method must be implemented. void matchContactId(Id contactId, boolean match)
Id
for this query to match contacts
assigned to addresses.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 addresses with any contact,
false
to match addresses with no contactsmandatory
- This method must be implemented. void clearContactTerms()
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. AddressQueryRecord getAddressQueryRecord(Type addressRecordType) throws OperationFailedException
Address
record Type.
Multiple record retrievals
produce a nested boolean OR
term.addressRecordType
- an address record typeNullArgumentException
- addressRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(addressRecordType)
is false
mandatory
- This method must be implemented.