Interface AssetQuery
- All Superinterfaces:
Extensible, OsidAggregateableQuery, OsidBrowsableQuery, OsidExtensibleQuery, OsidIdentifiableQuery, OsidObjectQuery, OsidQuery, OsidSourceableQuery, Suppliable
This is the query for searching assets. Each method specifies an
AND term while multiple invocations of the same method produce a nested
OR . The query record is identified by the Asset Type .
-
Method Summary
Modifier and TypeMethodDescriptionvoidClears the asset contentIdterms.voidClears the asset content terms.voidClears the compositionIdterms.voidClears the composition terms.voidClears the copyright registration terms.voidClears the copyright terms.voidClears the created time terms.voidClears the distribute alterations terms.voidClears the distribute compositions terms.voidClears the distribute verbatim terms.voidClears the locationIdterms.voidClears the location terms.voidClears the principal credits terms.voidClears the public domain terms.voidClears the published time terms.voidClears the published terms.voidClears the repositoryIdterms.voidClears the repository terms.voidClears the sourceIdterms.voidClears the source terms.voidClears the spatial coverage overlap terms.voidClears the spatial coverage terms.voidClears the temporal coverage terms.voidClears the title terms.Gets the query for the asset content.getAssetQueryRecord(Type assetRecordType) Gets the asset query record corresponding to the givenAssetrecordType.Multiuple retrievals produce a nestedORterm.Gets the query for a composition.Gets the query for a location.Gets the query for a repository.Gets the query for the source.voidmatchAnyAssetContent(boolean match) Matches assets with any content.voidmatchAnyComposition(boolean match) Matches assets with any composition mappings.voidmatchAnyCopyright(boolean match) Matches assets with any copyright statement.voidmatchAnyCopyrightRegistration(boolean match) Matches assets with any copyright registration.voidmatchAnyCreatedDate(boolean match) Matches assets with any creation time.voidmatchAnyLocation(boolean match) Matches assets with any provider.voidmatchAnyPrincipalCreditString(boolean match) Matches a principal credits that has any value.voidmatchAnyPublicDomain(boolean match) Matches assets with any public domain value.voidmatchAnyPublishedDate(boolean match) Matches assets with any published time.voidmatchAnySource(boolean match) Matches assets with any source.voidmatchAnySpatialCoverage(boolean match) Matches assets with no spatial coverage.voidmatchAnyTemporalCoverage(boolean match) Matches assets with any temporal coverage.voidmatchAnyTitle(boolean match) Matches a title that has any value.voidmatchAssetContentId(Id assetContentId, boolean match) Sets the asset contentIdfor this query.voidmatchCompositionId(Id compositionId, boolean match) Sets the compositionIdfor this query to match assets that are a part of the composition.voidmatchCopyright(String copyright, Type stringMatchType, boolean match) Adds a copyright for this query.voidmatchCopyrightRegistration(String registration, Type stringMatchType, boolean match) Adds a copyright registration for this query.voidmatchCreatedDate(DateTime start, DateTime end, boolean match) Match assets that are created between the specified time period.voidmatchDistributeAlterations(boolean alterable) Matches assets that whose alterations can be distributed.voidmatchDistributeCompositions(boolean composable) Matches assets that can be distributed as part of other compositions.voidmatchDistributeVerbatim(boolean distributable) Matches assets marked as distributable.voidmatchLocationId(Id locationId, boolean match) Sets the locationIdfor this query of spatial coverage.voidmatchPrincipalCreditString(String credit, Type stringMatchType, boolean match) Adds a principal credits for this query.voidmatchPublicDomain(boolean publicDomain) Matches assets marked as public domain.voidmatchPublished(boolean published) Marks assets that are marked as published.voidmatchPublishedDate(DateTime start, DateTime end, boolean match) Match assets that are published between the specified time period.voidmatchRepositoryId(Id repositoryId, boolean match) Sets the repositoryIdfor this query.voidmatchSourceId(Id sourceId, boolean match) Sets the sourceIdfor this query.voidmatchSpatialCoverage(SpatialUnit spatialUnit, boolean match) Matches assets that are contained within the given spatial unit.voidmatchSpatialCoverageOverlap(SpatialUnit spatialUnit, boolean match) Matches assets that overlap or touch the given spatial unit.voidmatchTemporalCoverage(DateTime start, DateTime end, boolean match) Match assets that whose coverage falls between the specified time period inclusive.voidmatchTitle(String title, Type stringMatchType, boolean match) Adds a title for this query.booleanTests if anAssetContentQueryis available.booleanTests if aCompositionQueryis available.booleanTests if aLocationQueryis available for the provider.booleanTests if aRepositoryQueryis available.booleanTests if aResourceQueryis available for the source.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface OsidExtensibleQuery
clearRecordTerms, matchAnyRecord, matchRecordTypeModifier and TypeMethodDescriptionvoidClears all recordTypeterms.voidmatchAnyRecord(boolean match) Matches an object that has any record.voidmatchRecordType(Type recordType, boolean match) Sets aTypefor querying objects having records implementing a given record type.Methods inherited from interface OsidIdentifiableQuery
clearIdTerms, matchIdModifier and TypeMethodDescriptionvoidClears allIdterms.voidAdds anIdto match.Methods inherited from interface OsidObjectQuery
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, supportsSubjectRelevancyQueryModifier and TypeMethodDescriptionvoidClears all commentIdterms.voidClears all comment terms.voidClears all creditIdterms.voidClears all credit terms.voidClears all description terms.voidClears all display name terms.voidClears all genus type terms.voidClears all journal entryIdterms.voidClears all journal entry terms.voidClears all genus type terms.voidClears all relationshipIdterms.voidClears all relationshipIdterms.voidClears all relationship terms.voidClears all stateIdterms.voidClears all state terms.voidClears all statistic terms.voidClears all subjectIdterms.voidClears all subject relevancy terms.voidClears all subject terms.Gets the query for a comment.Gets the query for an ackowledgement credit.Gets the query for a journal entry.Gets the query for relationship.Gets the query for a state.Gets the query for a statistic.Gets the query for a subject.Gets the query for a subject relevancy.voidmatchAnyComment(boolean match) Matches an object that has anyCommentin the givenBook.voidmatchAnyCredit(boolean match) Matches an object that has anyCredit.voidmatchAnyDescription(boolean match) Matches a description that has any value.voidmatchAnyDisplayName(boolean match) Matches any object with a display name.voidmatchAnyGenusType(boolean match) Matches an object that has any genus type.voidmatchAnyJournalEntry(boolean match) Matches an object that has anyJournalEntryin the givenJournal.voidmatchAnyRelationship(boolean match) Matches an object that has anyRelationship.voidmatchAnyState(boolean match) Matches an object that has any mapping to aStatein the givenProcess.voidmatchAnyStatistic(boolean match) Matches an object that has anyStatistic.voidmatchAnySubject(boolean match) Matches an object that has any relationship to aSubject.voidmatchCommentId(Id commentId, boolean match) Matches an object that has the given comment.voidmatchCreditId(Id creditId, boolean match) Matches an object that has the given credit.voidmatchDescription(String description, Type stringMatchType, boolean match) Adds a description name to match.voidmatchDisplayName(String displayName, Type stringMatchType, boolean match) Adds a display name to match.voidmatchGenusType(Type genusType, boolean match) Sets aTypefor querying objects of a given genus.voidmatchJournalEntryId(Id journalEntryId, boolean match) Matches an object that has the given journal entry.voidmatchParentGenusType(Type genusType, boolean match) Sets aTypefor querying objects of a given genus.voidmatchRelationshipId(Id relationshipId, boolean match) Matches an object that has the given relationship.voidmatchRelationshipPeerId(Id peerId, boolean match) Matches an object that has a relationship to the given peerId.voidmatchStateId(Id stateId, boolean match) Matches an object mapped to the given state.voidmatchSubjectId(Id subjectId, boolean match) Matches an object with a relationship to the given subject.booleanTests if aCommentQueryis available.booleanTests if aCreditQueryis available to provide queries of related acknowledgements.booleanTests if aJournalEntryis available to provide queries of journaledOsidObjects.booleanTests if aRelationshipQueryis available.booleanTests if aStateQueryis available to provide queries of processed objects.booleanTests if aStatisticQueryis available to provide statistical queries.booleanTests if aSubjectQueryis available.booleanTests if aRelevancyQueryis available to provide queries about the relationships toSubjects.Methods inherited from interface OsidQuery
clearAnyTerms, clearKeywordTerms, getStringMatchTypes, matchAny, matchKeyword, supportsStringMatchTypeModifier and TypeMethodDescriptionvoidClears the match any terms.voidClears all keyword terms.Gets the string matching types supported.voidmatchAny(boolean match) Matches any object.voidmatchKeyword(String keyword, Type stringMatchType, boolean match) Adds a keyword to match.booleansupportsStringMatchType(Type stringMatchType) Tests if the given string matching type is supported.Methods inherited from interface OsidSourceableQuery
clearBrandingIdTerms, clearBrandingTerms, clearLicenseTerms, clearProviderIdTerms, clearProviderTerms, getBrandingQuery, getProviderQuery, matchAnyBranding, matchAnyLicense, matchAnyProvider, matchBrandingId, matchLicense, matchProviderId, supportsBrandingQuery, supportsProviderQueryModifier and TypeMethodDescriptionvoidClears all assetIdterms.voidClears all branding terms.voidClears all license terms.voidClears all providerIdterms.voidClears all provider terms.getBrandingQuery(boolean match) Gets the query for an asset.getProviderQuery(boolean match) Gets the query for the provider.voidmatchAnyBranding(boolean match) Match sourceables with any branding.voidmatchAnyLicense(boolean match) Matches any object with a license.voidmatchAnyProvider(boolean match) Match sourceables with a provider value.voidmatchBrandingId(Id assetId, boolean match) Match theIdof an asset used for branding.voidmatchLicense(String license, Type stringMatchType, boolean match) Adds a license to match.voidmatchProviderId(Id resourceId, boolean match) Match theIdof the provider resource.booleanTests if anAssetQueryfor the branding is available.booleanTests if aResourceQueryfor the provider is available.
-
Method Details
-
matchTitle
Adds a title for this query.- Parameters:
title- title string to matchstringMatchType- the string match typematch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-titlenot ofstringMatchTypeNullArgumentException-titleorstringMatchTypeisnullUnsupportedException-supportsStringMatchType(stringMatchType)isfalse- Compliance:
mandatory- This method must be implemented.
-
matchAnyTitle
void matchAnyTitle(boolean match) Matches a title that has any value.- Parameters:
match-trueto match assets with any title,falseto match assets with no title- Compliance:
mandatory- This method must be implemented.
-
clearTitleTerms
void clearTitleTerms()Clears the title terms.- Compliance:
mandatory- This method must be implemented.
-
matchPublicDomain
void matchPublicDomain(boolean publicDomain) Matches assets marked as public domain.- Parameters:
publicDomain- public domain flag- Compliance:
mandatory- This method must be implemented.
-
matchAnyPublicDomain
void matchAnyPublicDomain(boolean match) Matches assets with any public domain value.- Parameters:
match-trueto match assets with any public domain value,falseto match assets with no public domain value- Compliance:
mandatory- This method must be implemented.
-
clearPublicDomainTerms
void clearPublicDomainTerms()Clears the public domain terms.- Compliance:
mandatory- This method must be implemented.
-
matchCopyright
Adds a copyright for this query.- Parameters:
copyright- copyright string to matchstringMatchType- the string match typematch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-copyrightnot ofstringMatchTypeNullArgumentException-copyrightorstringMatchTypeisnullUnsupportedException-supportsStringMatchType(stringMatchType)isfalse- Compliance:
mandatory- This method must be implemented.
-
matchAnyCopyright
void matchAnyCopyright(boolean match) Matches assets with any copyright statement.- Parameters:
match-trueto match assets with any copyright value,falseto match assets with no copyright value- Compliance:
mandatory- This method must be implemented.
-
clearCopyrightTerms
void clearCopyrightTerms()Clears the copyright terms.- Compliance:
mandatory- This method must be implemented.
-
matchCopyrightRegistration
Adds a copyright registration for this query.- Parameters:
registration- copyright registration string to matchstringMatchType- the string match typematch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-registrationnot ofstringMatchTypeNullArgumentException-registrationorstringMatchTypeisnullUnsupportedException-supportsStringMatchType(stringMatchType)isfalse- Compliance:
mandatory- This method must be implemented.
-
matchAnyCopyrightRegistration
void matchAnyCopyrightRegistration(boolean match) Matches assets with any copyright registration.- Parameters:
match-trueto match assets with any copyright registration value,falseto match assets with no copyright registration value- Compliance:
mandatory- This method must be implemented.
-
clearCopyrightRegistrationTerms
void clearCopyrightRegistrationTerms()Clears the copyright registration terms.- Compliance:
mandatory- This method must be implemented.
-
matchDistributeVerbatim
void matchDistributeVerbatim(boolean distributable) Matches assets marked as distributable.- Parameters:
distributable- distribute verbatim rights flag- Compliance:
mandatory- This method must be implemented.
-
clearDistributeVerbatimTerms
void clearDistributeVerbatimTerms()Clears the distribute verbatim terms.- Compliance:
mandatory- This method must be implemented.
-
matchDistributeAlterations
void matchDistributeAlterations(boolean alterable) Matches assets that whose alterations can be distributed.- Parameters:
alterable- distribute alterations rights flag- Compliance:
mandatory- This method must be implemented.
-
clearDistributeAlterationsTerms
void clearDistributeAlterationsTerms()Clears the distribute alterations terms.- Compliance:
mandatory- This method must be implemented.
-
matchDistributeCompositions
void matchDistributeCompositions(boolean composable) Matches assets that can be distributed as part of other compositions.- Parameters:
composable- distribute compositions rights flag- Compliance:
mandatory- This method must be implemented.
-
clearDistributeCompositionsTerms
void clearDistributeCompositionsTerms()Clears the distribute compositions terms.- Compliance:
mandatory- This method must be implemented.
-
matchSourceId
Sets the sourceIdfor this query.- Parameters:
sourceId- the sourceIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-sourceIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearSourceIdTerms
void clearSourceIdTerms()Clears the sourceIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsSourceQuery
boolean supportsSourceQuery()Tests if aResourceQueryis available for the source.- Returns:
trueif a resource query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getSourceQuery
ResourceQuery getSourceQuery()Gets the query for the source. Multiple queries can be retrieved for a nestedORterm.- Returns:
- the source query
- Throws:
UnimplementedException-supportsSourceQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsSourceQuery()} is {@code true} .
-
matchAnySource
void matchAnySource(boolean match) Matches assets with any source.- Parameters:
match-trueto match assets with any source,falseto match assets with no sources- Compliance:
mandatory- This method must be implemented.
-
clearSourceTerms
void clearSourceTerms()Clears the source terms.- Compliance:
mandatory- This method must be implemented.
-
matchCreatedDate
Match assets that are created between the specified time period.- Parameters:
start- start time of the queryend- end time of the querymatch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-endis les thanstartNullArgumentException-startorendisnull- Compliance:
mandatory- This method must be implemented.
-
matchAnyCreatedDate
void matchAnyCreatedDate(boolean match) Matches assets with any creation time.- Parameters:
match-trueto match assets with any created time,falseto match assets with no cerated time- Compliance:
mandatory- This method must be implemented.
-
clearCreatedDateTerms
void clearCreatedDateTerms()Clears the created time terms.- Compliance:
mandatory- This method must be implemented.
-
matchPublished
void matchPublished(boolean published) Marks assets that are marked as published.- Parameters:
published- published flag- Compliance:
mandatory- This method must be implemented.
-
clearPublishedTerms
void clearPublishedTerms()Clears the published terms.- Compliance:
mandatory- This method must be implemented.
-
matchPublishedDate
Match assets that are published between the specified time period.- Parameters:
start- start time of the queryend- end time of the querymatch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-endis les thanstartNullArgumentException-startorendisnull- Compliance:
mandatory- This method must be implemented.
-
matchAnyPublishedDate
void matchAnyPublishedDate(boolean match) Matches assets with any published time.- Parameters:
match-trueto match assets with any published time,falseto match assets with no published time- Compliance:
mandatory- This method must be implemented.
-
clearPublishedDateTerms
void clearPublishedDateTerms()Clears the published time terms.- Compliance:
mandatory- This method must be implemented.
-
matchPrincipalCreditString
Adds a principal credits for this query.- Parameters:
credit- credit string to matchstringMatchType- the string match typematch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-creditnot ofstringMatchTypeNullArgumentException-creditorstringMatchTypeisnullUnsupportedException-supportsStringMatchType(stringMatchType)isfalse- Compliance:
mandatory- This method must be implemented.
-
matchAnyPrincipalCreditString
void matchAnyPrincipalCreditString(boolean match) Matches a principal credits that has any value.- Parameters:
match-trueto match assets with any principal credits,falseto match assets with no principal credits- Compliance:
mandatory- This method must be implemented.
-
clearPrincipalCreditStringTerms
void clearPrincipalCreditStringTerms()Clears the principal credits terms.- Compliance:
mandatory- This method must be implemented.
-
matchTemporalCoverage
Match assets that whose coverage falls between the specified time period inclusive.- Parameters:
start- start time of the queryend- end time of the querymatch-truefor a positive match,falsefor a negative match- Throws:
InvalidArgumentException-endis less thanstartNullArgumentException-startorendisnull- Compliance:
mandatory- This method must be implemented.
-
matchAnyTemporalCoverage
void matchAnyTemporalCoverage(boolean match) Matches assets with any temporal coverage.- Parameters:
match-trueto match assets with any temporal coverage,falseto match assets with no temporal coverage- Compliance:
mandatory- This method must be implemented.
-
clearTemporalCoverageTerms
void clearTemporalCoverageTerms()Clears the temporal coverage terms.- Compliance:
mandatory- This method must be implemented.
-
matchLocationId
Sets the locationIdfor this query of spatial coverage.- Parameters:
locationId- the locationIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-locationIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearLocationIdTerms
void clearLocationIdTerms()Clears the locationIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsLocationQuery
boolean supportsLocationQuery()Tests if aLocationQueryis available for the provider.- Returns:
trueif a location query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getLocationQuery
LocationQuery getLocationQuery()Gets the query for a location. Multiple queries can be retrieved for a nestedORterm.- Returns:
- the location query
- Throws:
UnimplementedException-supportsLocationQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsLocationQuery()} is {@code true} .
-
matchAnyLocation
void matchAnyLocation(boolean match) Matches assets with any provider.- Parameters:
match-trueto match assets with any location,falseto match assets with no locations- Compliance:
mandatory- This method must be implemented.
-
clearLocationTerms
void clearLocationTerms()Clears the location terms.- Compliance:
mandatory- This method must be implemented.
-
matchSpatialCoverage
Matches assets that are contained within the given spatial unit.- Parameters:
spatialUnit- the spatial unitmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-spatialUnitisnullUnsupportedException-spatialUnitis not suppoted- Compliance:
mandatory- This method must be implemented.
-
clearSpatialCoverageTerms
void clearSpatialCoverageTerms()Clears the spatial coverage terms.- Compliance:
mandatory- This method must be implemented.
-
matchSpatialCoverageOverlap
Matches assets that overlap or touch the given spatial unit.- Parameters:
spatialUnit- the spatial unitmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-spatialUnitisnullUnsupportedException-spatialUnitis not suppoted- Compliance:
mandatory- This method must be implemented.
-
matchAnySpatialCoverage
void matchAnySpatialCoverage(boolean match) Matches assets with no spatial coverage.- Parameters:
match-trueto match assets with any spatial coverage,falseto match assets with no spatial coverage- Compliance:
mandatory- This method must be implemented.
-
clearSpatialCoverageOverlapTerms
void clearSpatialCoverageOverlapTerms()Clears the spatial coverage overlap terms.- Compliance:
mandatory- This method must be implemented.
-
matchAssetContentId
Sets the asset contentIdfor this query.- Parameters:
assetContentId- the asset contentIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-assetContentIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearAssetContentIdTerms
void clearAssetContentIdTerms()Clears the asset contentIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsAssetContentQuery
boolean supportsAssetContentQuery()Tests if anAssetContentQueryis available.- Returns:
trueif an asset content query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getAssetContentQuery
AssetContentQuery getAssetContentQuery()Gets the query for the asset content. Multiple queries can be retrieved for a nestedORterm.- Returns:
- the asset contents query
- Throws:
UnimplementedException-supportsAssetContentQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsAssetContentQuery()} is {@code true} .
-
matchAnyAssetContent
void matchAnyAssetContent(boolean match) Matches assets with any content.- Parameters:
match-trueto match assets with any content,falseto match assets with no content- Compliance:
mandatory- This method must be implemented.
-
clearAssetContentTerms
void clearAssetContentTerms()Clears the asset content terms.- Compliance:
mandatory- This method must be implemented.
-
matchCompositionId
Sets the compositionIdfor this query to match assets that are a part of the composition.- Parameters:
compositionId- the compositionIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-compositionIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearCompositionIdTerms
void clearCompositionIdTerms()Clears the compositionIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsCompositionQuery
boolean supportsCompositionQuery()Tests if aCompositionQueryis available.- Returns:
trueif a composition query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getCompositionQuery
CompositionQuery getCompositionQuery()Gets the query for a composition. Multiple queries can be retrieved for a nestedORterm.- Returns:
- the composition query
- Throws:
UnimplementedException-supportsCompositionQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsCompositionQuery()} is {@code true} .
-
matchAnyComposition
void matchAnyComposition(boolean match) Matches assets with any composition mappings.- Parameters:
match-trueto match assets with any composition,falseto match assets with no composition mappings- Compliance:
mandatory- This method must be implemented.
-
clearCompositionTerms
void clearCompositionTerms()Clears the composition terms.- Compliance:
mandatory- This method must be implemented.
-
matchRepositoryId
Sets the repositoryIdfor this query.- Parameters:
repositoryId- the repositoryIdmatch-truefor a positive match,falsefor a negative match- Throws:
NullArgumentException-repositoryIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearRepositoryIdTerms
void clearRepositoryIdTerms()Clears the repositoryIdterms.- Compliance:
mandatory- This method must be implemented.
-
supportsRepositoryQuery
boolean supportsRepositoryQuery()Tests if aRepositoryQueryis available.- Returns:
trueif a repository query is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getRepositoryQuery
RepositoryQuery getRepositoryQuery()Gets the query for a repository. Multiple queries can be retrieved for a nestedORterm.- Returns:
- the repository query
- Throws:
UnimplementedException-supportsRepositoryQuery()isfalse- Compliance:
optional- This method must be implemented if {@code supportsRepositoryQuery()} is {@code true} .
-
clearRepositoryTerms
void clearRepositoryTerms()Clears the repository terms.- Compliance:
mandatory- This method must be implemented.
-
getAssetQueryRecord
Gets the asset query record corresponding to the givenAssetrecordType.Multiuple retrievals produce a nestedORterm.- Parameters:
assetRecordType- an asset record type- Returns:
- the asset query record
- Throws:
NullArgumentException-assetRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(assetRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-