public interface CategoryQuery extends OsidObjectQuery
This is the query for searching categories. Each method match specifies
an AND
term while multiple invocations of the same method
produce a nested OR.
Modifier and Type | Method and Description |
---|---|
void |
clearBusinessIdTerms()
Clears the business
Id terms. |
void |
clearBusinessTerms()
Clears the business terms.
|
void |
clearEntryIdTerms()
Clears the entry
Id terms. |
void |
clearEntryTerms()
Clears the entry terms.
|
BusinessQuery |
getBusinessQuery()
Gets the query for a business.
|
CategoryQueryRecord |
getCategoryQueryRecord(Type categoryRecordType)
Gets the category query record corresponding to the given
Category record Type. |
EntryQuery |
getEntryQuery()
Gets the query for an entry.
|
void |
matchAnyEntry(boolean match)
Matches any related entry.
|
void |
matchBusinessId(Id businessId,
boolean match)
Sets the business
Id for this query to match categories
assigned to businesses. |
void |
matchEntryId(Id entryId,
boolean match)
Sets the entry
Id for this query to match categories
that have a related entry. |
boolean |
supportsBusinessQuery()
Tests if a
BusinessQuery is available. |
boolean |
supportsEntryQuery()
Tests if an
EntryQuery 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 matchEntryId(Id entryId, boolean match)
Id
for this query to match categories
that have a related entry.entryId
- an entry Id
match
- true
if a positive match, false
for a negative matchNullArgumentException
- entryId
is
null
mandatory
- This method must be implemented. void clearEntryIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsEntryQuery()
EntryQuery
is available. true
if an entry query is available,
false
otherwisemandatory
- This method must be implemented. EntryQuery getEntryQuery()
OR
term.UnimplementedException
- supportsEntryQuery()
is false
optional
- This method must be implemented if
supportsEntryQuery()
is true.
void matchAnyEntry(boolean match)
match
- true
to match categories with any entry,
false
to match categories with no entriesmandatory
- This method must be implemented. void clearEntryTerms()
mandatory
- This method must be implemented. void matchBusinessId(Id businessId, boolean match)
Id
for this query to match categories
assigned to businesses.businessId
- the business Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- businessId
is
null
mandatory
- This method must be implemented. void clearBusinessIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsBusinessQuery()
BusinessQuery
is available. true
if a business query is available,
false
otherwisemandatory
- This method must be implemented. BusinessQuery getBusinessQuery()
OR
term.UnimplementedException
- supportsBusinessQuery()
is false
optional
- This method must be implemented if
supportsBusinessQuery()
is true.
void clearBusinessTerms()
mandatory
- This method must be implemented. CategoryQueryRecord getCategoryQueryRecord(Type categoryRecordType) throws OperationFailedException
Category
record Type.
Multiple record
retrievals produce a nested OR
term.categoryRecordType
- a category record typeNullArgumentException
- categoryRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(categoryRecordType)
is false
mandatory
- This method must be implemented.