| Interface | osid.assessment.AssessmentBasicAuthoringSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Description | 
                 This session defines methods to manage assessment items in an assessment. This session is used for simple assessments without sections or parts. Updating the items on an assessment authored with sections and parts may result in an error.  | ||
| Method | getBankId | ||
| Description | 
                     Gets the   | ||
| Return | osid.id.Id | the  Bank Id  associated with this session  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getBank | ||
| Description | 
                     Gets the   | ||
| Return | osid.assessment.Bank | the  Bank  associated with this session  | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canAuthorAssessments | ||
| Description | 
                     Tests if this user can author assessments. A return of 
                    true does not guarantee successful authorization. A return 
                    of false indicates that it is known mapping methods in 
                    this session will result in a   | ||
| Return | boolean |  false  if mapping is not authorized,  true  
otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getItems | ||
| Description | 
                     Gets the items in sequence from an assessment.  | ||
| Parameters | osid.id.Id | assessmentId | the  Id  of the  Assessment   | 
| Return | osid.assessment.ItemList | list of items | |
| Errors | NOT_FOUND |  assessmentid  not found  |                 |
| NULL_ARGUMENT |  assessmentId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure occurred | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | addItem | ||
| Description | 
                     Adds an existing   | ||
| Parameters | osid.id.Id | assessmentId | the  Id  of the  Assessment   | 
osid.id.Id | itemId | the  Id  of the  Item   | |
| Errors | NOT_FOUND |  assessmentId  or  itemId  not found  |                 |
| NULL_ARGUMENT |  assessmentId  or  itemId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure occurred | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | removeItem | ||
| Description | 
                     Removes an   | ||
| Parameters | osid.id.Id | assessmentId | the  Id  of the  Assessment   | 
osid.id.Id | itemId | the  Id  of the  Item   | |
| Errors | NOT_FOUND |  assessmentId  or  itemId  not found or  
itemId  not on  assessmentid   |                 |
| NULL_ARGUMENT |  assessmentId  or  itemId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure occurred | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | moveItem | ||
| Description | 
                     Moves an existing item to follow another item in an assessment.  | ||
| Parameters | osid.id.Id | assessmentId | the  Id  of the  Assessment   | 
osid.id.Id | itemId | the  Id  of an  Item   | |
osid.id.Id | preceedingItemId | the  Id  of a preceeding  Item  in the sequence  | |
| Errors | NOT_FOUND |  assessmentId  is not found, or  itemId  or 
 preceedingItemId  not on  assessmentId   |                 |
| NULL_ARGUMENT |  assessmentId, itemId  or  preceedingItemId  is 
 null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure occurred | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | orderItems | ||
| Description | 
                     Sequences existing items in an assessment.  | ||
| Parameters | osid.id.Id[] | itemIds | the  Id  of the  Items   | 
osid.id.Id | assessmentId | the  Id  of the  Assessment   | |
| Errors | NOT_FOUND |  assessmentId  is not found or an  itemId  is not 
on  assessmentId   |                 |
| NULL_ARGUMENT |  assessmentId  or  itemIds  is  null 
  |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure occurred | ||
| Compliance | mandatory | This method must be implemented. | |