| Interface | osid.resourcing.FoundryAdminSession | ||
|---|---|---|---|
| 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 | canCreateFoundries | ||
| Description |
Tests if this user can create | ||
| Return | boolean | false if Foundry creation is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateFoundryWithRecordTypes | ||
| Description |
Tests if this user can create a single | ||
| Parameters | osid.type.Type[] | foundryRecordTypes | array of foundry record types |
| Return | boolean | true if Foundry creation using the specified
record Types is supported, false otherwise | |
| Errors | NULL_ARGUMENT | foundryRecordTypes is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getFoundryFormForCreate | ||
| Description |
Gets the foundry form for creating new foundries. A new form should be requested for each create transaction. | ||
| Parameters | osid.type.Type[] | foundryRecordTypes | array of foundry record types |
| Return | osid.resourcing.FoundryForm | the foundry form | |
| Errors | NULL_ARGUMENT | foundryRecordTypes 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 | createFoundry | ||
| Description |
Creates a new | ||
| Parameters | osid.resourcing.FoundryForm | foundryForm | the form for this Foundry |
| Return | osid.resourcing.Foundry | the new Foundry | |
| Errors | ILLEGAL_STATE | foundryForm already used in a create transaction | |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT | foundryForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | foundryForm did not originate from
getFoundryFormForCreate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateFoundries | ||
| Description |
Tests if this user can update | ||
| Return | boolean | false if Foundry modification is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getFoundryFormForUpdate | ||
| Description |
Gets the foundry form for updating an existing foundry. A new foundry form should be requested for each update transaction. | ||
| Parameters | osid.id.Id | foundryId | the Id of the Foundry |
| Return | osid.resourcing.FoundryForm | the foundry form | |
| Errors | NOT_FOUND | foundryId is not found | |
| NULL_ARGUMENT | foundryId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateFoundry | ||
| Description |
Updates an existing foundry | ||
| Parameters | osid.resourcing.FoundryForm | foundryForm | the form containing the elements to be updated |
| Errors | ILLEGAL_STATE | foundryForm already used in an update transaction | |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT | foundryForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | foundryForm did not originate from
getFoundryFormForUpdate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteFoundries | ||
| Description |
Tests if this user can delete | ||
| Return | boolean | false if Foundry deletion is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteFoundry | ||
| Description |
Deletes a | ||
| Parameters | osid.id.Id | foundryId | the Id of the Foundry to remove |
| Errors | NOT_FOUND | foundryId not found | |
| NULL_ARGUMENT | foundryId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageFoundryAliases | ||
| Description |
Tests if this user can manage | ||
| Return | boolean | false if Foundry aliasing is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasFoundry | ||
| Description |
Adds an | ||
| Parameters | osid.id.Id | foundryId | the Id of a Foundry |
osid.id.Id | aliasId | the alias Id | |
| Errors | ALREADY_EXISTS | aliasId is already assigned | |
| NOT_FOUND | foundryId not found | ||
| NULL_ARGUMENT | foundryId or aliasId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |