Interface | osid.control.DeviceAdminSession | ||
---|---|---|---|
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 | canCreateDevices | ||
Description |
Tests if this user can create | ||
Return | boolean | false if Device creation is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | canCreateDeviceWithRecordTypes | ||
Description |
Tests if this user can create a single | ||
Parameters | osid.type.Type[] | deviceRecordTypes | array of device record types |
Return | boolean | true if Device creation using the specified
record Types is supported, false otherwise | |
Errors | NULL_ARGUMENT | deviceRecordTypes is null | |
Compliance | mandatory | This method must be implemented. | |
Method | getDeviceFormForCreate | ||
Description |
Gets the device form for creating new devices. A new form should be requested for each create transaction. | ||
Parameters | osid.type.Type[] | deviceRecordTypes | array of device record types |
Return | osid.control.DeviceForm | the device form | |
Errors | NULL_ARGUMENT | deviceRecordTypes 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 | createDevice | ||
Description |
Creates a new | ||
Parameters | osid.control.DeviceForm | deviceForm | the form for this Device |
Return | osid.control.Device | the new Device | |
Errors | ILLEGAL_STATE | deviceForm already used in a create transaction | |
INVALID_ARGUMENT | one or more of the form elements is invalid | ||
NULL_ARGUMENT | deviceForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | deviceForm did not originate from
getDeviceFormForCreate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canUpdateDevices | ||
Description |
Tests if this user can update | ||
Return | boolean | false if Device modification is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | getDeviceFormForUpdate | ||
Description |
Gets the device form for updating an existing device. A new device form should be requested for each update transaction. | ||
Parameters | osid.id.Id | deviceId | the Id of the Device |
Return | osid.control.DeviceForm | the device form | |
Errors | NOT_FOUND | deviceId is not found | |
NULL_ARGUMENT | deviceId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | updateDevice | ||
Description |
Updates an existing device. | ||
Parameters | osid.control.DeviceForm | deviceForm | the form containing the elements to be updated |
Errors | ILLEGAL_STATE | deviceForm already used in an update transatcion | |
INVALID_ARGUMENT | the form contains an invalid value | ||
NULL_ARGUMENT | deviceForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | deviceForm did not originate from
getDeviceFormForUpdate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canDeleteDevices | ||
Description |
Tests if this user can delete | ||
Return | boolean | false if Device deletion is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | deleteDevice | ||
Description |
Deletes a | ||
Parameters | osid.id.Id | deviceId | the Id of the Device to remove |
Errors | NOT_FOUND | deviceId not found | |
NULL_ARGUMENT | deviceId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canManageDeviceAliases | ||
Description |
Tests if this user can manage | ||
Return | boolean | false if Device aliasing is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | aliasDevice | ||
Description |
Adds an | ||
Parameters | osid.id.Id | deviceId | the Id of a Device |
osid.id.Id | aliasId | the alias Id | |
Errors | ALREADY_EXISTS | aliasId is already assigned | |
NOT_FOUND | deviceId not found | ||
NULL_ARGUMENT | deviceId or aliasId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |