Interface | osid.repository.CompositionAdminSession | ||
---|---|---|---|
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 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 associated with this session | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canCreateCompositions | ||
Description |
Tests if this user can create | ||
Return | boolean | false if Composition creation is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | canCreateCompositionWithRecordTypes | ||
Description |
Tests if this user can create a single | ||
Parameters | osid.type.Type[] | compositionRecordTypes | array of composition record types |
Return | boolean | true if Composition creation using the
specified Types is supported, false otherwise | |
Errors | NULL_ARGUMENT | compositionRecordTypes is null | |
Compliance | mandatory | This method must be implemented. | |
Method | getCompositionFormForCreate | ||
Description |
Gets the composition form for creating new compositions. A new form should be requested for each create transaction. | ||
Parameters | osid.type.Type[] | compositionRecordTypes | array of composition record types |
Return | osid.repository.CompositionForm | the composition form | |
Errors | NULL_ARGUMENT | compositionRecordTypes 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 | createComposition | ||
Description |
Creates a new | ||
Parameters | osid.repository.CompositionForm | composiitonForm | the form for this Composition |
Return | osid.repository.Composition | the new Composition | |
Errors | ILLEGAL_STATE | compositionForm already used in a create transaction | |
INVALID_ARGUMENT | one or more of the form elements is invalid | ||
NULL_ARGUMENT | compositionForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | compositionForm did not originate from
getCompositionFormForCreate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canUpdateCompositions | ||
Description |
Tests if this user can update | ||
Return | boolean | false if Composition modification is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | getCompositionFormForUpdate | ||
Description |
Gets the composition form for updating an existing composition. A new composition form should be requested for each update transaction. | ||
Parameters | osid.id.Id | compositionId | the Id of the Composition |
Return | osid.repository.CompositionForm | the composition form | |
Errors | NOT_FOUND | compositionId is not found | |
NULL_ARGUMENT | compositionId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | updateComposition | ||
Description |
Updates an existing composition. | ||
Parameters | osid.repository.CompositionForm | composiitonForm | the form containing the elements to be updated |
Errors | ILLEGAL_STATE | compositionForm already used in an update transaction | |
INVALID_ARGUMENT | the form contains an invalid value | ||
NULL_ARGUMENT | compositionForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | compositionForm did not originate from
getCompositionFormForUpdate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canDeleteCompositions | ||
Description |
Tests if this user can delete | ||
Return | boolean | false if Composition deletion is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | deleteComposition | ||
Description |
Deletes a | ||
Parameters | osid.id.Id | compositionId | the Id of the Composition to remove |
Errors | NOT_FOUND | compositionId not found | |
NULL_ARGUMENT | compositionId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | deleteCompositionNode | ||
Description |
Deletes a | ||
Parameters | osid.id.Id | compositionId | the Id of the Composition to remove |
Errors | NOT_FOUND | compositionId not found | |
NULL_ARGUMENT | compositionId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | addCompositionChild | ||
Description |
Adds a composition to a parent composition. | ||
Parameters | osid.id.Id | compositionId | the Id of a parent Composition |
osid.id.Id | childCompositionId | the Id of a child Composition | |
Errors | ALREADY_EXISTS | childCompositionId is already a child of
compositionId | |
NOT_FOUND | compositionId or childCompositionId is not
found | ||
NULL_ARGUMENT | compositionId or childCompositionId is
null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | removeCompositionChild | ||
Description |
Removes a composition from a parent composition. | ||
Parameters | osid.id.Id | compositionId | the Id of a parent Composition |
osid.id.Id | childCompositionId | the Id of a child Composition | |
Errors | NOT_FOUND | compositionId or childCompositionId is not
found or not related | |
NULL_ARGUMENT | compositionId or childCompositionId is
null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canManageCompositionAliases | ||
Description |
Tests if this user can manage | ||
Return | boolean | false if Composition aliasing is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | aliasComposition | ||
Description |
Adds an | ||
Parameters | osid.id.Id | compositionId | the Id of a Composition |
osid.id.Id | aliasId | the alias Id | |
Errors | ALREADY_EXISTS | aliasId is in use as a primary Id | |
NOT_FOUND | compositionId not found | ||
NULL_ARGUMENT | compositionId or aliasId is null
| ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |