| Interface | osid.dictionary.EntryDictionaryAssignmentSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Description | 
                 This session provides methods to re-assign enrties to 
                dictionaries. A   Moving or adding a reference of a   | ||
| Method | canAssignEntries | ||
| Description | 
                     Tests if this user can alter entry/dictionary mappings. 
                    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 | canAssignEntriesToDictionary | ||
| Description | 
                     Tests if this user can alter entry/dictionary mappings. 
                    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 
                      | ||
| Parameters | osid.id.Id | dictionaryId | the  Id  of the  Dictionary   | 
| Return | boolean |  false  if mapping is not authorized,  true  
otherwise  | |
| Errors | NULL_ARGUMENT |  dictionaryId  is  null   |                 |
| Compliance | mandatory | This method must be implemented. | |
| Method | getAssignableDictionaryIds | ||
| Description | 
                     Gets a list of dictionaries including and under the given dictionary node in which any entry can be assigned.  | ||
| Parameters | osid.id.Id | dictionaryId | the  Id  of the  Dictionary   | 
| Return | osid.id.IdList | list of assignable dictionary  Ids   | |
| Errors | NULL_ARGUMENT |  dictionaryId  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getAssignableDictionaryIdsForEntry | ||
| Description | 
                     Gets a list of dictionaries including and under the given dictionary node in which a specific entry can be assigned.  | ||
| Parameters | osid.id.Id | dictionaryId | the  Id  of the  Dictionary   | 
osid.id.Id | entryId | the  Id  of the  Entry   | |
| Return | osid.id.IdList | list of assignable dictionary  Ids   | |
| Errors | NULL_ARGUMENT |  dictionaryId  or  entryId  is  null 
  |                 |
| OPERATION_FAILED | unable to complete request | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | assignEntryToDictionary | ||
| Description | 
                     Adds an existing   | ||
| Parameters | osid.id.Id | entryId | the  Id  of the  Entry   | 
osid.id.Id | dictionaryId | the  Id  of the  Dictionary   | |
| Errors | ALREADY_EXISTS |  entryId  is already assigned to  dictionaryId   |                 |
| NOT_FOUND |  entryId  or  dictionaryId  not found  |                 ||
| NULL_ARGUMENT |  entryId  or  dictionaryId  is  null 
  |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | unassignEntryFromDictionary | ||
| Description | 
                     Removes a   | ||
| Parameters | osid.id.Id | entryId | the  Id  of the  Entry   | 
osid.id.Id | dictionaryId | the  Id  of the  Dictionary   | |
| Errors | NOT_FOUND |  entryId  or  dictionaryId  not found or  
entryId  not assigned to  dictionaryId   |                 |
| NULL_ARGUMENT |  entryId  or  dictionaryId  is  null 
  |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | reassignEntryToDictionary | ||
| Description | 
                     Moves an   | ||
| Parameters | osid.id.Id | entryId | the  Id  of the  Entry   | 
osid.id.Id | fromDictionaryId | the  Id  of the current  Dictionary   | |
osid.id.Id | toDictionaryId | the  Id  of the destination  Dictionary   | |
| Errors | NOT_FOUND |  entryId, fromDictionaryId,  or  toDictionaryId  
not found or  entryId  not mapped to  fromDictionaryId 
  |                 |
| NULL_ARGUMENT |  entryId fromDictionaryId,  or  toDictionaryId  
is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |