OSID Logo
OSID Specifications
repository package
Version 3.1.0
Interfaceosid.repository.AssetQuery
Implementsosid.OsidObjectQuery
osid.OsidAggregateableQuery
osid.OsidSourceableQuery
Used Byosid.OsidSourceableQuery
osid.course.syllabus.DocetQuery
osid.learning.ActivityQuery
osid.recipe.DirectionQuery
osid.recipe.RecipeQuery
osid.repository.AssetContentQuery
osid.repository.AssetQuerySession
osid.repository.AssetSearchSession
osid.repository.AssetSmartRepositorySession
osid.repository.CompositionQuery
show 2 more…
osid.repository.RepositoryQuery
osid.resource.ResourceQuery
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.

Parametersstringtitle title string to match
osid.type.TypestringMatchType the 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
Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodclearTitleTerms
Description

Clears the title terms.

Compliancemandatory This method must be implemented.
MethodmatchPublicDomain
Description

Matches assets marked as public domain.

ParametersbooleanpublicDomain public domain flag
Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodclearPublicDomainTerms
Description

Clears the public domain terms.

Compliancemandatory This method must be implemented.
MethodmatchCopyright
Description

Adds a copyright for this query.

Parametersstringcopyright copyright string to match
osid.type.TypestringMatchType the 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
Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodclearCopyrightTerms
Description

Clears the copyright terms.

Compliancemandatory This method must be implemented.
MethodmatchCopyrightRegistration
Description

Adds a copyright registration for this query.

Parametersstringregistration copyright registration string to match
osid.type.TypestringMatchType the 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
Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodclearCopyrightRegistrationTerms
Description

Clears the copyright registration terms.

Compliancemandatory This method must be implemented.
MethodmatchDistributeVerbatim
Description

Matches assets marked as distributable.

Parametersbooleandistributable distribute verbatim rights flag
Compliancemandatory This method must be implemented.
MethodclearDistributeVerbatimTerms
Description

Clears the distribute verbatim terms.

Compliancemandatory This method must be implemented.
MethodmatchDistributeAlterations
Description

Matches assets that whose alterations can be distributed.

Parametersbooleanalterable distribute alterations rights flag
Compliancemandatory This method must be implemented.
MethodclearDistributeAlterationsTerms
Description

Clears the distribute alterations terms.

Compliancemandatory This method must be implemented.
MethodmatchDistributeCompositions
Description

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

Parametersbooleancomposable distribute compositions rights flag
Compliancemandatory This method must be implemented.
MethodclearDistributeCompositionsTerms
Description

Clears the distribute compositions terms.

Compliancemandatory This method must be implemented.
MethodmatchSourceId
Description

Sets the source Id for this query.

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

Clears the source Id terms.

Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodgetSourceQuery
Description

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

Returnosid.resource.ResourceQuery the source query
ErrorsUNIMPLEMENTED supportsSourceQuery() is false
Complianceoptional This 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
Compliancemandatory This method must be implemented.
MethodclearSourceTerms
Description

Clears the source terms.

Compliancemandatory This method must be implemented.
MethodmatchCreatedDate
Description

Match assets that are created between the specified time period.

Parametersosid.calendaring.DateTimestart start time of the query
osid.calendaring.DateTimeend end 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
Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodclearCreatedDateTerms
Description

Clears the created time terms.

Compliancemandatory This method must be implemented.
MethodmatchPublished
Description

Marks assets that are marked as published.

Parametersbooleanpublished published flag
Compliancemandatory This method must be implemented.
MethodclearPublishedTerms
Description

Clears the published terms.

Compliancemandatory This method must be implemented.
MethodmatchPublishedDate
Description

Match assets that are published between the specified time period.

Parametersosid.calendaring.DateTimestart start time of the query
osid.calendaring.DateTimeend end 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
Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodclearPublishedDateTerms
Description

Clears the published time terms.

Compliancemandatory This method must be implemented.
MethodmatchPrincipalCreditString
Description

Adds a principal credits for this query.

Parametersstringcredit credit string to match
osid.type.TypestringMatchType the 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
Compliancemandatory This method must be implemented.
MethodmatchAnyPrincipalCreditString
Description

Matches a principal credits that has any value.

Parametersbooleanmatch true to match assets with any principal credits, false to match assets with no principal credits
Compliancemandatory This method must be implemented.
MethodclearPrincipalCreditStringTerms
Description

Clears the principal credits terms.

Compliancemandatory This method must be implemented.
MethodmatchTemporalCoverage
Description

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

Parametersosid.calendaring.DateTimestart start time of the query
osid.calendaring.DateTimeend end 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
Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodclearTemporalCoverageTerms
Description

Clears the temporal coverage terms.

Compliancemandatory This method must be implemented.
MethodmatchLocationId
Description

Sets the location Id for this query of spatial coverage.

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

Clears the location Id terms.

Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodgetLocationQuery
Description

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

Returnosid.mapping.LocationQuery the location query
ErrorsUNIMPLEMENTED supportsLocationQuery() is false
Complianceoptional This 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
Compliancemandatory This method must be implemented.
MethodclearLocationTerms
Description

Clears the location terms.

Compliancemandatory This method must be implemented.
MethodmatchSpatialCoverage
Description

Matches assets that are contained within the given spatial unit.

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

Clears the spatial coverage terms.

Compliancemandatory This method must be implemented.
MethodmatchSpatialCoverageOverlap
Description

Matches assets that overlap or touch the given spatial unit.

Parametersosid.mapping.SpatialUnitspatialUnit the spatial unit
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT spatialUnit is null
UNSUPPORTED spatialUnit is not suppoted
Compliancemandatory This 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
Compliancemandatory This method must be implemented.
MethodclearSpatialCoverageOverlapTerms
Description

Clears the spatial coverage overlap terms.

Compliancemandatory This method must be implemented.
MethodmatchAssetContentId
Description

Sets the asset content Id for this query.

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

Clears the asset content Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsAssetContentQuery
Description

Tests if an AssetContentQuery is available.

Returnboolean true if an asset content query is available, false otherwise
Compliancemandatory This 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.AssetContentQuery the asset contents query
ErrorsUNIMPLEMENTED supportsAssetContentQuery() is false
Complianceoptional This 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
Compliancemandatory This method must be implemented.
MethodclearAssetContentTerms
Description

Clears the asset content terms.

Compliancemandatory This 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.IdcompositionId the composition Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT compositionId is null
Compliancemandatory This method must be implemented.
MethodclearCompositionIdTerms
Description

Clears the composition Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsCompositionQuery
Description

Tests if a CompositionQuery is available.

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

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

Returnosid.repository.CompositionQuery the composition query
ErrorsUNIMPLEMENTED supportsCompositionQuery() is false
Complianceoptional This 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
Compliancemandatory This method must be implemented.
MethodclearCompositionTerms
Description

Clears the composition terms.

Compliancemandatory This method must be implemented.
MethodmatchRepositoryId
Description

Sets the repository Id for this query.

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

Clears the repository Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsRepositoryQuery
Description

Tests if a RepositoryQuery is available.

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

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

Returnosid.repository.RepositoryQuery the repository query
ErrorsUNIMPLEMENTED supportsRepositoryQuery() is false
Complianceoptional This method must be implemented if supportsRepositoryQuery() is true.
MethodclearRepositoryTerms
Description

Clears the repository terms.

Compliancemandatory This 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.TypeassetRecordType an asset record type
Returnosid.repository.records.AssetQueryRecord the asset query record
ErrorsNULL_ARGUMENT assetRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(assetRecordType) is false
Compliancemandatory This method must be implemented.