| Interface | osid.workflow.event.WorkflowEventAdminSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Used By | osid.workflow.event.WorkflowEventManager | ||
osid.workflow.event.WorkflowEventProxyManager | |||
| 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 | getOfficeId | ||
| Description |
Gets the | ||
| Return | osid.id.Id | the Office Id associated with this session | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getOffice | ||
| Description |
Gets the | ||
| Return | osid.workflow.Office | the office | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateWorkflowEvents | ||
| Description |
Tests if this user can create
| ||
| Return | boolean | false if WorkflowEvent creation is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateWorkflowEventWithRecordTypes | ||
| Description |
Tests if this user can create a single
| ||
| Parameters | osid.type.Type[] | workflowEventRecordTypes | array of workflow event record types |
| Return | boolean | true if WorkflowEvent creation using the
specified record Types is supported, false otherwise | |
| Errors | NULL_ARGUMENT | workflowEventRecordTypes is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getWorkflowEventFormForCreate | ||
| Description |
Gets the workflow event form for creating new workflow events. A new form should be requested for each create transaction. | ||
| Parameters | osid.type.Type[] | workflowEventRecordTypes | array of workflow event record types |
| Return | osid.workflow.event.WorkflowEventForm | the workflow event form | |
| Errors | NULL_ARGUMENT | workflowEventRecordTypes 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 | createWorkflowEvent | ||
| Description |
Creates a new | ||
| Parameters | osid.workflow.event.WorkflowEventForm | workflowEventForm | the form for this WorkflowEvent |
| Return | osid.workflow.event.WorkflowEvent | the new WorkflowEvent | |
| Errors | ILLEGAL_STATE | workflowEventForm already used in a create transaction | |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT | workflowEventForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | workflowEventForm did not originate from
getWorkflowEventFormForCreate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateWorkflowEvents | ||
| Description |
Tests if this user can update WorkflowEvents. A return of true does not guarantee successful authorization. A return of false indicates that it is known updating a WorkflowEvent will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer update operations to an unauthorized user. | ||
| Return | boolean | false if WorkflowEvent modification is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getWorkflowEventFormForUpdate | ||
| Description |
Gets the workflow event form for updating an existing workflow event. A new workflow event form should be requested for each update transaction. | ||
| Parameters | osid.id.Id | workflowEventId | the Id of the WorkflowEvent |
| Return | osid.workflow.event.WorkflowEventForm | the workflow event form | |
| Errors | NOT_FOUND | workflowEventId is not found | |
| NULL_ARGUMENT | workflowEventId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateWorkflowEvent | ||
| Description |
Updates an existing workflow event. | ||
| Parameters | osid.workflow.event.WorkflowEventForm | workflowEventForm | the form containing the elements to be updated |
| Errors | ILLEGAL_STATE | workflowEventForm already used in an update transaction | |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT | workflowEventForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | workflowEventForm did not originate from
getWorkflowEventFormForUpdate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteWorkflowEvents | ||
| Description |
Tests if this user can delete
| ||
| Return | boolean | false if WorkflowEvent deletion is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteWorkflowEvent | ||
| Description |
Deletes a | ||
| Parameters | osid.id.Id | workflowEventId | the Id of the WorkflowEvent to remove |
| Errors | NOT_FOUND | workflowEventId not found | |
| NULL_ARGUMENT | workflowEventId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageWorkflowEventAliases | ||
| Description |
Tests if this user can manage | ||
| Return | boolean | false if WorkflowEvent aliasing is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasWorkflowEvent | ||
| Description |
Adds an | ||
| Parameters | osid.id.Id | workflowEventId | the Id of a WorkflowEvent |
osid.id.Id | aliasId | the alias Id | |
| Errors | ALREADY_EXISTS | aliasId is already assigned | |
| NOT_FOUND | workflowEventId not found | ||
| NULL_ARGUMENT | workflowEventId or aliasId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |