public interface AssetQuery extends OsidObjectQuery, OsidAggregateableQuery, OsidSourceableQuery
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.
| Modifier and Type | Method and Description |
|---|---|
void |
clearAssetContentIdTerms()
Clears the asset content
Id terms. |
void |
clearAssetContentTerms()
Clears the asset content terms.
|
void |
clearCompositionIdTerms()
Clears the composition
Id terms. |
void |
clearCompositionTerms()
Clears the composition terms.
|
void |
clearCopyrightRegistrationTerms()
Clears the copyright registration terms.
|
void |
clearCopyrightTerms()
Clears the copyright terms.
|
void |
clearCreatedDateTerms()
Clears the created time terms.
|
void |
clearDistributeAlterationsTerms()
Clears the distribute alterations terms.
|
void |
clearDistributeCompositionsTerms()
Clears the distribute compositions terms.
|
void |
clearDistributeVerbatimTerms()
Clears the distribute verbatim terms.
|
void |
clearLocationIdTerms()
Clears the location
Id terms. |
void |
clearLocationTerms()
Clears the location terms.
|
void |
clearPrincipalCreditStringTerms()
Clears the principal credit string terms.
|
void |
clearPublicDomainTerms()
Clears the public domain terms.
|
void |
clearPublishedDateTerms()
Clears the published time terms.
|
void |
clearPublishedTerms()
Clears the published terms.
|
void |
clearRepositoryIdTerms()
Clears the repository
Id terms. |
void |
clearRepositoryTerms()
Clears the repository terms.
|
void |
clearSourceIdTerms()
Clears the source
Id terms. |
void |
clearSourceTerms()
Clears the source terms.
|
void |
clearSpatialCoverageOverlapTerms()
Clears the spatial coverage overlap terms.
|
void |
clearSpatialCoverageTerms()
Clears the spatial coverage terms.
|
void |
clearTemporalCoverageTerms()
Clears the temporal coverage terms.
|
void |
clearTitleTerms()
Clears the title terms.
|
AssetContentQuery |
getAssetContentQuery()
Gets the query for the asset content.
|
AssetQueryRecord |
getAssetQueryRecord(Type assetRecordType)
Gets the asset query record corresponding to the given
Asset
record Type. |
CompositionQuery |
getCompositionQuery()
Gets the query for a composition.
|
LocationQuery |
getLocationQuery()
Gets the query for a location.
|
RepositoryQuery |
getRepositoryQuery()
Gets the query for a repository.
|
ResourceQuery |
getSourceQuery()
Gets the query for the source.
|
void |
matchAnyAssetContent(boolean match)
Matches assets with any content.
|
void |
matchAnyComposition(boolean match)
Matches assets with any composition mappings.
|
void |
matchAnyCopyright(boolean match)
Matches assets with any copyright statement.
|
void |
matchAnyCopyrightRegistration(boolean match)
Matches assets with any copyright registration.
|
void |
matchAnyCreatedDate(boolean match)
Matches assets with any creation time.
|
void |
matchAnyLocation(boolean match)
Matches assets with any provider.
|
void |
matchAnyPrincipalCreditString(boolean match)
Matches a principal credit string that has any value.
|
void |
matchAnyPublicDomain(boolean match)
Matches assets with any public domain value.
|
void |
matchAnyPublishedDate(boolean match)
Matches assets with any published time.
|
void |
matchAnySource(boolean match)
Matches assets with any source.
|
void |
matchAnySpatialCoverage(boolean match)
Matches assets with no spatial coverage.
|
void |
matchAnyTemporalCoverage(boolean match)
Matches assets with any temporal coverage.
|
void |
matchAnyTitle(boolean match)
Matches a title that has any value.
|
void |
matchAssetContentId(Id assetContentId,
boolean match)
Sets the asset content
Id for this query. |
void |
matchCompositionId(Id compositionId,
boolean match)
Sets the composition
Id for this query to match assets
that are a part of the composition. |
void |
matchCopyright(java.lang.String copyright,
Type stringMatchType,
boolean match)
Adds a copyright for this query.
|
void |
matchCopyrightRegistration(java.lang.String registration,
Type stringMatchType,
boolean match)
Adds a copyright registration for this query.
|
void |
matchCreatedDate(DateTime start,
DateTime end,
boolean match)
Match assets that are created between the specified time period.
|
void |
matchDistributeAlterations(boolean alterable)
Matches assets that whose alterations can be distributed.
|
void |
matchDistributeCompositions(boolean composable)
Matches assets that can be distributed as part of other compositions.
|
void |
matchDistributeVerbatim(boolean distributable)
Matches assets marked as distributable.
|
void |
matchLocationId(Id locationId,
boolean match)
Sets the location
Id for this query of spatial
coverage. |
void |
matchPrincipalCreditString(java.lang.String credit,
Type stringMatchType,
boolean match)
Adds a principal credit string for this query.
|
void |
matchPublicDomain(boolean publicDomain)
Matches assets marked as public domain.
|
void |
matchPublished(boolean published)
Marks assets that are marked as published.
|
void |
matchPublishedDate(DateTime start,
DateTime end,
boolean match)
Match assets that are published between the specified time period.
|
void |
matchRepositoryId(Id repositoryId,
boolean match)
Sets the repository
Id for this query. |
void |
matchSourceId(Id sourceId,
boolean match)
Sets the source
Id for this query. |
void |
matchSpatialCoverage(SpatialUnit spatialUnit,
boolean match)
Matches assets that are contained within the given spatial unit.
|
void |
matchSpatialCoverageOverlap(SpatialUnit spatialUnit,
boolean match)
Matches assets that overlap or touch the given spatial unit.
|
void |
matchTemporalCoverage(DateTime start,
DateTime end,
boolean match)
Match assets that whose coverage falls between the specified time
period inclusive.
|
void |
matchTitle(java.lang.String title,
Type stringMatchType,
boolean match)
Adds a title for this query.
|
boolean |
supportsAssetContentQuery()
Tests if an
AssetContentQuery is available. |
boolean |
supportsCompositionQuery()
Tests if a
CompositionQuery is available. |
boolean |
supportsLocationQuery()
Tests if a
LocationQuery is available for the provider. |
boolean |
supportsRepositoryQuery()
Tests if a
RepositoryQuery is available. |
boolean |
supportsSourceQuery()
Tests if a
ResourceQuery is available for the source. |
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 matchTitle(java.lang.String title,
Type stringMatchType,
boolean match)
title - title string to matchstringMatchType - the string match typematch - true for a positive match, false
for a negative matchInvalidArgumentException - title not of
stringMatchType NullArgumentException - title or
stringMatchType is null UnsupportedException -
supportsStringMatchType(stringMatchType) is
false mandatory - This method must be implemented. void matchAnyTitle(boolean match)
match - true to match assets with any title,
false to match assets with no titlemandatory - This method must be implemented. void clearTitleTerms()
mandatory - This method must be implemented. void matchPublicDomain(boolean publicDomain)
publicDomain - public domain flagmandatory - This method must be implemented. void matchAnyPublicDomain(boolean match)
match - true to match assets with any public
domain value, false to match assets with no
public domain valuemandatory - This method must be implemented. void clearPublicDomainTerms()
mandatory - This method must be implemented. void matchCopyright(java.lang.String copyright,
Type stringMatchType,
boolean match)
copyright - copyright string to matchstringMatchType - the string match typematch - true for a positive match, false
for a negative matchInvalidArgumentException - copyright not
of stringMatchType NullArgumentException - copyright or
stringMatchType is null UnsupportedException -
supportsStringMatchType(stringMatchType) is
false mandatory - This method must be implemented. void matchAnyCopyright(boolean match)
match - true to match assets with any copyright
value, false to match assets with no copyright
valuemandatory - This method must be implemented. void clearCopyrightTerms()
mandatory - This method must be implemented. void matchCopyrightRegistration(java.lang.String registration,
Type stringMatchType,
boolean match)
registration - copyright registration string to matchstringMatchType - the string match typematch - true for a positive match, false
for a negative matchInvalidArgumentException - registration
not of stringMatchType NullArgumentException - registration or
stringMatchType is null UnsupportedException -
supportsStringMatchType(stringMatchType) is
false mandatory - This method must be implemented. void matchAnyCopyrightRegistration(boolean match)
match - true to match assets with any copyright
registration value, false to match assets with
no copyright registration valuemandatory - This method must be implemented. void clearCopyrightRegistrationTerms()
mandatory - This method must be implemented. void matchDistributeVerbatim(boolean distributable)
distributable - distribute verbatim rights flagmandatory - This method must be implemented. void clearDistributeVerbatimTerms()
mandatory - This method must be implemented. void matchDistributeAlterations(boolean alterable)
alterable - distribute alterations rights flagmandatory - This method must be implemented. void clearDistributeAlterationsTerms()
mandatory - This method must be implemented. void matchDistributeCompositions(boolean composable)
composable - distribute compositions rights flagmandatory - This method must be implemented. void clearDistributeCompositionsTerms()
mandatory - This method must be implemented. void matchSourceId(Id sourceId, boolean match)
Id for this query.sourceId - the source Id match - true for a positive match, false
for a negative matchNullArgumentException - sourceId is
null mandatory - This method must be implemented. void clearSourceIdTerms()
Id terms.mandatory - This method must be implemented. boolean supportsSourceQuery()
ResourceQuery is available for the source. true if a resource query is available,
false otherwisemandatory - This method must be implemented. ResourceQuery getSourceQuery()
OR term.UnimplementedException - supportsSourceQuery()
is false optional - This method must be implemented if
supportsSourceQuery() is true. void matchAnySource(boolean match)
match - true to match assets with any source,
false to match assets with no sourcesmandatory - This method must be implemented. void clearSourceTerms()
mandatory - This method must be implemented. void matchCreatedDate(DateTime start, DateTime end, boolean match)
start - start time of the queryend - end time of the querymatch - true for a positive match, false
for a negative matchInvalidArgumentException - end is les
than start NullArgumentException - start or
end is null mandatory - This method must be implemented. void matchAnyCreatedDate(boolean match)
match - true to match assets with any created
time, false to match assets with no cerated
timemandatory - This method must be implemented. void clearCreatedDateTerms()
mandatory - This method must be implemented. void matchPublished(boolean published)
published - published flagmandatory - This method must be implemented. void clearPublishedTerms()
mandatory - This method must be implemented. void matchPublishedDate(DateTime start, DateTime end, boolean match)
start - start time of the queryend - end time of the querymatch - true for a positive match, false
for a negative matchInvalidArgumentException - end is les
than start NullArgumentException - start or
end is null mandatory - This method must be implemented. void matchAnyPublishedDate(boolean match)
match - true to match assets with any published
time, false to match assets with no published
timemandatory - This method must be implemented. void clearPublishedDateTerms()
mandatory - This method must be implemented. void matchPrincipalCreditString(java.lang.String credit,
Type stringMatchType,
boolean match)
credit - credit string to matchstringMatchType - the string match typematch - true for a positive match, false
for a negative matchInvalidArgumentException - credit not of
stringMatchType NullArgumentException - credit or
stringMatchType is null UnsupportedException -
supportsStringMatchType(stringMatchType) is
false mandatory - This method must be implemented. void matchAnyPrincipalCreditString(boolean match)
match - true to match assets with any principal
credit string, false to match assets with no
principal credit stringmandatory - This method must be implemented. void clearPrincipalCreditStringTerms()
mandatory - This method must be implemented. void matchTemporalCoverage(DateTime start, DateTime end, boolean match)
start - start time of the queryend - end time of the querymatch - true for a positive match, false
for a negative matchInvalidArgumentException - end is less
than start NullArgumentException - start or
end is null mandatory - This method must be implemented. void matchAnyTemporalCoverage(boolean match)
match - true to match assets with any temporal
coverage, false to match assets with no
temporal coveragemandatory - This method must be implemented. void clearTemporalCoverageTerms()
mandatory - This method must be implemented. void matchLocationId(Id locationId, boolean match)
Id for this query of spatial
coverage.locationId - the location Id match - true for a positive match, false
for a negative matchNullArgumentException - locationId is
null mandatory - This method must be implemented. void clearLocationIdTerms()
Id terms.mandatory - This method must be implemented. boolean supportsLocationQuery()
LocationQuery is available for the provider. true if a location query is available,
false otherwisemandatory - This method must be implemented. LocationQuery getLocationQuery()
OR term.UnimplementedException - supportsLocationQuery()
is false optional - This method must be implemented if
supportsLocationQuery() is true. void matchAnyLocation(boolean match)
match - true to match assets with any location,
false to match assets with no locationsmandatory - This method must be implemented. void clearLocationTerms()
mandatory - This method must be implemented. void matchSpatialCoverage(SpatialUnit spatialUnit, boolean match)
spatialUnit - the spatial unitmatch - true for a positive match, false
for a negative matchNullArgumentException - spatialUnit is
null UnsupportedException - spatialUnit is
not suppotedmandatory - This method must be implemented. void clearSpatialCoverageTerms()
mandatory - This method must be implemented. void matchSpatialCoverageOverlap(SpatialUnit spatialUnit, boolean match)
spatialUnit - the spatial unitmatch - true for a positive match, false
for a negative matchNullArgumentException - spatialUnit is
null UnsupportedException - spatialUnit is
not suppotedmandatory - This method must be implemented. void matchAnySpatialCoverage(boolean match)
match - true to match assets with any spatial
coverage, false to match assets with no spatial
coveragemandatory - This method must be implemented. void clearSpatialCoverageOverlapTerms()
mandatory - This method must be implemented. void matchAssetContentId(Id assetContentId, boolean match)
Id for this query.assetContentId - the asset content Id match - true for a positive match, false
for a negative matchNullArgumentException - assetContentId
is null mandatory - This method must be implemented. void clearAssetContentIdTerms()
Id terms.mandatory - This method must be implemented. boolean supportsAssetContentQuery()
AssetContentQuery is available. true if an asset content query is available,
false otherwisemandatory - This method must be implemented. AssetContentQuery getAssetContentQuery()
OR term.UnimplementedException -
supportsAssetContentQuery() is false optional - This method must be implemented if
supportsAssetContentQuery() is true.
void matchAnyAssetContent(boolean match)
match - true to match assets with any content,
false to match assets with no contentmandatory - This method must be implemented. void clearAssetContentTerms()
mandatory - This method must be implemented. void matchCompositionId(Id compositionId, boolean match)
Id for this query to match assets
that are a part of the composition.compositionId - the composition Id match - true for a positive match, false
for a negative matchNullArgumentException - compositionId is
null mandatory - This method must be implemented. void clearCompositionIdTerms()
Id terms.mandatory - This method must be implemented. boolean supportsCompositionQuery()
CompositionQuery is available. true if a composition query is available,
false otherwisemandatory - This method must be implemented. CompositionQuery getCompositionQuery()
OR term.UnimplementedException -
supportsCompositionQuery() is false optional - This method must be implemented if
supportsCompositionQuery() is true. void matchAnyComposition(boolean match)
match - true to match assets with any
composition, false to match assets with no
composition mappingsmandatory - This method must be implemented. void clearCompositionTerms()
mandatory - This method must be implemented. void matchRepositoryId(Id repositoryId, boolean match)
Id for this query.repositoryId - the repository Id match - true for a positive match, false
for a negative matchNullArgumentException - repositoryId is
null mandatory - This method must be implemented. void clearRepositoryIdTerms()
Id terms.mandatory - This method must be implemented. boolean supportsRepositoryQuery()
RepositoryQuery is available. true if a repository query is available,
false otherwisemandatory - This method must be implemented. RepositoryQuery getRepositoryQuery()
OR term.UnimplementedException -
supportsRepositoryQuery() is false optional - This method must be implemented if
supportsRepositoryQuery() is true. void clearRepositoryTerms()
mandatory - This method must be implemented. AssetQueryRecord getAssetQueryRecord(Type assetRecordType) throws OperationFailedException
Asset
record Type. Multiuple retrievals produce a
nested OR term.assetRecordType - an asset record typeNullArgumentException - assetRecordType
is null OperationFailedException - unable to complete requestUnsupportedException -
hasRecordType(assetRecordType) is false mandatory - This method must be implemented.