| Interface | osid.contact.AddressAddressBookAssignmentSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Description |
This session provides methods to re-assign Adding a reference of an | ||
| Method | canAssignAddresses | ||
| Description |
Tests if this user can alter address/address book
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 | canAssignAddressesToAddressBook | ||
| Description |
Tests if this user can alter address/address book
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 | addressBookId | the Id of the AddressBook |
| Return | boolean | false if mapping is not authorized, true
otherwise | |
| Errors | NULL_ARGUMENT | addressBookId is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getAssignableAddressBookIds | ||
| Description |
Gets a list of address books including and under the given address book node in which any address can be assigned. | ||
| Parameters | osid.id.Id | addressBookId | the Id of the AddressBook |
| Return | osid.id.IdList | list of assignable address book Ids | |
| Errors | NULL_ARGUMENT | addressBookId is null | |
| OPERATION_FAILED | unable to complete request | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getAssignableAddressBookIdsForAddress | ||
| Description |
Gets a list of address books including and under the given address book node in which a specific address can be assigned. | ||
| Parameters | osid.id.Id | addressBookId | the Id of the AddressBook |
osid.id.Id | addressId | the Id of the Address | |
| Return | osid.id.IdList | list of assignable address book Ids | |
| Errors | NULL_ARGUMENT | addressBookId or addressId is null
| |
| OPERATION_FAILED | unable to complete request | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | assignAddressToAddressBook | ||
| Description |
Adds an existing | ||
| Parameters | osid.id.Id | addressId | the Id of the Address |
osid.id.Id | addressBookId | the Id of the AddressBook | |
| Errors | ALREADY_EXISTS | addressId is already assigned to addressBookId
| |
| NOT_FOUND | addressId or addressBookId not found | ||
| NULL_ARGUMENT | addressId or addressBookId is null
| ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | unassignAddressFromAddressBook | ||
| Description |
Removes an | ||
| Parameters | osid.id.Id | addressId | the Id of the Address |
osid.id.Id | addressBookId | the Id of the AddressBook | |
| Errors | NOT_FOUND | addressId or addressBookId not found or
addressId not assigned to addressBookId | |
| NULL_ARGUMENT | addressId or addressBookId is null
| ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | reassignAddressToAddressBook | ||
| Description |
Moves an | ||
| Parameters | osid.id.Id | addressId | the Id of the Address |
osid.id.Id | fromAddressBookId | the Id of the current AddressBook | |
osid.id.Id | toAddressBookId | the Id of the destination AddressBook | |
| Errors | NOT_FOUND | addressId, fromAddressBookId, or toAddressBookId
not found or addressId not mapped to
fromAddressBookId | |
| NULL_ARGUMENT | addressId, fromAddressBookId, or toAddressBookId
is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |