| Interface | osid.topology.NodeAdminSession | ||
|---|---|---|---|
| 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 | getGraphId | ||
| Description |
Gets the | ||
| Return | osid.id.Id | the Graph Id associated with this session | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getGraph | ||
| Description |
Gets the | ||
| Return | osid.topology.Graph | the graph | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateNodes | ||
| Description |
Tests if this user can create | ||
| Return | boolean | false if Node creation is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateNodeWithRecordTypes | ||
| Description |
Tests if this user can create a single | ||
| Parameters | osid.type.Type[] | nodeRecordTypes | array of node record types |
| Return | boolean | true if Node creation using the specified
record Types is supported, false otherwise | |
| Errors | NULL_ARGUMENT | nodeRecordTypes is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getNodeFormForCreate | ||
| Description |
Gets the node form for creating new nodes. A new form should be requested for each create transaction. | ||
| Parameters | osid.type.Type[] | nodeRecordTypes | array of node record types |
| Return | osid.topology.NodeForm | the node form | |
| Errors | NULL_ARGUMENT | nodeRecordTypes 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 | createNode | ||
| Description |
Creates a new | ||
| Parameters | osid.topology.NodeForm | nodeForm | the form for this Node |
| Return | osid.topology.Node | the new Node | |
| Errors | ILLEGAL_STATE | nodeForm already used in a create transaction | |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT | nodeForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | nodeForm did not originate from
getNodeFormForCreate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateNodes | ||
| Description |
Tests if this user can update | ||
| Return | boolean | false if Node modification is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getNodeFormForUpdate | ||
| Description |
Gets the node form for updating an existing node. A new node form should be requested for each update transaction. | ||
| Parameters | osid.id.Id | nodeId | the Id of the Node |
| Return | osid.topology.NodeForm | the node form | |
| Errors | NOT_FOUND | nodeId is not found | |
| NULL_ARGUMENT | nodeId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateNode | ||
| Description |
Updates an existing node. | ||
| Parameters | osid.topology.NodeForm | nodeForm | the form containing the elements to be updated |
| Errors | ILLEGAL_STATE | nodeForm already used in an update transaction | |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT | nodeForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | nodeForm did not originate from
getNodeFormForUpdate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteNodes | ||
| Description |
Tests if this user can delete | ||
| Return | boolean | false if Node deletion is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteNode | ||
| Description |
Deletes a | ||
| Parameters | osid.id.Id | nodeId | the Id of the Node to remove |
| Errors | NOT_FOUND | nodeId not found | |
| NULL_ARGUMENT | nodeId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageNodeAliases | ||
| Description |
Tests if this user can manage | ||
| Return | boolean | false if Node aliasing is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasNode | ||
| Description |
Adds an | ||
| Parameters | osid.id.Id | nodeId | the Id of a Node |
osid.id.Id | aliasId | the alias Id | |
| Errors | ALREADY_EXISTS | aliasId is already assigned | |
| NOT_FOUND | nodeId not found | ||
| NULL_ARGUMENT | nodeId or aliasId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |