| Interface | osid.resource.demographic.DemographicEnablerBinAssignmentSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Description |
This session provides methods to re-assign Adding a reference of a | ||
| Method | canAssignDemographicEnablers | ||
| Description |
Tests if this user can alter demographic enabler/bin
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 | canAssignDemographicEnablersToBin | ||
| Description |
Tests if this user can alter demographic enabler/bin
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 | binId | the Id of the Bin |
| Return | boolean | false if mapping is not authorized, true
otherwise | |
| Errors | NULL_ARGUMENT | binId is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getAssignableBinIds | ||
| Description |
Gets a list of bins including and under the given bin node in which any demographic enabler can be assigned. | ||
| Parameters | osid.id.Id | binId | the Id of the Bin |
| Return | osid.id.IdList | list of assignable bin Ids | |
| Errors | NULL_ARGUMENT | binId is null | |
| OPERATION_FAILED | unable to complete request | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getAssignableBinIdsForDemographicEnabler | ||
| Description |
Gets a list of bins including and under the given bin node in which a specific demographic enabler can be assigned. | ||
| Parameters | osid.id.Id | binId | the Id of the Bin |
osid.id.Id | demographicEnablerId | the Id of the DemographicEnabler | |
| Return | osid.id.IdList | list of assignable bin Ids | |
| Errors | NULL_ARGUMENT | binId or demographicEnablerId is null
| |
| OPERATION_FAILED | unable to complete request | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | assignDemographicEnablerToBin | ||
| Description |
Adds an existing | ||
| Parameters | osid.id.Id | demographicEnablerId | the Id of the DemographicEnabler |
osid.id.Id | binId | the Id of the Bin | |
| Errors | NOT_FOUND | demographicEnablerId or binId not found | |
| NULL_ARGUMENT | demographicEnablerId or binId is null
| ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | unassignDemographicEnablerFromBin | ||
| Description |
Removes a | ||
| Parameters | osid.id.Id | demographicEnablerId | the Id of the DemographicEnabler |
osid.id.Id | binId | the Id of the Bin | |
| Errors | NOT_FOUND | demographicEnablerId or binId not found | |
| NULL_ARGUMENT | demographicEnablerId or binId is null
| ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |