Interface | osid.repository.CompositionRepositoryAssignmentSession | ||
---|---|---|---|
Implements | osid.OsidSession | ||
Description |
This session provides methods to re-assign Moving or adding a reference of a | ||
Method | canAssignCompositions | ||
Description |
Tests if this user can alter composition/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 | canAssignCompositionsToRepository | ||
Description |
Tests if this user can alter composition/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 composition 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 | getAssignableRepositoryIdsForComposition | ||
Description |
Gets a list of repositories including and under the given repository node in which a specific composition can be assigned. | ||
Parameters | osid.id.Id | repositoryId | the Id of the Repository |
osid.id.Id | compositionId | the Id of the Composition | |
Return | osid.id.IdList | list of assignable repository Ids | |
Errors | NULL_ARGUMENT | repositoryId or compositionId is null
| |
OPERATION_FAILED | unable to complete request | ||
Compliance | mandatory | This method must be implemented. | |
Method | assignCompositionToRepository | ||
Description |
Adds an existing | ||
Parameters | osid.id.Id | compositionId | the Id of the Composition |
osid.id.Id | repositoryId | the Id of the Repository | |
Errors | ALREADY_EXISTS | compositionId already assigned to repositoryId
| |
NOT_FOUND | compositionId or repositoryId not found | ||
NULL_ARGUMENT | compositionId or repositoryId is null
| ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | unassignCompositionFromRepository | ||
Description |
Removes | ||
Parameters | osid.id.Id | compositionId | the Id of the Composition |
osid.id.Id | repositoryId | the Id of the Repository | |
Errors | NOT_FOUND | compositionId or repositoryId not found or
compositionId not assigned to repositoryId | |
NULL_ARGUMENT | compositionId or repositoryId is null
| ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |