OSID Logo
OSID Specifications
repository package
Version 3.1.0
Interfaceosid.repository.RepositoryQuery
Implementsosid.OsidCatalogQuery
Used Byosid.repository.AssetQuery
osid.repository.CompositionQuery
osid.repository.RepositoryQuery
osid.repository.RepositoryQuerySession
osid.repository.RepositorySearchSession
osid.repository.rules.CompositionEnablerQuery
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.IdassetId an asset Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT assetId is null
Compliancemandatory This method must be implemented.
MethodclearAssetIdTerms
Description

Clears the asset Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsAssetQuery
Description

Tests if an AssetQuery is available.

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

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

Returnosid.repository.AssetQuery the asset query
ErrorsUNIMPLEMENTED supportsAssetQuery() is false
Complianceoptional This 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
Compliancemandatory This method must be implemented.
MethodclearAssetTerms
Description

Clears the asset terms.

Compliancemandatory This method must be implemented.
MethodmatchAssetContentId
Description

Sets the asset content Id for this query.

Parametersosid.id.IdassetContentId an 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 an asset. Multiple retrievals produce a nested OR term.

Returnosid.repository.AssetContentQuery the asset content query
ErrorsUNIMPLEMENTED supportsAssetContentQuery() is false
Complianceoptional This method must be implemented if supportsAssetContentQuery() is true.
MethodmatchAnyAssetContent
Description

Matches repositories that has any asset content mapping.

Parametersbooleanmatch true to match repositories with any asset content, false to match repositories with no asset 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.

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

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

Clears the composition terms.

Compliancemandatory This 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.IdrepositoryId a repository Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT repositoryId is null
Compliancemandatory This method must be implemented.
MethodclearAncestorRepositoryIdTerms
Description

Clears the ancestor repository Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsAncestorRepositoryQuery
Description

Tests if a RepositoryQuery is available.

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

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

Returnosid.repository.RepositoryQuery the repository query
ErrorsUNIMPLEMENTED supportsAncestorRepositoryQuery() is false
Complianceoptional This 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
Compliancemandatory This method must be implemented.
MethodclearAncestorRepositoryTerms
Description

Clears the ancestor repository terms.

Compliancemandatory This 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.IdrepositoryId a repository Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT repositoryId is null
Compliancemandatory This method must be implemented.
MethodclearDescendantRepositoryIdTerms
Description

Clears the descendant repository Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsDescendantRepositoryQuery
Description

Tests if a RepositoryQuery is available.

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

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

Returnosid.repository.RepositoryQuery the repository query
ErrorsUNIMPLEMENTED supportsDescendantRepositoryQuery() is false
Complianceoptional This 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
Compliancemandatory This method must be implemented.
MethodclearDescendantRepositoryTerms
Description

Clears the descendant repository terms.

Compliancemandatory This 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.TyperepositoryRecordType a repository record type
Returnosid.repository.records.RepositoryQueryRecord the repository query record
ErrorsNULL_ARGUMENT repositoryRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(repositoryRecordType) is false
Compliancemandatory This method must be implemented.