| Interface | osid.lexicon.IdiomPressAssignmentSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Used By | osid.lexicon.LexiconManager | ||
osid.lexicon.LexiconProxyManager | |||
| Description |
This session provides methods to re-assign
Adding a reference of an | ||
| Method | canAssignIdioms | ||
| Description |
Tests if this user can alter idiom/press 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 idiom assignment is not authorized, true
otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canAssignIdiomsToPress | ||
| Description |
Tests if this user can alter idiom/press 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 | pressId | the Id of the Press |
| Return | boolean | false if idiom assignment is not authorized, true
otherwise | |
| Errors | NULL_ARGUMENT | pressId is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getAssignablePressIds | ||
| Description |
Gets a list of presses including and under the given press node in which any idiom can be assigned. | ||
| Parameters | osid.id.Id | pressId | the Id of the Press |
| Return | osid.id.IdList | list of assignable press Ids | |
| Errors | NULL_ARGUMENT | pressId is null | |
| OPERATION_FAILED | unable to complete request | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getAssignablePressIdsForIdiom | ||
| Description |
Gets a list of presses including and under the given press node in which a specific idiom can be assigned. | ||
| Parameters | osid.id.Id | pressId | the Id of the Press |
osid.id.Id | idiomId | the Id of the Idiom | |
| Return | osid.id.IdList | list of assignable press Ids | |
| Errors | NULL_ARGUMENT | pressId or idiomId is null | |
| OPERATION_FAILED | unable to complete request | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | assignIdiomToPress | ||
| Description |
Adds an existing | ||
| Parameters | osid.id.Id | idiomId | the Id of the Idiom |
osid.id.Id | pressId | the Id of the Press | |
| Errors | ALREADY_EXISTS | idiomId is already assigned to pressId | |
| NOT_FOUND | idiomId or pressId not found | ||
| NULL_ARGUMENT | idiomId or pressId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | unassignIdiomFromPress | ||
| Description |
Removes an | ||
| Parameters | osid.id.Id | idiomId | the Id of the Idiom |
osid.id.Id | pressId | the Id of the Press | |
| Errors | NOT_FOUND | idiomId or pressId not found or
idiomId not assigned to pressId | |
| NULL_ARGUMENT | idiomId or pressId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | reassignIdiomToPress | ||
| Description |
Moves an | ||
| Parameters | osid.id.Id | idiomId | the Id of the Idiom |
osid.id.Id | fromPressId | the Id of the current Press | |
osid.id.Id | toPressId | the Id of the destination Press | |
| Errors | NOT_FOUND | idiomId, fromPressId , or toPressId not found or
idiomId not mapped to fromPressId | |
| NULL_ARGUMENT | idiomId, fromPressId , or toPressId is
null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |