Interface | osid.workflow.WorkAdminSession | ||
---|---|---|---|
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 | 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 | canCreateWorks | ||
Description |
Tests if this user can create | ||
Return | boolean | false if Work creation is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | canCreateWorkWithRecordTypes | ||
Description |
Tests if this user can create a single | ||
Parameters | osid.type.Type[] | workRecordTypes | array of work record types |
Return | boolean | true if Work creation using the specified
record Types is supported, false otherwise | |
Errors | NULL_ARGUMENT | workRecordTypes is null | |
Compliance | mandatory | This method must be implemented. | |
Method | getWorkFormForCreate | ||
Description |
Gets the work form for creating new works. A new form should be requested for each create transaction. | ||
Parameters | osid.type.Type[] | workRecordTypes | array of work record types |
Return | osid.workflow.WorkForm | the work form | |
Errors | NULL_ARGUMENT | workRecordTypes 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 | createWork | ||
Description |
Creates a new | ||
Parameters | osid.workflow.WorkForm | workForm | the form for this Work |
Return | osid.workflow.Work | the new Work | |
Errors | ILLEGAL_STATE | workForm already used in a create transaction | |
INVALID_ARGUMENT | one or more of the form elements is invalid | ||
NULL_ARGUMENT | workForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | workForm did not originate from
getWorkFormForCreate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canUpdateWorks | ||
Description |
Tests if this user can update | ||
Return | boolean | false if Work modification is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | getWorkFormForUpdate | ||
Description |
Gets the work form for updating an existing work. A new work form should be requested for each update transaction. | ||
Parameters | osid.id.Id | workId | the Id of the Work |
Return | osid.workflow.WorkForm | the work form | |
Errors | NOT_FOUND | workId is not found | |
NULL_ARGUMENT | workId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | updateWork | ||
Description |
Updates an existing work. | ||
Parameters | osid.workflow.WorkForm | workForm | the form containing the elements to be updated |
Errors | ILLEGAL_STATE | workForm already used in an update transaction | |
INVALID_ARGUMENT | the form contains an invalid value | ||
NULL_ARGUMENT | workForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | workForm did not originate from
getWorkFormForUpdate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canDeleteWorks | ||
Description |
Tests if this user can delete | ||
Return | boolean | false if Work deletion is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | deleteWork | ||
Description |
Deletes a | ||
Parameters | osid.id.Id | workId | the Id of the Work to remove |
Errors | NOT_FOUND | workId not found | |
NULL_ARGUMENT | workId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canManageWorkAliases | ||
Description |
Tests if this user can manage | ||
Return | boolean | false if Work aliasing is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | aliasWork | ||
Description |
Adds an | ||
Parameters | osid.id.Id | workId | the Id of a Work |
osid.id.Id | aliasId | the alias Id | |
Errors | ALREADY_EXISTS | aliasId is already assigned | |
NOT_FOUND | workId not found | ||
NULL_ARGUMENT | workId or aliasId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canMoveWork | ||
Description |
Tests if this user can move | ||
Return | boolean | false if Work moving is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | moveWork | ||
Description |
Moves work to another process. | ||
Parameters | osid.id.Id | workId | the work Id |
osid.id.Id | processId | the new process Id | |
Errors | ALREADY_EXISTS | work already part of process | |
NOT_FOUND | processId or workId is not found | ||
NULL_ARGUMENT | processId or workId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canManageWorkStatus | ||
Description |
Tests if this user can change | ||
Return | boolean | false if Work status is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | completeWork | ||
Description |
Marks work as complete. | ||
Parameters | osid.id.Id | workId | the work Id |
Errors | NOT_FOUND | workId is not found | |
NULL_ARGUMENT | workId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | reopenWork | ||
Description |
Marks work as incomplete. | ||
Parameters | osid.id.Id | workId | the work Id |
Errors | NOT_FOUND | workId is not found | |
NULL_ARGUMENT | workId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |