public interface CatalogQuery extends OsidCatalogQuery
This is the query for searching catalogs. Each method specifies an
AND term while multiple invocations of the same method
produces a nested OR.
| Modifier and Type | Method and Description |
|---|---|
void |
clearAncestorCatalogIdTerms()
Clears the ancestor
Id query terms. |
void |
clearAncestorCatalogTerms()
Clears the ancestor query terms.
|
void |
clearDescendantCatalogIdTerms()
Clears the descendant
Id query terms. |
void |
clearDescendantCatalogTerms()
Clears the descendant query terms.
|
void |
clearIdTerms()
Clears the
Id query terms. |
CatalogQuery |
getAncestorCatalogQuery()
Gets the query for a catalog.
|
CatalogQueryRecord |
getCatalogQueryRecord(Type catalogRecordType)
Gets the catalog query record corresponding to the given
Catalog record Type. |
CatalogQuery |
getDescendantCatalogQuery()
Gets the query for a catalog.
|
void |
matchAncestorCatalogId(Id catalogId,
boolean match)
Sets the catalog
Id for this query to match catalogs
that have the specified catalog as an ancestor. |
void |
matchAnyAncestorCatalog(boolean match)
Matches catalogs with any ancestor.
|
void |
matchAnyDescendantCatalog(boolean match)
Matches catalogs with any descendant.
|
void |
matchAnyId(boolean match)
Matches catalogs that have any
Id mapping. |
void |
matchDescendantCatalogId(Id catalogId,
boolean match)
Sets the catalog
Id for this query to match catalogs
that have the specified catalog as an descendant. |
void |
matchId(Id id,
boolean match)
Matches an
Id in this catalog. |
boolean |
supportsAncestorCatalogQuery()
Tests if a
CatalogQuery is available. |
boolean |
supportsDescendantCatalogQuery()
Tests if a
CatalogQuery 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, supportsSubjectRelevancyQueryclearRecordTerms, matchAnyRecord, matchRecordTypegetRecordTypes, hasRecordTypeclearAnyTerms, clearKeywordTerms, getStringMatchTypes, matchAny, matchKeyword, supportsStringMatchTypeclearBrandingIdTerms, clearBrandingTerms, clearLicenseTerms, clearProviderIdTerms, clearProviderTerms, getBrandingQuery, getProviderQuery, matchAnyBranding, matchAnyLicense, matchAnyProvider, matchBrandingId, matchLicense, matchProviderId, supportsBrandingQuery, supportsProviderQueryvoid matchId(Id id, boolean match)
Id in this catalog. Multiple Ids are treated
as a boolean OR. matchId in interface OsidIdentifiableQueryid - Id to matchmatch - true if for a positive match,
false for a negative matchNullArgumentException - id is
null mandatory - This method must be implemented. void matchAnyId(boolean match)
Id mapping.match - true to match catalogs with any Id
mapping, false to match catalogs with
no Id mappingmandatory - This method must be implemented. void clearIdTerms()
Id query terms.clearIdTerms in interface OsidIdentifiableQuerymandatory - This method must be implemented. void matchAncestorCatalogId(Id catalogId, boolean match)
Id for this query to match catalogs
that have the specified catalog as an ancestor.catalogId - a catalog Id match - true for a positive match, false
for a negative matchNullArgumentException - catalogId is
null mandatory - This method must be implemented. void clearAncestorCatalogIdTerms()
Id query terms.mandatory - This method must be implemented. boolean supportsAncestorCatalogQuery()
CatalogQuery is available. true if a catalog query is available,
false otherwisemandatory - This method must be implemented. CatalogQuery getAncestorCatalogQuery()
OR term.UnimplementedException -
supportsAncestorCatalogQuery() is false optional - This method must be implemented if
supportsAncestorCatalogQuery() is true.
void matchAnyAncestorCatalog(boolean match)
match - true to match catalogs with any ancestor,
false to match root catalogsmandatory - This method must be implemented. void clearAncestorCatalogTerms()
mandatory - This method must be implemented. void matchDescendantCatalogId(Id catalogId, boolean match)
Id for this query to match catalogs
that have the specified catalog as an descendant.catalogId - a catalog Id match - true for a positive match, false
for a negative matchNullArgumentException - catalogId is
null mandatory - This method must be implemented. void clearDescendantCatalogIdTerms()
Id query terms.mandatory - This method must be implemented. boolean supportsDescendantCatalogQuery()
CatalogQuery is available. true if a catalog query is available,
false otherwisemandatory - This method must be implemented. CatalogQuery getDescendantCatalogQuery()
OR term.UnimplementedException -
supportsDescendantCatalogQuery() is false
optional - This method must be implemented if
supportsDescendantCatalogQuery() is true.
void matchAnyDescendantCatalog(boolean match)
match - true to match catalogs with any
descendant, false to match leaf catalogsmandatory - This method must be implemented. void clearDescendantCatalogTerms()
mandatory - This method must be implemented. CatalogQueryRecord getCatalogQueryRecord(Type catalogRecordType) throws OperationFailedException
Catalog record Type. Multiple record retrievals
produce a boolean OR term.catalogRecordType - a catalog record typeNullArgumentException - catalogRecordType
is null OperationFailedException - unable to complete requestUnsupportedException -
hasRecordType(catalogRecordType) is false
mandatory - This method must be implemented.