Interface | osid.contact.AddressLookupSession | ||
---|---|---|---|
Implements | osid.OsidSession | ||
Description |
This session provides methods for retrieving This session defines views that offer differing behaviors when retrieving multiple objects.
| ||
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 | canLookupAddresses | ||
Description |
Tests if this user can perform | ||
Return | boolean | false if lookup methods are not authorized, true
otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | useComparativeAddressView | ||
Description |
The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error. This view is used when greater interoperability is desired at the expense of precision. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | usePlenaryAddressView | ||
Description |
A complete view of the | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useFederatedAddressBookView | ||
Description |
Federates the view for methods in this session. A federated view will include addresses in address books which are children of this address book in the address book hierarchy. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useIsolatedAddressBookView | ||
Description |
Isolates the view for methods in this session. An isolated view restricts retrievals to this address book only. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getAddress | ||
Description |
Gets the | ||
Parameters | osid.id.Id | addressId | Id of the Address |
Return | osid.contact.Address | the address | |
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 is must be implemented. | |
Method | getAddressesByIds | ||
Description |
Gets an | ||
Parameters | osid.id.IdList | addressIds | the list of Ids to retrieve |
Return | osid.contact.AddressList | the returned Address list | |
Errors | NOT_FOUND | an Id was not found | |
NULL_ARGUMENT | addressIds is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getAddressesByGenusType | ||
Description |
Gets an | ||
Parameters | osid.type.Type | addressGenusType | an address genus type |
Return | osid.contact.AddressList | the returned Address list | |
Errors | NULL_ARGUMENT | addressGenusType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getAddressesByParentGenusType | ||
Description |
Gets an | ||
Parameters | osid.type.Type | addressGenusType | an address genus type |
Return | osid.contact.AddressList | the returned Address list | |
Errors | NULL_ARGUMENT | addressGenusType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getAddressesByRecordType | ||
Description |
Gets an | ||
Parameters | osid.type.Type | addressRecordType | an address record type |
Return | osid.contact.AddressList | the returned Address list | |
Errors | NULL_ARGUMENT | addressRecordType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getAddressesByResource | ||
Description |
Gets an | ||
Parameters | osid.id.Id | resourceId | a resource Id |
Return | osid.contact.AddressList | the returned Address list | |
Errors | NULL_ARGUMENT | resourceId is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getAddresses | ||
Description |
Gets all | ||
Return | osid.contact.AddressList | a list of Addresses | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |