| Interface | osid.repository.AssetContentAdminSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Implemented By | osid.repository.batch.AssetContentBatchAdminSession | ||
| Used By | osid.repository.RepositoryManager | ||
osid.repository.RepositoryProxyManager | |||
| Description |
This session creates, updates, and deletes
Create and update operations differ in their usage. To
create an For updates, The delete operations delete This session includes an | ||
| Method | getRepositoryId | ||
| Description |
Gets the | ||
| Return | osid.id.Id | the Repository Id associated with this session | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getRepository | ||
| Description |
Gets the | ||
| Return | osid.repository.Repository | the repository | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateAssetContents | ||
| Description |
Tests if this user can create
| ||
| Return | boolean | false if AssetContent creation is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateAssetContentWithRecordTypes | ||
| Description |
Tests if this user can create a single
| ||
| Parameters | osid.type.Type[] | assetContentRecordTypes | array of asset content record types |
| Return | boolean | true if AssetContent creation using the specified
record Types is supported, false otherwise | |
| Errors | NULL_ARGUMENT | assetContentRecordTypes is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getAssetContentFormForCreate | ||
| Description |
Gets the asset content form for creating new asset contents. A new form should be requested for each create transaction. | ||
| Parameters | osid.id.Id | assetId | an asset Id |
osid.type.Type[] | assetContentRecordTypes | array of asset content record types | |
| Return | osid.repository.AssetContentForm | the asset content form | |
| Errors | NOT_FOUND | asetId is not found | |
| NULL_ARGUMENT | assetId or assetContentRecordTypes is
null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | unable to get form for requested record types | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | createAssetContent | ||
| Description |
Creates a new | ||
| Parameters | osid.repository.AssetContentForm | assetContentForm | the form for this AssetContent |
| Return | osid.repository.AssetContent | the new AssetContent | |
| Errors | ILLEGAL_STATE | assetContentForm already used in a create transaction | |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT | assetContentForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | assetContentForm did not originate from
getAssetContentFormForCreate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateAssetContents | ||
| Description |
Tests if this user can update
| ||
| Return | boolean | false if AssetContent modification is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getAssetContentFormForUpdate | ||
| Description |
Gets the asset content form for updating an existing asset content. A new asset content form should be requested for each update transaction. | ||
| Parameters | osid.id.Id | assetContentId | the Id of the AssetContent |
| Return | osid.repository.AssetContentForm | the asset content form | |
| Errors | NOT_FOUND | assetContentId is not found | |
| NULL_ARGUMENT | assetContentId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateAssetContent | ||
| Description |
Updates an existing asset content. | ||
| Parameters | osid.repository.AssetContentForm | assetContentForm | the form containing the elements to be updated |
| Errors | ILLEGAL_STATE | assetContentForm already used in an update transaction | |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT | assetContentForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | assetContentForm did not originate from
getAssetContentFormForUpdate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteAssetContents | ||
| Description |
Tests if this user can delete
| ||
| Return | boolean | false if AssetContent deletion is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteAssetContent | ||
| Description |
Deletes an | ||
| Parameters | osid.id.Id | assetContentId | the Id of the AssetContent to remove |
| Errors | NOT_FOUND | assetContentId not found | |
| NULL_ARGUMENT | assetContentId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageAssetContentAliases | ||
| Description |
Tests if this user can manage | ||
| Return | boolean | false if AssetContent aliasing is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasAssetContent | ||
| Description |
Adds an | ||
| Parameters | osid.id.Id | assetContentId | the Id of an AssetContent |
osid.id.Id | aliasId | the alias Id | |
| Errors | ALREADY_EXISTS | aliasId is already assigned | |
| NOT_FOUND | assetContentId not found | ||
| NULL_ARGUMENT | assetContentId or aliasId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |