| Interface | osid.control.ControllerAdminSession | ||
|---|---|---|---|
| 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 | getSystemId | ||
| Description |
Gets the | ||
| Return | osid.id.Id | the System Id associated with this session | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getSystem | ||
| Description |
Gets the | ||
| Return | osid.control.System | the system | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateController | ||
| Description |
Tests if this user can create controllers. A return of
true does not guarantee successful authorization. A return
of false indicates that it is known creating a | ||
| Return | boolean | false if Controller creation is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateControllerWithRecordTypes | ||
| Description |
Tests if this user can create a single | ||
| Parameters | osid.type.Type[] | controllerRecordTypes | array of controller record types |
| Return | boolean | true if Controller creation using the
specified record Types is supported, false
otherwise | |
| Errors | NULL_ARGUMENT | controllerRecordTypes is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getControllerFormForCreate | ||
| Description |
Gets the controller form for creating new controllers. A new form should be requested for each create transaction. | ||
| Parameters | osid.type.Type[] | controllerRecordTypes | array of controller record types |
| Return | osid.control.ControllerForm | the controller form | |
| Errors | NULL_ARGUMENT | controllerRecordTypes 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 | createController | ||
| Description |
Creates a new | ||
| Parameters | osid.control.ControllerForm | controllerForm | the form for this Controller |
| Return | osid.control.Controller | the new Controller | |
| Errors | ILLEGAL_STATE | controllerForm already used in a create transaction | |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT | controllerForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | controllerForm did not originate from
getControllerFormForCreate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateControllers | ||
| Description |
Tests if this user can update controllers. A return of
true does not guarantee successful authorization. A return
of false indicates that it is known updating a | ||
| Return | boolean | false if Controller modification is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getControllerFormForUpdate | ||
| Description |
Gets the controller form for updating an existing controller. A new controller form should be requested for each update transaction. | ||
| Parameters | osid.id.Id | controllerId | the Id of the Controller |
| Return | osid.control.ControllerForm | the controller form | |
| Errors | NOT_FOUND | controllerId is not found | |
| NULL_ARGUMENT | controllerId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateController | ||
| Description |
Updates an existing controller. | ||
| Parameters | osid.control.ControllerForm | controllerForm | the form containing the elements to be updated |
| Errors | ILLEGAL_STATE | controllerForm already used in an update transaction | |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT | controllerForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | controllerForm did not originate from
getControllerFormForUpdate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteControllers | ||
| Description |
Tests if this user can delete controllers. A return of
true does not guarantee successful authorization. A return
of false indicates that it is known deleting a | ||
| Return | boolean | false if Controller deletion is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteController | ||
| Description |
Deletes a | ||
| Parameters | osid.id.Id | controllerId | the Id of the Controller to remove |
| Errors | NOT_FOUND | controllerId not found | |
| NULL_ARGUMENT | controllerId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageControllerAliases | ||
| Description |
Tests if this user can manage | ||
| Return | boolean | false if Controller aliasing is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasController | ||
| Description |
Adds an | ||
| Parameters | osid.id.Id | controllerId | the Id of a Controller |
osid.id.Id | aliasId | the alias Id | |
| Errors | ALREADY_EXISTS | aliasId is already assigned | |
| NOT_FOUND | controllerId not found | ||
| NULL_ARGUMENT | controllerId or aliasId is null
| ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |