Interface | osid.recipe.ProcedureAdminSession | ||
---|---|---|---|
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 | getCookbookId | ||
Description |
Gets the | ||
Return | osid.id.Id | the Cookbook Id associated with this session | |
Compliance | mandatory | This method must be implemented. | |
Method | getCookbook | ||
Description |
Gets the | ||
Return | osid.recipe.Cookbook | the cookbook | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canCreateProcedures | ||
Description |
Tests if this user can create procedures. A return of
true does not guarantee successful authorization. A return
of false indicates that it is known creating a | ||
Return | boolean | false if Procedure creation is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | canCreateProcedureWithRecordTypes | ||
Description |
Tests if this user can create a single | ||
Parameters | osid.type.Type[] | procedureRecordTypes | array of procedure record types |
Return | boolean | true if Procedure creation using the
specified record Types is supported, false
otherwise | |
Errors | NULL_ARGUMENT | procedureRecordTypes is null | |
Compliance | mandatory | This method must be implemented. | |
Method | getProcedureFormForCreate | ||
Description |
Gets the procedure form for creating new procedures. A new form should be requested for each create transaction. | ||
Parameters | osid.type.Type[] | procedureRecordTypes | array of procedure record types |
Return | osid.recipe.ProcedureForm | the procedure form | |
Errors | NULL_ARGUMENT | procedureRecordTypes 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 | createProcedure | ||
Description |
Creates a new | ||
Parameters | osid.recipe.ProcedureForm | procedureForm | the form for this Procedure |
Return | osid.recipe.Procedure | the new Procedure | |
Errors | ILLEGAL_STATE | procedureForm already used in a create transaction | |
INVALID_ARGUMENT | one or more of the form elements is invalid | ||
NULL_ARGUMENT | procedureForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | procedureForm did not originate from
getProcedureFormForCreate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canUpdateProcedures | ||
Description |
Tests if this user can update procedures. A return of
true does not guarantee successful authorization. A return
of false indicates that it is known updating a | ||
Return | boolean | false if Procedure modification is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | canUpdateProcedure | ||
Description |
Tests if this user can update a specified | ||
Parameters | osid.id.Id | procedureId | the Id of the Procedure |
Return | boolean | false if procedure modification is not authorized,
true otherwise | |
Errors | NULL_ARGUMENT | procedureId is null | |
Compliance | mandatory | This method must be implemented. | |
Provider Notes |
If the | ||
Method | getProcedureFormForUpdate | ||
Description |
Gets the procedure form for updating an existing procedure. A new procedure form should be requested for each update transaction. | ||
Parameters | osid.id.Id | procedureId | the Id of the Procedure |
Return | osid.recipe.ProcedureForm | the procedure form | |
Errors | NOT_FOUND | procedureId is not found | |
NULL_ARGUMENT | procedureId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | updateProcedure | ||
Description |
Updates an existing procedure. | ||
Parameters | osid.recipe.ProcedureForm | procedureForm | the form containing the elements to be updated |
Errors | ILLEGAL_STATE | procedureForm already used in an update transaction | |
INVALID_ARGUMENT | the form contains an invalid value | ||
NULL_ARGUMENT | procedureId or procedureForm is null
| ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | procedureForm did not originate from
getProcedureFormForUpdate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canDeleteProcedures | ||
Description |
Tests if this user can delete procedures. A return of
true does not guarantee successful authorization. A return
of false indicates that it is known deleting an | ||
Return | boolean | false if Procedure deletion is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | canDeleteProcedure | ||
Description |
Tests if this user can delete a specified | ||
Parameters | osid.id.Id | procedureId | the Id of the Procedure |
Return | boolean | false if deletion of this Procedure is not
authorized, true otherwise | |
Errors | NULL_ARGUMENT | procedureId is null | |
Compliance | mandatory | This method must be implemented. | |
Provider Notes |
If the | ||
Method | deleteProcedure | ||
Description |
Deletes a | ||
Parameters | osid.id.Id | procedureId | the Id of the Procedure to remove |
Errors | NOT_FOUND | procedureId not found | |
NULL_ARGUMENT | procedureId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | deleteProcedures | ||
Description |
Deletes all | ||
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canManageProcedureAliases | ||
Description |
Tests if this user can manage | ||
Return | boolean | false if Procedure aliasing is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | aliasProcedure | ||
Description |
Adds an | ||
Parameters | osid.id.Id | procedureId | the Id of a Procedure |
osid.id.Id | aliasId | the alias Id | |
Errors | ALREADY_EXISTS | aliasId is already assigned | |
NOT_FOUND | procedureId not found | ||
NULL_ARGUMENT | procedureId or aliasId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |