public interface BinQuery extends OsidCatalogQuery
This is the query for searching bins. Each method specifies an
AND
term while multiple invocations of the same method produce a
nested OR.
Modifier and Type | Method and Description |
---|---|
void |
clearAncestorBinIdTerms()
Clears the ancestor bin
Id terms. |
void |
clearAncestorBinTerms()
Clears the ancestor bin terms.
|
void |
clearDescendantBinIdTerms()
Clears the descendant bin
Id terms. |
void |
clearDescendantBinTerms()
Clears the descendant bin terms.
|
void |
clearResourceIdTerms()
Clears the resource
Id terms. |
void |
clearResourceTerms()
Clears the resource terms.
|
BinQuery |
getAncestorBinQuery()
Gets the query for a bin.
|
BinQueryRecord |
getBinQueryRecord(Type binRecordType)
Gets the bin query record corresponding to the given
Bin
record Type. |
BinQuery |
getDescendantBinQuery()
Gets the query for a bin.
|
ResourceQuery |
getResourceQuery()
Gets the query for a resource.
|
void |
matchAncestorBinId(Id binid,
boolean match)
Sets the bin
Id for this query to match bins that have
the specified bin as an ancestor. |
void |
matchAnyAncestorBin(boolean match)
Matches bins with any ancestor.
|
void |
matchAnyDescendantBin(boolean match)
Matches bins with any descendant.
|
void |
matchAnyResource(boolean match)
Matches bins with any resource.
|
void |
matchDescendantBinId(Id binid,
boolean match)
Sets the bin
Id for this query to match bins that have
the specified bin as a descendant. |
void |
matchResourceId(Id resourceId,
boolean match)
Sets the resource
Id for this query. |
boolean |
supportsAncestorBinQuery()
Tests if a
BinQuery is available. |
boolean |
supportsDescendantBinQuery()
Tests if a
BinQuery 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
clearBrandingIdTerms, clearBrandingTerms, clearLicenseTerms, clearProviderIdTerms, clearProviderTerms, getBrandingQuery, getProviderQuery, matchAnyBranding, matchAnyLicense, matchAnyProvider, matchBrandingId, matchLicense, matchProviderId, supportsBrandingQuery, supportsProviderQuery
void matchResourceId(Id resourceId, boolean match)
Id
for this query.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 matchAnyResource(boolean match)
match
- true
to match bins with any resource,
false
to match bins with no resourcesmandatory
- This method must be implemented. void clearResourceTerms()
mandatory
- This method must be implemented. void matchAncestorBinId(Id binid, boolean match)
Id
for this query to match bins that have
the specified bin as an ancestor.binid
- a bin Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- binId
is
null
mandatory
- This method must be implemented. void clearAncestorBinIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsAncestorBinQuery()
BinQuery
is available. true
if a bin query is available, false
otherwisemandatory
- This method must be implemented. BinQuery getAncestorBinQuery()
OR
term.UnimplementedException
-
supportsAncestorBinQuery()
is false
optional
- This method must be implemented if
supportsAncestorBinQuery()
is true.
void matchAnyAncestorBin(boolean match)
match
- true
to match bins with any ancestor,
false
to match root binsmandatory
- This method must be implemented. void clearAncestorBinTerms()
mandatory
- This method must be implemented. void matchDescendantBinId(Id binid, boolean match)
Id
for this query to match bins that have
the specified bin as a descendant.binid
- a bin Id
match
- true
for a positive match, false
for a negative matchNullArgumentException
- binId
is
null
mandatory
- This method must be implemented. void clearDescendantBinIdTerms()
Id
terms.mandatory
- This method must be implemented. boolean supportsDescendantBinQuery()
BinQuery
is available. true
if a bin query is available, false
otherwisemandatory
- This method must be implemented. BinQuery getDescendantBinQuery()
OR
term.UnimplementedException
-
supportsDescendantBinQuery()
is false
optional
- This method must be implemented if
supportsDescendantBinQuery()
is true.
void matchAnyDescendantBin(boolean match)
match
- true
to match bins with any descendant,
false
to match leaf binsmandatory
- This method must be implemented. void clearDescendantBinTerms()
mandatory
- This method must be implemented. BinQueryRecord getBinQueryRecord(Type binRecordType) throws OperationFailedException
Bin
record Type.
Multiple retrievals produce a
nested OR
term.binRecordType
- a bin record typeNullArgumentException
- binRecordType
is
null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(binRecordType)
is false
mandatory
- This method must be implemented.