public interface MailboxQuery extends OsidCatalogQuery
This is the query for searching mailboxes. Each method specifies an
AND term while multiple invocations of the same method
produce a nested OR.
| Modifier and Type | Method and Description |
|---|---|
void |
clearAncestorMailboxIdTerms()
Clears the ancestor mailbox
Id terms. |
void |
clearAncestorMailboxTerms()
Clears the ancestor mailbox terms.
|
void |
clearDescendantMailboxIdTerms()
Clears the descendant mailbox
Id terms. |
void |
clearDescendantMailboxTerms()
Clears the descendant mailbox terms.
|
void |
clearMessageIdTerms()
Clears the message
Id terms. |
void |
clearMessageTerms()
Clears the message terms.
|
MailboxQuery |
getAncestorMailboxQuery()
Gets the query for a mailbox.
|
MailboxQuery |
getDescendantMailboxQuery()
Gets the query for a mailbox.
|
MailboxQueryRecord |
getMailboxQueryRecord(Type mailboxRecordType)
Gets the mailbox query record corresponding to the given
Mailbox record Type. |
MessageQuery |
getMessageQuery()
Gets the query for a message.
|
void |
matchAncestorMailboxId(Id mailboxId,
boolean match)
Sets the mailbox
Id for this query to match mailboxes
that have the specified mailbox as an ancestor. |
void |
matchAnyAncestorMailbox(boolean match)
Matches mailboxes with any ancestor.
|
void |
matchAnyDescendantMailbox(boolean match)
Matches mailboxes with any descendant.
|
void |
matchAnyMessage(boolean match)
Matches mailboxes with any messages.
|
void |
matchDescendantMailboxId(Id mailboxId,
boolean match)
Sets the mailbox
Id for this query to match mailboxes
that have the specified mailbox as a descendant. |
void |
matchMessageId(Id messageId,
boolean match)
Sets the message
Id for this query. |
boolean |
supportsAncestorMailboxQuery()
Tests if a
MailboxQuery is available. |
boolean |
supportsDescendantMailboxQuery()
Tests if a
MailboxQuery is available. |
boolean |
supportsMessageQuery()
Tests if a
MessageQuery 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, supportsSubjectRelevancyQueryclearIdTerms, matchIdclearRecordTerms, matchAnyRecord, matchRecordTypegetRecordTypes, hasRecordTypeclearAnyTerms, clearKeywordTerms, getStringMatchTypes, matchAny, matchKeyword, supportsStringMatchTypeclearBrandingIdTerms, clearBrandingTerms, clearLicenseTerms, clearProviderIdTerms, clearProviderTerms, getBrandingQuery, getProviderQuery, matchAnyBranding, matchAnyLicense, matchAnyProvider, matchBrandingId, matchLicense, matchProviderId, supportsBrandingQuery, supportsProviderQueryvoid matchMessageId(Id messageId, boolean match)
Id for this query.messageId - a message Id match - true for a positive match, false
for a negative matchNullArgumentException - messageId is
null mandatory - This method must be implemented. void clearMessageIdTerms()
Id terms.mandatory - This method must be implemented. boolean supportsMessageQuery()
MessageQuery is available. true if a message query is available,
false otherwisemandatory - This method must be implemented. MessageQuery getMessageQuery()
OR term.UnimplementedException - supportsMessageQuery()
is false optional - This method must be implemented if
supportsMessageQuery() is true. void matchAnyMessage(boolean match)
match - true to match mailboxes with any
messages, false to match mailboxes with no
messagesmandatory - This method must be implemented. void clearMessageTerms()
mandatory - This method must be implemented. void matchAncestorMailboxId(Id mailboxId, boolean match)
Id for this query to match mailboxes
that have the specified mailbox as an ancestor.mailboxId - a mailbox Id match - true for a positive match, false
for a negative matchNullArgumentException - mailboxId is
null mandatory - This method must be implemented. void clearAncestorMailboxIdTerms()
Id terms.mandatory - This method must be implemented. boolean supportsAncestorMailboxQuery()
MailboxQuery is available. true if a mailbox query is available,
false otherwisemandatory - This method must be implemented. MailboxQuery getAncestorMailboxQuery()
OR term.UnimplementedException -
supportsAncestorMailboxQuery() is false optional - This method must be implemented if
supportsAncestorMailboxQuery() is true.
void matchAnyAncestorMailbox(boolean match)
match - true to match mailboxes with any
ancestor, false to match root mailboxesmandatory - This method must be implemented. void clearAncestorMailboxTerms()
mandatory - This method must be implemented. void matchDescendantMailboxId(Id mailboxId, boolean match)
Id for this query to match mailboxes
that have the specified mailbox as a descendant.mailboxId - a mailbox Id match - true for a positive match, false
for a negative matchNullArgumentException - mailboxId is
null mandatory - This method must be implemented. void clearDescendantMailboxIdTerms()
Id terms.mandatory - This method must be implemented. boolean supportsDescendantMailboxQuery()
MailboxQuery is available. true if a mailbox query is available,
false otherwisemandatory - This method must be implemented. MailboxQuery getDescendantMailboxQuery()
OR term.UnimplementedException -
supportsDescendantMailboxQuery() is false
optional - This method must be implemented if
supportsDescendantMailboxQuery() is true.
void matchAnyDescendantMailbox(boolean match)
match - true to match mailboxes with any
descendant, false to match leaf mailboxesmandatory - This method must be implemented. void clearDescendantMailboxTerms()
mandatory - This method must be implemented. MailboxQueryRecord getMailboxQueryRecord(Type mailboxRecordType) throws OperationFailedException, PermissionDeniedException
Mailbox record Type. Multiple retrievals
produce a nested OR term.mailboxRecordType - a mailbox record typeNullArgumentException - mailboxRecordType
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failure
occurredUnsupportedException -
hasRecordType(mailboxRecordType) is false
mandatory - This method must be implemented.