| Interface | osid.repository.AssetContentRepositoryAssignmentSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Used By | osid.repository.RepositoryManager | ||
osid.repository.RepositoryProxyManager | |||
| Description |
This session provides methods to re-assign
Adding a reference of an | ||
| Method | canAssignAssetContents | ||
| Description |
Tests if this user can alter asset content/repository
mappings. A return of true does not guarantee successful
authorization. A return of false indicates that it is
known mapping methods in this session will result in a
| ||
| Return | boolean | false if mapping is not authorized, true
otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canAssignAssetContentToRepository | ||
| Description |
Tests if this user can alter asset content/repository
mappings. A return of true does not guarantee successful
authorization. A return of false indicates that it is
known mapping methods in this session will result in a
| ||
| Parameters | osid.id.Id | repositoryId | the Id of the Repository |
| Return | boolean | false if mapping is not authorized, true
otherwise | |
| Errors | NULL_ARGUMENT | repositoryId is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getAssignableRepositoryIds | ||
| Description |
Gets a list of repositories including and under the given repository node in which any asset content can be assigned. | ||
| Parameters | osid.id.Id | repositoryId | the Id of the Repository |
| Return | osid.id.IdList | list of assignable repository Ids | |
| Errors | NULL_ARGUMENT | repositoryId is null | |
| OPERATION_FAILED | unable to complete request | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getAssignableRepositoryIdsForAssetContent | ||
| Description |
Gets a list of repositories including and under the given repository node in which a specific asset content can be assigned. | ||
| Parameters | osid.id.Id | repositoryId | the Id of the Repository |
osid.id.Id | assetContentId | the Id of the AssetContent | |
| Return | osid.id.IdList | list of assignable repository Ids | |
| Errors | NULL_ARGUMENT | repositoryId or assetContentId is
null | |
| OPERATION_FAILED | unable to complete request | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | assignAssetContentToRepository | ||
| Description |
Adds an existing | ||
| Parameters | osid.id.Id | assetContentId | the Id of the AssetContent |
osid.id.Id | repositoryId | the Id of the Repository | |
| Errors | ALREADY_EXISTS | assetContentId is already assigned to
repositoryId | |
| NOT_FOUND | assetContentId or repositoryId not found | ||
| NULL_ARGUMENT | assetContentId or repositoryId is
null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | unassignAssetContentFromRepository | ||
| Description |
Removes an | ||
| Parameters | osid.id.Id | assetContentId | the Id of the AssetContent |
osid.id.Id | repositoryId | the Id of the Repository | |
| Errors | NOT_FOUND | assetContentId or repositoryId not found or
assetContentId not assigned to repositoryId | |
| NULL_ARGUMENT | assetContentId or repositoryId is
null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | reassignAssetContentToRepository | ||
| Description |
Moves an | ||
| Parameters | osid.id.Id | assetContentId | the Id of the AssetContent |
osid.id.Id | fromRepositoryId | the Id of the current Repository | |
osid.id.Id | toRepositoryId | the Id of the destination Repository | |
| Errors | ALREADY_EXISTS | assetContentId already assigned to
torepositoryId | |
| NOT_FOUND | assetContentId, fromRepositoryId, or
toRepositoryeId not found or assetContentId not
mapped to fromRepositoryId | ||
| NULL_ARGUMENT | assetContentId, fromRepositoryId, or
toRepositoryId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |