OSID Logo
OSID Specifications
repository package
Version 3.0.0
Release Candidate Preview
Interfaceosid.repository.RepositoryQuery
Implementsosid.OsidCatalogQuery
Description

This is the query for searching repositories. Each method specifies an AND term while multiple invocations of the same method produce a nested OR.

MethodmatchAssetId
Description

Sets the asset Id for this query.

Parametersosid.id.IdassetIdan asset Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT assetId is null
CompliancemandatoryThis method must be implemented.
MethodclearAssetIdTerms
Description

Clears the asset Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsAssetQuery
Description

Tests if an AssetQuery is available.

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

Gets the query for an asset. Multiple retrievals produce a nested OR term.

Returnosid.repository.AssetQuerythe asset query
ErrorsUNIMPLEMENTED supportsAssetQuery() is false
ComplianceoptionalThis method must be implemented if supportsAssetQuery() is true.
MethodmatchAnyAsset
Description

Matches repositories that has any asset mapping.

Parametersbooleanmatch true to match repositories with any asset, false to match repositories with no asset
CompliancemandatoryThis method must be implemented.
MethodclearAssetTerms
Description

Clears the asset terms.

CompliancemandatoryThis method must be implemented.
MethodmatchCompositionId
Description

Sets the composition Id for this query.

Parametersosid.id.IdcompositionIda 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 retrievals produce 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 repositories that has any composition mapping.

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

Clears the composition terms.

CompliancemandatoryThis method must be implemented.
MethodmatchAncestorRepositoryId
Description

Sets the repository Id for this query to match repositories that have the specified repository as an ancestor.

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

Clears the ancestor repository Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsAncestorRepositoryQuery
Description

Tests if a RepositoryQuery is available.

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

Gets the query for a repository. Multiple retrievals produce a nested OR term.

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

Matches repositories with any ancestor.

Parametersbooleanmatch true to match repositories with any ancestor, false to match root repositories
CompliancemandatoryThis method must be implemented.
MethodclearAncestorRepositoryTerms
Description

Clears the ancestor repository terms.

CompliancemandatoryThis method must be implemented.
MethodmatchDescendantRepositoryId
Description

Sets the repository Id for this query to match repositories that have the specified repository as a descendant.

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

Clears the descendant repository Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsDescendantRepositoryQuery
Description

Tests if a RepositoryQuery is available.

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

Gets the query for a repository. Multiple retrievals produce a nested OR term.

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

Matches repositories with any descendant.

Parametersbooleanmatch true to match repositories with any descendant, false to match leaf repositories
CompliancemandatoryThis method must be implemented.
MethodclearDescendantRepositoryTerms
Description

Clears the descendant repository terms.

CompliancemandatoryThis method must be implemented.
MethodgetRepositoryQueryRecord
Description

Gets the repository query record corresponding to the given Repository record Type. Multiple record retrievals produce a nested OR term.

Parametersosid.type.TyperepositoryRecordTypea repository record type
Returnosid.repository.records.RepositoryQueryRecordthe repository query record
ErrorsNULL_ARGUMENT repositoryRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(repositoryRecordType) is false
CompliancemandatoryThis method must be implemented.