OSID Logo
OSID Specifications
repository package
Version 3.0.0
Release Candidate Preview
Interfaceosid.repository.AssetQuery
Implementsosid.OsidObjectQuery
osid.OsidAggregateableQuery
osid.OsidSourceableQuery
Description

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.

MethodmatchTitle
Description

Adds a title for this query.

Parametersstringtitletitle string to match
osid.type.TypestringMatchTypethe string match type
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT title not of stringMatchType
NULL_ARGUMENT title or stringMatchType is null
UNSUPPORTED supportsStringMatchType(stringMatchType) is false
CompliancemandatoryThis method must be implemented.
MethodmatchAnyTitle
Description

Matches a title that has any value.

Parametersbooleanmatch true to match assets with any title, false to match assets with no title
CompliancemandatoryThis method must be implemented.
MethodclearTitleTerms
Description

Clears the title terms.

CompliancemandatoryThis method must be implemented.
MethodmatchPublicDomain
Description

Matches assets marked as public domain.

ParametersbooleanpublicDomainpublic domain flag
CompliancemandatoryThis method must be implemented.
MethodmatchAnyPublicDomain
Description

Matches assets with any public domain value.

Parametersbooleanmatch true to match assets with any public domain value, false to match assets with no public domain value
CompliancemandatoryThis method must be implemented.
MethodclearPublicDomainTerms
Description

Clears the public domain terms.

CompliancemandatoryThis method must be implemented.
MethodmatchCopyright
Description

Adds a copyright for this query.

Parametersstringcopyrightcopyright string to match
osid.type.TypestringMatchTypethe string match type
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT copyright not of stringMatchType
NULL_ARGUMENT copyright or stringMatchType is null
UNSUPPORTED supportsStringMatchType(stringMatchType) is false
CompliancemandatoryThis method must be implemented.
MethodmatchAnyCopyright
Description

Matches assets with any copyright statement.

Parametersbooleanmatch true to match assets with any copyright value, false to match assets with no copyright value
CompliancemandatoryThis method must be implemented.
MethodclearCopyrightTerms
Description

Clears the copyright terms.

CompliancemandatoryThis method must be implemented.
MethodmatchCopyrightRegistration
Description

Adds a copyright registration for this query.

Parametersstringregistrationcopyright registration string to match
osid.type.TypestringMatchTypethe string match type
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT registration not of stringMatchType
NULL_ARGUMENT registration or stringMatchType is null
UNSUPPORTED supportsStringMatchType(stringMatchType) is false
CompliancemandatoryThis method must be implemented.
MethodmatchAnyCopyrightRegistration
Description

Matches assets with any copyright registration.

Parametersbooleanmatch true to match assets with any copyright registration value, false to match assets with no copyright registration value
CompliancemandatoryThis method must be implemented.
MethodclearCopyrightRegistrationTerms
Description

Clears the copyright registration terms.

CompliancemandatoryThis method must be implemented.
MethodmatchDistributeVerbatim
Description

Matches assets marked as distributable.

Parametersbooleandistributabledistribute verbatim rights flag
CompliancemandatoryThis method must be implemented.
MethodclearDistributeVerbatimTerms
Description

Clears the distribute verbatim terms.

CompliancemandatoryThis method must be implemented.
MethodmatchDistributeAlterations
Description

Matches assets that whose alterations can be distributed.

Parametersbooleanalterabledistribute alterations rights flag
CompliancemandatoryThis method must be implemented.
MethodclearDistributeAlterationsTerms
Description

Clears the distribute alterations terms.

CompliancemandatoryThis method must be implemented.
MethodmatchDistributeCompositions
Description

Matches assets that can be distributed as part of other compositions.

Parametersbooleancomposabledistribute compositions rights flag
CompliancemandatoryThis method must be implemented.
MethodclearDistributeCompositionsTerms
Description

Clears the distribute compositions terms.

CompliancemandatoryThis method must be implemented.
MethodmatchSourceId
Description

Sets the source Id for this query.

Parametersosid.id.IdsourceIdthe source Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT sourceId is null
CompliancemandatoryThis method must be implemented.
MethodclearSourceIdTerms
Description

Clears the source Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsSourceQuery
Description

Tests if a ResourceQuery is available for the source.

Returnboolean true if a resource query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetSourceQuery
Description

Gets the query for the source. Multiple queries can be retrieved for a nested OR term.

Returnosid.resource.ResourceQuerythe source query
ErrorsUNIMPLEMENTED supportsSourceQuery() is false
ComplianceoptionalThis method must be implemented if supportsSourceQuery() is true.
MethodmatchAnySource
Description

Matches assets with any source.

Parametersbooleanmatch true to match assets with any source, false to match assets with no sources
CompliancemandatoryThis method must be implemented.
MethodclearSourceTerms
Description

Clears the source terms.

CompliancemandatoryThis method must be implemented.
MethodmatchCreatedDate
Description

Match assets that are created between the specified time period.

Parametersosid.calendaring.DateTimestartstart time of the query
osid.calendaring.DateTimeendend time of the query
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT end is les than start
NULL_ARGUMENT start or end is null
CompliancemandatoryThis method must be implemented.
MethodmatchAnyCreatedDate
Description

Matches assets with any creation time.

Parametersbooleanmatch true to match assets with any created time, false to match assets with no cerated time
CompliancemandatoryThis method must be implemented.
MethodclearCreatedDateTerms
Description

Clears the created time terms.

CompliancemandatoryThis method must be implemented.
MethodmatchPublished
Description

Marks assets that are marked as published.

Parametersbooleanpublishedpublished flag
CompliancemandatoryThis method must be implemented.
MethodclearPublishedTerms
Description

Clears the published terms.

CompliancemandatoryThis method must be implemented.
MethodmatchPublishedDate
Description

Match assets that are published between the specified time period.

Parametersosid.calendaring.DateTimestartstart time of the query
osid.calendaring.DateTimeendend time of the query
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT end is les than start
NULL_ARGUMENT start or end is null
CompliancemandatoryThis method must be implemented.
MethodmatchAnyPublishedDate
Description

Matches assets with any published time.

Parametersbooleanmatch true to match assets with any published time, false to match assets with no published time
CompliancemandatoryThis method must be implemented.
MethodclearPublishedDateTerms
Description

Clears the published time terms.

CompliancemandatoryThis method must be implemented.
MethodmatchPrincipalCreditString
Description

Adds a principal credit string for this query.

Parametersstringcreditcredit string to match
osid.type.TypestringMatchTypethe string match type
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT credit not of stringMatchType
NULL_ARGUMENT credit or stringMatchType is null
UNSUPPORTED supportsStringMatchType(stringMatchType) is false
CompliancemandatoryThis method must be implemented.
MethodmatchAnyPrincipalCreditString
Description

Matches a principal credit string that has any value.

Parametersbooleanmatch true to match assets with any principal credit string, false to match assets with no principal credit string
CompliancemandatoryThis method must be implemented.
MethodclearPrincipalCreditStringTerms
Description

Clears the principal credit string terms.

CompliancemandatoryThis method must be implemented.
MethodmatchTemporalCoverage
Description

Match assets that whose coverage falls between the specified time period inclusive.

Parametersosid.calendaring.DateTimestartstart time of the query
osid.calendaring.DateTimeendend time of the query
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT end is less than start
NULL_ARGUMENT start or end is null
CompliancemandatoryThis method must be implemented.
MethodmatchAnyTemporalCoverage
Description

Matches assets with any temporal coverage.

Parametersbooleanmatch true to match assets with any temporal coverage, false to match assets with no temporal coverage
CompliancemandatoryThis method must be implemented.
MethodclearTemporalCoverageTerms
Description

Clears the temporal coverage terms.

CompliancemandatoryThis method must be implemented.
MethodmatchLocationId
Description

Sets the location Id for this query of spatial coverage.

Parametersosid.id.IdlocationIdthe location Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT locationId is null
CompliancemandatoryThis method must be implemented.
MethodclearLocationIdTerms
Description

Clears the location Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsLocationQuery
Description

Tests if a LocationQuery is available for the provider.

Returnboolean true if a location query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetLocationQuery
Description

Gets the query for a location. Multiple queries can be retrieved for a nested OR term.

Returnosid.mapping.LocationQuerythe location query
ErrorsUNIMPLEMENTED supportsLocationQuery() is false
ComplianceoptionalThis method must be implemented if supportsLocationQuery() is true.
MethodmatchAnyLocation
Description

Matches assets with any provider.

Parametersbooleanmatch true to match assets with any location, false to match assets with no locations
CompliancemandatoryThis method must be implemented.
MethodclearLocationTerms
Description

Clears the location terms.

CompliancemandatoryThis method must be implemented.
MethodmatchSpatialCoverage
Description

Matches assets that are contained within the given spatial unit.

Parametersosid.mapping.SpatialUnitspatialUnitthe spatial unit
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT spatialUnit is null
UNSUPPORTED spatialUnit is not suppoted
CompliancemandatoryThis method must be implemented.
MethodclearSpatialCoverageTerms
Description

Clears the spatial coverage terms.

CompliancemandatoryThis method must be implemented.
MethodmatchSpatialCoverageOverlap
Description

Matches assets that overlap or touch the given spatial unit.

Parametersosid.mapping.SpatialUnitspatialUnitthe spatial unit
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT spatialUnit is null
UNSUPPORTED spatialUnit is not suppoted
CompliancemandatoryThis method must be implemented.
MethodmatchAnySpatialCoverage
Description

Matches assets with no spatial coverage.

Parametersbooleanmatch true to match assets with any spatial coverage, false to match assets with no spatial coverage
CompliancemandatoryThis method must be implemented.
MethodclearSpatialCoverageOverlapTerms
Description

Clears the spatial coverage overlap terms.

CompliancemandatoryThis method must be implemented.
MethodmatchAssetContentId
Description

Sets the asset content Id for this query.

Parametersosid.id.IdassetContentIdthe asset content Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT assetContentId is null
CompliancemandatoryThis method must be implemented.
MethodclearAssetContentIdTerms
Description

Clears the asset content Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsAssetContentQuery
Description

Tests if an AssetContentQuery is available.

Returnboolean true if an asset content query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetAssetContentQuery
Description

Gets the query for the asset content. Multiple queries can be retrieved for a nested OR term.

Returnosid.repository.AssetContentQuerythe asset contents query
ErrorsUNIMPLEMENTED supportsAssetContentQuery() is false
ComplianceoptionalThis method must be implemented if supportsAssetContentQuery() is true.
MethodmatchAnyAssetContent
Description

Matches assets with any content.

Parametersbooleanmatch true to match assets with any content, false to match assets with no content
CompliancemandatoryThis method must be implemented.
MethodclearAssetContentTerms
Description

Clears the asset content terms.

CompliancemandatoryThis method must be implemented.
MethodmatchCompositionId
Description

Sets the composition Id for this query to match assets that are a part of the composition.

Parametersosid.id.IdcompositionIdthe composition Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT compositionId is null
CompliancemandatoryThis method must be implemented.
MethodclearCompositionIdTerms
Description

Clears the composition Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsCompositionQuery
Description

Tests if a CompositionQuery is available.

Returnboolean true if a composition query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetCompositionQuery
Description

Gets the query for a composition. Multiple queries can be retrieved for a nested OR term.

Returnosid.repository.CompositionQuerythe composition query
ErrorsUNIMPLEMENTED supportsCompositionQuery() is false
ComplianceoptionalThis method must be implemented if supportsCompositionQuery() is true.
MethodmatchAnyComposition
Description

Matches assets with any composition mappings.

Parametersbooleanmatch true to match assets with any composition, false to match assets with no composition mappings
CompliancemandatoryThis method must be implemented.
MethodclearCompositionTerms
Description

Clears the composition terms.

CompliancemandatoryThis method must be implemented.
MethodmatchRepositoryId
Description

Sets the repository Id for this query.

Parametersosid.id.IdrepositoryIdthe repository Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT repositoryId is null
CompliancemandatoryThis method must be implemented.
MethodclearRepositoryIdTerms
Description

Clears the repository Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsRepositoryQuery
Description

Tests if a RepositoryQuery is available.

Returnboolean true if a repository query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetRepositoryQuery
Description

Gets the query for a repository. Multiple queries can be retrieved for a nested OR term.

Returnosid.repository.RepositoryQuerythe repository query
ErrorsUNIMPLEMENTED supportsRepositoryQuery() is false
ComplianceoptionalThis method must be implemented if supportsRepositoryQuery() is true.
MethodclearRepositoryTerms
Description

Clears the repository terms.

CompliancemandatoryThis method must be implemented.
MethodgetAssetQueryRecord
Description

Gets the asset query record corresponding to the given Asset record Type. Multiuple retrievals produce a nested OR term.

Parametersosid.type.TypeassetRecordTypean asset record type
Returnosid.repository.records.AssetQueryRecordthe asset query record
ErrorsNULL_ARGUMENT assetRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(assetRecordType) is false
CompliancemandatoryThis method must be implemented.