Interface | osid.repository.AssetRepositorySession | ||
---|---|---|---|
Implements | osid.OsidSession | ||
Description |
This session provides methods to retrieve This lookup session defines two views:
| ||
Method | canLookupAssetRepositoryMappings | ||
Description |
Tests if this user can perform lookups of
asset/repository mappings. A return of true does not
guarantee successful authorization. A return of false
indicates that it is known lookup methods in this session
will result in a | ||
Return | boolean | false if looking up mappings is not authorized, true
otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | useComparativeRepositoryView | ||
Description |
The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error. This view is used when greater interoperability is desired at the expense of precision. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | usePlenaryRepositoryView | ||
Description |
A complete view of the | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getAssetIdsByRepository | ||
Description |
Gets the list of | ||
Parameters | osid.id.Id | repositoryId | Id of the Repository |
Return | osid.id.IdList | list of related asset Ids | |
Errors | NOT_FOUND | repositoryId is not found | |
NULL_ARGUMENT | repositoryId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getAssetsByRepository | ||
Description |
Gets the list of | ||
Parameters | osid.id.Id | repositoryId | Id of the Repository |
Return | osid.repository.AssetList | list of related assets | |
Errors | NOT_FOUND | repositoryId is not found | |
NULL_ARGUMENT | repositoryId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getAssetIdsByRepositories | ||
Description |
Gets the list of | ||
Parameters | osid.id.IdList | repositoryIds | list of repository Ids |
Return | osid.id.IdList | list of asset Ids | |
Errors | NULL_ARGUMENT | repositoryIds is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getAssetsByRepositories | ||
Description |
Gets the list of | ||
Parameters | osid.id.IdList | repositoryIds | list of repository Ids |
Return | osid.repository.AssetList | list of assets | |
Errors | NULL_ARGUMENT | repositoryIds is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getRepositoryIdsByAsset | ||
Description |
Gets the list of | ||
Parameters | osid.id.Id | assetId | Id of an Asset |
Return | osid.id.IdList | list of repository Ids | |
Errors | NOT_FOUND | assetId is not found | |
NULL_ARGUMENT | assetId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getRepositoriesByAsset | ||
Description |
Gets the list of | ||
Parameters | osid.id.Id | assetId | Id of an Asset |
Return | osid.repository.RepositoryList | list of repositories | |
Errors | NOT_FOUND | assetId is not found | |
NULL_ARGUMENT | assetId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |