Interface | osid.contact.AddressAdminSession | ||
---|---|---|---|
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 | getAddressBookId | ||
Description |
Gets the | ||
Return | osid.id.Id | the AddressBook Id associated with this session | |
Compliance | mandatory | This method must be implemented. | |
Method | getAddressBook | ||
Description |
Gets the | ||
Return | osid.contact.AddressBook | the address book | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canCreateAddresses | ||
Description |
Tests if this user can create | ||
Return | boolean | false if Address creation is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | canCreateAddressWithRecordTypes | ||
Description |
Tests if this user can create a single | ||
Parameters | osid.type.Type[] | addressRecordTypes | array of address record types |
Return | boolean | true if Address creation using the specified
record Types is supported, false otherwise | |
Errors | NULL_ARGUMENT | addressRecordTypes is null | |
Compliance | mandatory | This method must be implemented. | |
Method | getAddressFormForCreate | ||
Description |
Gets the address form for creating new addresses. A new form should be requested for each create transaction. | ||
Parameters | osid.type.Type[] | addressRecordTypes | array of address record types |
Return | osid.contact.AddressForm | the address form | |
Errors | NULL_ARGUMENT | addressRecordTypes 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 | createAddress | ||
Description |
Creates a new | ||
Parameters | osid.contact.AddressForm | addressForm | the form for this Address |
Return | osid.contact.Address | the new Address | |
Errors | ILLEGAL_STATE | addressForm already used in a create transaction | |
INVALID_ARGUMENT | one or more of the form elements is invalid | ||
NULL_ARGUMENT | addressForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | addressForm did not originate from
getAddressFormForCreate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canUpdateAddresses | ||
Description |
Tests if this user can update | ||
Return | boolean | false if Address modification is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | getAddressFormForUpdate | ||
Description |
Gets the address form for updating an existing address. A new address form should be requested for each update transaction. | ||
Parameters | osid.id.Id | addressId | the Id of the Address |
Return | osid.contact.AddressForm | the address form | |
Errors | NOT_FOUND | addressId is not found | |
NULL_ARGUMENT | addressId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | updateAddress | ||
Description |
Updates an existing address. | ||
Parameters | osid.contact.AddressForm | addressForm | the form containing the elements to be updated |
Errors | ILLEGAL_STATE | addressForm already used in an update transaction | |
INVALID_ARGUMENT | the form contains an invalid value | ||
NULL_ARGUMENT | addressId or addressForm is null
| ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | addressForm did not originate from
getAddressFormForUpdate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canDeleteAddresses | ||
Description |
Tests if this user can delete | ||
Return | boolean | false if Address deletion is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | deleteAddress | ||
Description |
Deletes an | ||
Parameters | osid.id.Id | addressId | the Id of the Address to remove |
Errors | NOT_FOUND | addressId not found | |
NULL_ARGUMENT | addressId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canManageAddressAliases | ||
Description |
Tests if this user can manage | ||
Return | boolean | false if Address aliasing is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | aliasAddress | ||
Description |
Adds an | ||
Parameters | osid.id.Id | addressId | the Id of an Address |
osid.id.Id | aliasId | the alias Id | |
Errors | ALREADY_EXISTS | aliasId is already assigned | |
NOT_FOUND | addressId not found | ||
NULL_ARGUMENT | addressId or aliasId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |