| Interface | osid.repository.RepositoryAdminSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Description |
This session creates, updates, and deletes Create and update operations differ in their usage. To
create a For updates, The delete operations delete | ||
| Method | canCreateRepositories | ||
| Description |
Tests if this user can create | ||
| Return | boolean | false if Repository creation is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateRepositoryWithRecordTypes | ||
| Description |
Tests if this user can create a single | ||
| Parameters | osid.type.Type[] | repositoryRecordTypes | array of repository record types |
| Return | boolean | true if Repository creation using the
specified Types is supported, false otherwise | |
| Errors | NULL_ARGUMENT | repositoryRecordTypes is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getRepositoryFormForCreate | ||
| Description |
Gets the repository form for creating new repositories. A new form should be requested for each create transaction. | ||
| Parameters | osid.type.Type[] | repositoryRecordTypes | array of repository record types |
| Return | osid.repository.RepositoryForm | the repository form | |
| Errors | NULL_ARGUMENT | repositoryRecordTypes 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 | createRepository | ||
| Description |
Creates a new | ||
| Parameters | osid.repository.RepositoryForm | repositoryForm | the form for this Repository |
| Return | osid.repository.Repository | the new Repository | |
| Errors | ILLEGAL_STATE | repositoryForm already used in a create transaction | |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT | repositoryForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | repositoryForm did not originate from
getRepositoryFormForCreate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateRepositories | ||
| Description |
Tests if this user can update | ||
| Return | boolean | false if Repository modification is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getRepositoryFormForUpdate | ||
| Description |
Gets the repository form for updating an existing repository. A new repository form should be requested for each update transaction. | ||
| Parameters | osid.id.Id | repositoryId | the Id of the Repository |
| Return | osid.repository.RepositoryForm | the repository form | |
| 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 | updateRepository | ||
| Description |
Updates an existing repository. | ||
| Parameters | osid.repository.RepositoryForm | repositoryForm | the form containing the elements to be updated |
| Errors | ILLEGAL_STATE | repositoryForm already used in an update transaction | |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT | repositoryForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | repositoryForm did not originate from
getRepositoryFormForUpdate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteRepositories | ||
| Description |
Tests if this user can delete | ||
| Return | boolean | false if Repository deletion is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteRepository | ||
| Description |
Deletes a | ||
| Parameters | osid.id.Id | repositoryId | the Id of the Repository to remove |
| Errors | NOT_FOUND | repositoryId 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 | canManageRepositoryAliases | ||
| Description |
Tests if this user can manage | ||
| Return | boolean | false if Repository aliasing is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasRepository | ||
| Description |
Adds an | ||
| Parameters | osid.id.Id | repositoryId | the Id of a Repository |
osid.id.Id | aliasId | the alias Id | |
| Errors | ALREADY_EXISTS | aliasId is in use as a primary Id | |
| NOT_FOUND | repositoryId not found | ||
| NULL_ARGUMENT | repositoryId or aliasId is null
| ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |