| Interface | osid.topology.GraphAdminSession | ||
|---|---|---|---|
| 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 | canCreateGraphs | ||
| Description |
Tests if this user can create | ||
| Return | boolean | false if Graph creation is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateGraphWithRecordTypes | ||
| Description |
Tests if this user can create a single | ||
| Parameters | osid.type.Type[] | graphRecordTypes | array of graph record types |
| Return | boolean | true if Graph creation using the specified
record Types is supported, false otherwise | |
| Errors | NULL_ARGUMENT | graphRecordTypes is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getGraphFormForCreate | ||
| Description |
Gets the graph form for creating new graphs. A new form should be requested for each create transaction. | ||
| Parameters | osid.type.Type[] | graphRecordTypes | array of graph record types |
| Return | osid.topology.GraphForm | the graph form | |
| Errors | NULL_ARGUMENT | graphRecordTypes 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 | createGraph | ||
| Description |
Creates a new | ||
| Parameters | osid.topology.GraphForm | graphForm | the form for this Graph |
| Return | osid.topology.Graph | the new Graph | |
| Errors | ILLEGAL_STATE | graphForm already used in a create transaction | |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT | graphForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | graphForm did not originate from
getGraphFormForCreate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateGraphs | ||
| Description |
Tests if this user can update | ||
| Return | boolean | false if Graph modification is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getGraphFormForUpdate | ||
| Description |
Gets the graph form for updating an existing graph. A new graph form should be requested for each update transaction. | ||
| Parameters | osid.id.Id | graphId | the Id of the Graph |
| Return | osid.topology.GraphForm | the graph form | |
| Errors | NOT_FOUND | graphId is not found | |
| NULL_ARGUMENT | graphId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateGraph | ||
| Description |
Updates an existing graph | ||
| Parameters | osid.topology.GraphForm | graphForm | the form containing the elements to be updated |
| Errors | ILLEGAL_STATE | graphForm already used in an update transaction | |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT | graphForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | graphForm did not originate from
getGraphFormForUpdate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteGraphs | ||
| Description |
Tests if this user can delete | ||
| Return | boolean | false if Graph deletion is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteGraph | ||
| Description |
Deletes a | ||
| Parameters | osid.id.Id | graphId | the Id of the Graph to remove |
| Errors | NOT_FOUND | graphId not found | |
| NULL_ARGUMENT | graphId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageGraphAliases | ||
| Description |
Tests if this user can manage | ||
| Return | boolean | false if Graph aliasing is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasGraph | ||
| Description |
Adds an | ||
| Parameters | osid.id.Id | graphId | the Id of a Graph |
osid.id.Id | aliasId | the alias Id | |
| Errors | ALREADY_EXISTS | aliasId is already assigned | |
| NOT_FOUND | graphId not found | ||
| NULL_ARGUMENT | graphId or aliasId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |