| Interface | osid.topology.EdgeAdminSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Description | 
                 This session creates, updates, and deletes   Create and update operations differ in their usage. To 
                create an   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 | canCreateEdges | ||
| Description | 
                     Tests if this user can create   | ||
| Return | boolean |  false  if  Edge  creation is not authorized, 
 true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateEdgeWithRecordTypes | ||
| Description | 
                     Tests if this user can create a single   | ||
| Parameters | osid.type.Type[] | edgeRecordTypes | array of edge record types | 
| Return | boolean |  true  if  Edge  creation using the specified 
record  Types  is supported,  false  otherwise  | |
| Errors | NULL_ARGUMENT |  edgeRecordTypes  is  null   |                 |
| Compliance | mandatory | This method must be implemented. | |
| Method | getEdgeFormForCreate | ||
| Description | 
                     Gets the edge form for creating new edges. A new form should be requested for each create transaction.  | ||
| Parameters | osid.id.Id | sourceNodeId | the  Id  of the starting node.  | 
osid.id.Id | destinationNodeId | the  Id  of the ending node.  | |
osid.type.Type[] | edgeRecordTypes | array of edge record types | |
| Return | osid.topology.EdgeForm | the edge form | |
| Errors | NOT_FOUND |  sourceNodeId  or  destinationNodeId  is not 
found  |                 |
| NULL_ARGUMENT |  sourceNodeId, destinationNodeId,  or  edgeRecordTypes 
 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 | createEdge | ||
| Description | 
                     Creates a new   | ||
| Parameters | osid.topology.EdgeForm | edgeForm | the form for this  Edge   | 
| Return | osid.topology.Edge | the new  Edge   | |
| Errors | ILLEGAL_STATE |  edgeForm  already used in a create transaction  |                 |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT |  edgeForm  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED |  edgeForm  did not originate from  
getEdgeFormForCreate()   |                 ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateEdges | ||
| Description | 
                     Tests if this user can update   | ||
| Return | boolean |  false  if  Edge  modification is not authorized, 
 true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getEdgeFormForUpdate | ||
| Description | 
                     Gets the edge form for updating an existing edge. A new edge form should be requested for each update transaction.  | ||
| Parameters | osid.id.Id | edgeId | the  Id  of the  Edge   | 
| Return | osid.topology.EdgeForm | the edge form | |
| Errors | NOT_FOUND |  edgeId  is not found  |                 |
| NULL_ARGUMENT |  edgeId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateEdge | ||
| Description | 
                     Updates an existing edge.  | ||
| Parameters | osid.topology.EdgeForm | edgeForm | the form containing the elements to be updated | 
| Errors | ILLEGAL_STATE |  edgeForm  already used in an update transaction  |                 |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT |  edgeForm  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED |  edgeForm  did not originate from  
getEdgeFormForUpdate()   |                 ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteEdges | ||
| Description | 
                     Tests if this user can delete   | ||
| Return | boolean |  false  if  Edge  deletion is not authorized, 
 true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteEdge | ||
| Description | 
                     Deletes an   | ||
| Parameters | osid.id.Id | edgeId | the  Id  of the  Edge  to remove  | 
| Errors | NOT_FOUND |  edgeId  not found  |                 |
| NULL_ARGUMENT |  edgeId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageEdgeAliases | ||
| Description | 
                     Tests if this user can manage   | ||
| Return | boolean |  false  if  Edge  aliasing is not authorized, 
 true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasEdge | ||
| Description | 
                     Adds an   | ||
| Parameters | osid.id.Id | edgeId | the  Id  of an  Edge   | 
osid.id.Id | aliasId | the alias  Id   | |
| Errors | ALREADY_EXISTS |  aliasId  is already assigned  |                 |
| NOT_FOUND |  edgeId  not found  |                 ||
| NULL_ARGUMENT |  edgeId  or  aliasId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |