| Interface | osid.checklist.TodoAdminSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Description | 
                 This session creates, updates, and deletes   Create and update operations differ in their usage. To 
                create an   For updates,   The delete operations delete   This session includes an   | ||
| Method | getChecklistId | ||
| Description | 
                     Gets the   | ||
| Return | osid.id.Id | the  Checklist Id  associated with this session  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getChecklist | ||
| Description | 
                     Gets the   | ||
| Return | osid.checklist.Checklist | the checklist | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateTodos | ||
| Description | 
                     Tests if this user can create todos. A return of true 
                    does not guarantee successful authorization. A return of 
                    false indicates that it is known creating a   | ||
| Return | boolean |  false  if  Todo  creation is not authorized, 
 true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateTodoWithRecordTypes | ||
| Description | 
                     Tests if this user can create a single   | ||
| Parameters | osid.type.Type[] | todoRecordTypes | array of todo record types | 
| Return | boolean |  true  if  Todo  creation using the specified 
record  Types  is supported,  false  otherwise  | |
| Errors | NULL_ARGUMENT |  todoRecordTypes  is  null   |                 |
| Compliance | mandatory | This method must be implemented. | |
| Method | getTodoFormForCreate | ||
| Description | 
                     Gets the todo form for creating new todos. A new form should be requested for each create transaction.  | ||
| Parameters | osid.type.Type[] | todoRecordTypes | array of todo record types | 
| Return | osid.checklist.TodoForm | the todo form | |
| Errors | NULL_ARGUMENT |  todoRecordTypes  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 | createTodo | ||
| Description | 
                     Creates a new   | ||
| Parameters | osid.checklist.TodoForm | todoForm | the form for this  Todo   | 
| Return | osid.checklist.Todo | the new  Todo   | |
| Errors | ILLEGAL_STATE |  todoForm  already used for a create transaction  |                 |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT |  todoForm  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED |  todoForm  did not originate from  
getTodoFormForCreate()   |                 ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateTodos | ||
| Description | 
                     Tests if this user can update todos. A return of true 
                    does not guarantee successful authorization. A return of 
                    false indicates that it is known updating a   | ||
| Return | boolean |  false  if  Todo  modification is not authorized, 
 true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getTodoFormForUpdate | ||
| Description | 
                     Gets the todo form for updating an existing todo. A new todo form should be requested for each update transaction.  | ||
| Parameters | osid.id.Id | todoId | the  Id  of the  Todo   | 
| Return | osid.checklist.TodoForm | the todo form | |
| Errors | NOT_FOUND |  todoId  is not found  |                 |
| NULL_ARGUMENT |  todoId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateTodo | ||
| Description | 
                     Updates an existing todo.  | ||
| Parameters | osid.checklist.TodoForm | todoForm | the form containing the elements to be updated | 
| Errors | ILLEGAL_STATE |  todoForm  already used for an update transaction  |                 |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT |  todoId  or  todoForm  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED |  todoForm  did not originate from  
getTodoFormForUpdate()   |                 ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteTodos | ||
| Description | 
                     Tests if this user can delete todos. A return of true 
                    does not guarantee successful authorization. A return of 
                    false indicates that it is known deleting an   | ||
| Return | boolean |  false  if  Todo  deletion is not authorized, 
 true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteTodo | ||
| Description | 
                     Deletes a   | ||
| Parameters | osid.id.Id | todoId | the  Id  of the  Todo  to remove  | 
| Errors | NOT_FOUND |  todoId  not found  |                 |
| NULL_ARGUMENT |  todoId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageTodoAliases | ||
| Description | 
                     Tests if this user can manage   | ||
| Return | boolean |  false  if  Todo  aliasing is not authorized, 
 true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasTodo | ||
| Description | 
                     Adds an   | ||
| Parameters | osid.id.Id | todoId | the  Id  of a  Todo   | 
osid.id.Id | aliasId | the alias  Id   | |
| Errors | ALREADY_EXISTS |  aliasId  is already assigned  |                 |
| NOT_FOUND |  todoId  not found  |                 ||
| NULL_ARGUMENT |  todoId  or  aliasId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageDependencies | ||
| Description | 
                     Tests if this user can manage todo dependencies   | ||
| Return | boolean |  false  if  Todo  aliasing is not authorized, 
 true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | addDependency | ||
| Description | 
                     Adds a todo as a dependency for another todo.  | ||
| Parameters | osid.id.Id | dependentTodoId | the  Id  of the dependency  Todo   | 
osid.id.Id | dependencyTodoId | the  Id  of the  Todo  dependency  | |
| Errors | ALREADY_EXISTS |  dependentTodoId  is already dependent upon  
dependencyTodoId  or vice-versa  |                 |
| NOT_FOUND |  dependentTodoId  or  dependencyTodoId  is not 
found  |                 ||
| NULL_ARGUMENT |  dependentTodoId  or  dependencyTodoId  is  
null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | removeDependency | ||
| Description | 
                     Removes a todo as a dependency from another todo.  | ||
| Parameters | osid.id.Id | dependentTodoId | the  Id  of the dependency  Todo   | 
osid.id.Id | dependencyTodoId | the  Id  of the  Todo  dependency  | |
| Errors | NOT_FOUND |  dependentTodoId  or  dependencyTodoId  is not 
found, or  dependentTodoId  not dependent upon  
dependencyTodoId   |                 |
| NULL_ARGUMENT |  dependentTodoId  or  dependencyTodoId  is  
null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |