| Interface | osid.assessment.authoring.AssessmentPartItemSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Description | 
                 This session defines methods for looking up  This lookup session defines several views: 
  The methods   | ||
| 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 | canAccessAssessmentPartItems | ||
| Description | 
                     Tests if this user can perform assessment part lookups. 
                    A return of true does not guarantee successful 
                    authorization. A return of false indicates that it is 
                    known all methods in this session will result in a   | ||
| Return | boolean |  false  if lookup methods are not authorized,  true 
 otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | useComparativeAsseessmentPartItemView | ||
| Description | 
                     The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error. This view is used when greater interoperability is desired at the expense of precision.  | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | usePlenaryAssessmentPartItemView | ||
| Description | 
                     A complete view of the returns is desired. Methods will return what is requested or result in an error. This view is used when greater precision is desired at the expense of interoperability.  | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | useFederatedBankView | ||
| Description | 
                     Federates the view for methods in this session. A federated view will include assessment parts in catalogs which are children of this catalog in the bank hierarchy.  | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | useIsolatedBankView | ||
| Description | 
                     Isolates the view for methods in this session. An isolated view restricts retrievals to this bank only.  | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | getAssessmentPartItems | ||
| Description | 
                     Gets the list of items mapped to the given   | ||
| Parameters | osid.id.Id | assessmentPartId |  Id  of the  AssessmentPart   | 
| Return | osid.assessment.ItemList | list of items | |
| Errors | NOT_FOUND |  assessmentPartId  not found  |                 |
| NULL_ARGUMENT |  assessmentPartId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method is must be implemented. | |
| Method | getAssessmentPartsByItem | ||
| Description | 
                     Gets the assessment parts containing the given item. In plenary mode, the returned list contains all known assessment parts or an error results. Otherwise, the returned list may contain only those assessment parts that are accessible through this session.  | ||
| Parameters | osid.id.Id | itemId |  Id  of the  Item   | 
| Return | osid.assessment.authoring.AssessmentPartList | the returned  AssessmentPart list   | |
| Errors | NOT_FOUND |  itemId  is not found  |                 |
| NULL_ARGUMENT |  itemId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |