| Interface | osid.contact.AddressBookAdminSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Description |
This session creates, updates, and deletes Create and update operations differ in their usage. To
create an For updates, The delete operations delete This session includes an | ||
| Method | canCreateAddressBooks | ||
| Description |
Tests if this user can create | ||
| Return | boolean | false if AddressBook creation is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateAddressBookWithRecordTypes | ||
| Description |
Tests if this user can create a single | ||
| Parameters | osid.type.Type[] | addressBookRecordTypes | array of address book types |
| Return | boolean | true if AddressBook creation using the
specified record Types is supported, false
otherwise | |
| Errors | NULL_ARGUMENT | addressBookRecordTypes is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getAddressBookFormForCreate | ||
| Description |
Gets the address book form for creating new address books. A new form should be requested for each create transaction. | ||
| Parameters | osid.type.Type[] | addressBookRecordTypes | array of address book types |
| Return | osid.contact.AddressBookForm | the address book form | |
| Errors | NULL_ARGUMENT | addressBookRecordTypes is null | |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | unable to get form for requested record types | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | createAddressBook | ||
| Description |
Creates a new | ||
| Parameters | osid.contact.AddressBookForm | addressBookForm | the form for this AddressBook |
| Return | osid.contact.AddressBook | the new AddressBook | |
| Errors | ILLEGAL_STATE | addressBookForm already used in a create transaction | |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT | addressBookForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | addressBookForm did not originate from
getAddressBookFormForCreate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateAddressBooks | ||
| Description |
Tests if this user can update | ||
| Return | boolean | false if AddressBook modification is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getAddressBookFormForUpdate | ||
| Description |
Gets the address book form for updating an existing address book. A new address book form should be requested for each update transaction. | ||
| Parameters | osid.id.Id | addressBookId | the Id of the AddressBook |
| Return | osid.contact.AddressBookForm | the address book form | |
| Errors | NOT_FOUND | addressBookId is not found | |
| NULL_ARGUMENT | addressBookId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateAddressBook | ||
| Description |
Updates an existing address book. | ||
| Parameters | osid.contact.AddressBookForm | addressBookForm | the form containing the elements to be updated |
| Errors | ILLEGAL_STATE | addressBookForm already used in an update transaction | |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT | addressBookId or addressBookForm is
null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | addressBookForm did not originate from
getAddressBookFormForUpdate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteAddressBooks | ||
| Description |
Tests if this user can delete | ||
| Return | boolean | false if AddressBook deletion is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteAddressBook | ||
| Description |
Deletes an | ||
| Parameters | osid.id.Id | addressBookId | the Id of the AddressBook to remove |
| Errors | NOT_FOUND | addressBookId not found | |
| NULL_ARGUMENT | addressBookId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageAddressBookAliases | ||
| Description |
Tests if this user can manage | ||
| Return | boolean | false if AddressBook aliasing is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasAddressBook | ||
| Description |
Adds an | ||
| Parameters | osid.id.Id | addressBookId | the Id of an AddressBook |
osid.id.Id | aliasId | the alias Id | |
| Errors | ALREADY_EXISTS | aliasId is already assigned | |
| NOT_FOUND | addressBookId not found | ||
| NULL_ARGUMENT | addressBookId or aliasId is null
| ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |