Interface | osid.control.SystemAdminSession | ||
---|---|---|---|
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 | canCreateSystems | ||
Description |
Tests if this user can create | ||
Return | boolean | false if System creation is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | canCreateSystemWithRecordTypes | ||
Description |
Tests if this user can create a single | ||
Parameters | osid.type.Type[] | systemRecordTypes | array of system record types |
Return | boolean | true if System creation using the specified
record Types is supported, false otherwise | |
Errors | NULL_ARGUMENT | systemRecordTypes is null | |
Compliance | mandatory | This method must be implemented. | |
Method | getSystemFormForCreate | ||
Description |
Gets the system form for creating new systems. A new form should be requested for each create transaction. | ||
Parameters | osid.type.Type[] | systemRecordTypes | array of system record types |
Return | osid.control.SystemForm | the system form | |
Errors | NULL_ARGUMENT | systemRecordTypes 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 | createSystem | ||
Description |
Creates a new | ||
Parameters | osid.control.SystemForm | systemForm | the form for this System |
Return | osid.control.System | the new System | |
Errors | ILLEGAL_STATE | systemForm already used in a create transaction | |
INVALID_ARGUMENT | one or more of the form elements is invalid | ||
NULL_ARGUMENT | systemForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | systemForm did not originate from
getSystemFormForCreate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canUpdateSystems | ||
Description |
Tests if this user can update | ||
Return | boolean | false if System modification is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | getSystemFormForUpdate | ||
Description |
Gets the system form for updating an existing system. A new system form should be requested for each update transaction. | ||
Parameters | osid.id.Id | systemId | the Id of the System |
Return | osid.control.SystemForm | the system form | |
Errors | NOT_FOUND | systemId is not found | |
NULL_ARGUMENT | systemId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | updateSystem | ||
Description |
Updates an existing system | ||
Parameters | osid.control.SystemForm | systemForm | the form containing the elements to be updated |
Errors | ILLEGAL_STATE | systemForm already used in an update transaction | |
INVALID_ARGUMENT | the form contains an invalid value | ||
NULL_ARGUMENT | systemForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | systemForm did not originate from
getSystemFormForUpdate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canDeleteSystems | ||
Description |
Tests if this user can delete | ||
Return | boolean | false if System deletion is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | deleteSystem | ||
Description |
Deletes a | ||
Parameters | osid.id.Id | systemId | the Id of the System to remove |
Errors | NOT_FOUND | systemId not found | |
NULL_ARGUMENT | systemId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canManageSystemAliases | ||
Description |
Tests if this user can manage | ||
Return | boolean | false if System aliasing is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | aliasSystem | ||
Description |
Adds an | ||
Parameters | osid.id.Id | systemId | the Id of a System |
osid.id.Id | aliasId | the alias Id | |
Errors | ALREADY_EXISTS | aliasId is already assigned | |
NOT_FOUND | systemId not found | ||
NULL_ARGUMENT | systemId or aliasId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |