| Interface | osid.assessment.AssessmentOfferedAdminSession | ||
|---|---|---|---|
| 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 | 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 occurred | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateAssessmentsOffered | ||
| Description | 
                     Tests if this user can create   | ||
| Return | boolean |  false  if  AssessmentOffered  creation is not 
authorized,  true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateAssessmentOfferedWithRecordTypes | ||
| Description | 
                     Tests if this user can create a single   | ||
| Parameters | osid.type.Type[] | assessmentOfferedRecordTypes | array of assessment offered record types | 
| Return | boolean |  true  if  AssessmentOffered  creation using the 
specified record  Types  is supported,  false  
otherwise  | |
| Errors | NULL_ARGUMENT |  assessmentOfferedRecordTypes  is  null   |                 |
| Compliance | mandatory | This method must be implemented. | |
| Method | getAssessmentOfferedFormForCreate | ||
| Description | 
                     Gets the assessment offered form for creating new assessments offered. A new form should be requested for each create transaction.  | ||
| Parameters | osid.id.Id | assessmentId | the  Id  of the related  Assessment   | 
osid.type.Type[] | assessmentOfferedRecordTypes | array of assessment offered record types to be included in the create operation or an empty list if none | |
| Return | osid.assessment.AssessmentOfferedForm | the assessment offered form | |
| Errors | NOT_FOUND |  assessmentId  is not found  |                 |
| NULL_ARGUMENT |  assessmentId  or  assessmentOfferedRecordTypes  
is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure occurred | ||
| UNSUPPORTED | unable to get form for requested record types | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | createAssessmentOffered | ||
| Description | 
                     Creates a new   | ||
| Parameters | osid.assessment.AssessmentOfferedForm | assessmentOfferedForm | the form for this  AssessmentOffered   | 
| Return | osid.assessment.AssessmentOffered | the new  AssessmentOffered   | |
| Errors | ILLEGAL_STATE |  assessmentOffreredForm  already used in a create transaction  |                 |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT |  assessmentForm  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure occurred | ||
| UNSUPPORTED |  assessmentForm  did not originate from  
getAssessmentFormForCreate()   |                 ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateAssessmentsOffered | ||
| Description | 
                     Tests if this user can update   | ||
| Return | boolean |  false  if  Assessment  modification is not 
authorized,  true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getAssessmentOfferedFormForUpdate | ||
| Description | 
                     Gets the assessment offered form for updating an existing assessment offered. A new assessment offered form should be requested for each update transaction.  | ||
| Parameters | osid.id.Id | assessmentOfferedId | the  Id  of the  AssessmentOffered   | 
| Return | osid.assessment.AssessmentOfferedForm | the assessment offered form | |
| Errors | NOT_FOUND |  assessmentOfferedId  is not found  |                 |
| NULL_ARGUMENT |  assessmentOfferedId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure occurred | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateAssessmentOffered | ||
| Description | 
                     Updates an existing assessment offered.  | ||
| Parameters | osid.assessment.AssessmentOfferedForm | assessmentOfferedForm | the form containing the elements to be updated | 
| Errors | ILLEGAL_STATE |  assessmentOffreredForm  already used in an update transaction  |                 |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT |  assessmentOfferedForm  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure occurred | ||
| UNSUPPORTED |  assessmentForm  did not originate from  
getAssessmentFormForUpdate()   |                 ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteAssessmentsOffered | ||
| Description | 
                     Tests if this user can delete   | ||
| Return | boolean |  false  if  AssessmentOffered  deletion is not 
authorized,  true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteAssessmentOffered | ||
| Description | 
                     Deletes an   | ||
| Parameters | osid.id.Id | assessmentOfferedId | the  Id  of the  AssessmentOffered  to remove  | 
| Errors | NOT_FOUND |  assessmentOfferedId  not found  |                 |
| NULL_ARGUMENT |  assessmentOfferedId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure occurred | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageAssessmentOfferedAliases | ||
| Description | 
                     Tests if this user can manage   | ||
| Return | boolean |  false  if  AssessmentOffered  aliasing is not 
authorized,  true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasAssessmentOffered | ||
| Description | 
                     Adds an   | ||
| Parameters | osid.id.Id | assessmentOfferedId | the  Id  of an  AssessmentOffered   | 
osid.id.Id | aliasId | the alias  Id   | |
| Errors | ALREADY_EXISTS |  aliasId  is in use as a primary  Id   |                 |
| NOT_FOUND |  assessmentOfferedId  not found  |                 ||
| NULL_ARGUMENT |  assessmentOfferedId  or  aliasId  is  null 
  |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure occurred | ||
| Compliance | mandatory | This method must be implemented. | |