| Interface | osid.repository.rules.CompositionEnablerAdminSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Description |
This session creates and removes composition enablers. The
data for create and update is provided via the | ||
| 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 | canCreateCompositionEnabler | ||
| Description |
Tests if this user can create composition enablers. A
return of true does not guarantee successful
authorization. A return of false indicates that it is
known creating a | ||
| Return | boolean | false if CompositionEnabler creation is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateCompositionEnablerWithRecordTypes | ||
| Description |
Tests if this user can create a single | ||
| Parameters | osid.type.Type[] | compositionEnablerRecordTypes | array of composition enabler types |
| Return | boolean | true if CompositionEnabler creation using the
specified record Types is supported, false
otherwise | |
| Errors | NULL_ARGUMENT | compositionEnablerRecordTypes is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getCompositionEnablerFormForCreate | ||
| Description |
Gets the composition enabler form for creating new composition enablers. A new form should be requested for each create transaction. | ||
| Parameters | osid.type.Type[] | compositionEnablerRecordTypes | array of composition enabler types |
| Return | osid.repository.rules.CompositionEnablerForm | the composition enabler form | |
| Errors | NULL_ARGUMENT | compositionEnablerRecordTypes 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 | createCompositionEnabler | ||
| Description |
Creates a new | ||
| Parameters | osid.repository.rules.CompositionEnablerForm | compositionEnablerForm | the form for this CompositionEnabler |
| Return | osid.repository.rules.CompositionEnabler | the new CompositionEnabler | |
| Errors | ILLEGAL_STATE | compositionEnablerForm already used in a create transaction | |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT | compositionEnablerForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | compositionEnablerForm did not originate from
getCompositionEnablerFormForCreate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateCompositionEnablers | ||
| Description |
Tests if this user can update composition enablers. A
return of true does not guarantee successful
authorization. A return of false indicates that it is
known updating a | ||
| Return | boolean | false if CompositionEnabler modification is
not authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getCompositionEnablerFormForUpdate | ||
| Description |
Gets the composition enabler form for updating an existing composition enabler. A new composition enabler form should be requested for each update transaction. | ||
| Parameters | osid.id.Id | compositionEnablerId | the Id of the CompositionEnabler |
| Return | osid.repository.rules.CompositionEnablerForm | the composition enabler form | |
| Errors | NOT_FOUND | compositionEnablerId is not found | |
| NULL_ARGUMENT | compositionEnablerId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateCompositionEnabler | ||
| Description |
Updates an existing composition enabler. | ||
| Parameters | osid.repository.rules.CompositionEnablerForm | compositionEnablerForm | the form containing the elements to be updated |
| Errors | ILLEGAL_STATE | compositionEnablerForm already used in an update transaction | |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT | compositionEnablerForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | compositionEnablerForm did not originate from
getCompositionEnablerFormForUpdate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteCompositionEnablers | ||
| Description |
Tests if this user can delete composition enablers. A
return of true does not guarantee successful
authorization. A return of false indicates that it is
known deleting a | ||
| Return | boolean | false if CompositionEnabler deletion is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteCompositionEnabler | ||
| Description |
Deletes a | ||
| Parameters | osid.id.Id | compositionEnablerId | the Id of the CompositionEnabler to remove |
| Errors | NOT_FOUND | compositionEnablerId not found | |
| NULL_ARGUMENT | compositionEnablerId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageCompositionEnablerAliases | ||
| Description |
Tests if this user can manage | ||
| Return | boolean | false if CompositionEnabler aliasing is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasCompositionEnabler | ||
| Description |
Adds an | ||
| Parameters | osid.id.Id | compositionEnablerId | the Id of a CompositionEnabler |
osid.id.Id | aliasId | the alias Id | |
| Errors | ALREADY_EXISTS | aliasId is already assigned | |
| NOT_FOUND | compositionEnablerId not found | ||
| NULL_ARGUMENT | compositionEnablerId or aliasId is
null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |