| Interface | osid.transport.EndpointAdminSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Used By | osid.transport.TransportManager | ||
osid.transport.TransportProxyManager | |||
| 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 | canCreateEndpoints | ||
| Description |
Tests if this user can create | ||
| Return | boolean | false if Endpoint creation is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateEndpointWithRecordTypes | ||
| Description |
Tests if this user can create a single
| ||
| Parameters | osid.type.Type[] | endpointRecordTypes | array of endpoint record types |
| Return | boolean | true if Endpoint creation using the specified
Types is supported, false otherwise | |
| Errors | NULL_ARGUMENT | endpointRecordTypes is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getEndpointFormForCreate | ||
| Description |
Gets the endpoint form for creating new endpoints. | ||
| Parameters | osid.type.Type[] | endpointRecordTypes | array of endpoint record types |
| Return | osid.transport.EndpointForm | the endpoint form | |
| Errors | NULL_ARGUMENT | endpointRecordTypes is null | |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | unable to get form with requested record types | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | createEndpoint | ||
| Description |
Creates a new | ||
| Parameters | osid.transport.EndpointForm | endpointForm | the form for this Endpoint |
| Return | osid.transport.Endpoint | the new Endpoint | |
| Errors | ILLEGAL_STATE | endpointForm already used in a create transaction | |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT | endpointForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | endpointForm did not originate from
getEndpointFormForCreate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateEndpoints | ||
| Description |
Tests if this user can update | ||
| Return | boolean | false if Endpoint modification is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getEndpointFormForUpdate | ||
| Description |
Gets the endpoint form for updating an existing endpoint. A new endpoint form should be requested for each update transaction. | ||
| Parameters | osid.id.Id | endpointId | the Id of the Endpoint |
| Return | osid.transport.EndpointForm | the endpoint form | |
| Errors | NOT_FOUND | endpointId is not found | |
| NULL_ARGUMENT | endpointId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateEndpoint | ||
| Description |
Updates an existing endpoint. | ||
| Parameters | osid.transport.EndpointForm | endpointForm | the form containing the elements to be updated |
| Errors | ILLEGAL_STATE | endpointForm already used in an update transaction | |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT | endpointId or endpointForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | endpointForm did not originate from
getEndpointFormForUpdate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteEndpoints | ||
| Description |
Tests if this user can delete | ||
| Return | boolean | false if Endpoint deletion is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteEndpoint | ||
| Description |
Deletes a | ||
| Parameters | osid.id.Id | endpointId | the Id of the Endpoint to remove |
| Errors | NOT_FOUND | endpointId not found | |
| NULL_ARGUMENT | endpointId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageEndpointAliases | ||
| Description |
Tests if this user can manage | ||
| Return | boolean | false if Endpoint aliasing is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasEndpoint | ||
| Description |
Adds an | ||
| Parameters | osid.id.Id | endpointId | the Id of a Endpoint |
osid.id.Id | aliasId | the alias Id | |
| Errors | ALREADY_EXISTS | aliasId is already assigned | |
| NOT_FOUND | endpointId not found | ||
| NULL_ARGUMENT | endpointId or aliasId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |