| Interface | osid.resourcing.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 | getFoundryId | ||
| Description | 
                     Gets the   | ||
| Return | osid.id.Id | the  Foundry Id  associated with this session  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getFoundry | ||
| Description | 
                     Gets the   | ||
| Return | osid.resourcing.Foundry | the foundry | |
| 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 work. A new form should be requested for each create transaction.  | ||
| Parameters | osid.id.Id | jobId | a job  Id   | 
osid.type.Type[] | workRecordTypes | array of work record types | |
| Return | osid.resourcing.WorkForm | the work form | |
| Errors | NOT_FOUND |  jobId  is not found  |                 |
| NULL_ARGUMENT |  jobId  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.resourcing.WorkForm | workForm | the form for this  Work   | 
| Return | osid.resourcing.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 orginiate 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.resourcing.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.resourcing.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 orginiate 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 job.  | ||
| Parameters | osid.id.Id | workId | the work  Id   | 
osid.id.Id | jobId | the new job  Id   | |
| Errors | ALREADY_EXISTS | work already part of job | |
| NOT_FOUND |  jobId  or  workId  is not found  |                 ||
| NULL_ARGUMENT |  jobId  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. | |