OSID Logo
OSID Specifications
contact package
Version 3.1.0
Interfaceosid.contact.AddressLookupSession
Implementsosid.OsidSession
Used Byosid.contact.ContactManager
osid.contact.ContactProxyManager
Description

This session provides methods for retrieving Addresses. The Address represents a collection of contacts.

This session defines views that offer differing behaviors when retrieving multiple objects.

  • comparative view: elements may be silently omitted or re-ordered
  • plenary view: provides a complete view or is an error condition
  • isolated address book view: All address methods in this session operate, retrieve and pertain to addresses defined explicitly in the current address book. Using an isolated view is useful for managing addresses with the AddressAdminSession.
  • federated address book view: All address lookup methods in this session operate, retrieve and pertain to all addresses defined in this address book and any other address books implicitly available in this address book through address book inheritence.
MethodgetAddressBookId
Description

Gets the AddressBook Id associated with this session.

Returnosid.id.Id the AddressBook Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetAddressBook
Description

Gets the AddressBook associated with this session.

Returnosid.contact.AddressBook the address book
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanLookupAddresses
Description

Tests if this user can perform Address lookups. A return of true does not guarantee successful authorization. A return of false indicates that it is known all methods in this session will result in a PERMISSION_DENIED. This is intended as a hint to an application that may not offer lookup operations to unauthorized users.

Returnboolean false if lookup methods are not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethoduseComparativeAddressView
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.

Compliancemandatory This method is must be implemented.
MethodusePlenaryAddressView
Description

A complete view of the Address returns is desired. Methods will return what is requested or result in an error. This view is used when greater precision is desired at the expense of interoperability.

Compliancemandatory This method is must be implemented.
MethoduseFederatedAddressBookView
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.

Compliancemandatory This method is must be implemented.
MethoduseIsolatedAddressBookView
Description

Isolates the view for methods in this session. An isolated view restricts retrievals to this address book only.

Compliancemandatory This method is must be implemented.
MethodgetAddress
Description

Gets the Address specified by its Id. In plenary mode, the exact Id is found or a NOT_FOUND results. Otherwise, the returned Address may have a different Id than requested, such as the case where a duplicate Id was assigned to an Address and retained for compatibility.

Parametersosid.id.IdaddressId Id of the Address
Returnosid.contact.Address the address
ErrorsNOT_FOUND addressId not found
NULL_ARGUMENT addressId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method is must be implemented.
MethodgetAddressesByIds
Description

Gets an AddressList corresponding to the given IdList. In plenary mode, the returned list contains all of the addresses specified in the Id list, in the order of the list, including duplicates, or an error results if an Id in the supplied list is not found or inaccessible. Otherwise, inaccessible Addresses may be omitted from the list and may present the elements in any order including returning a unique set.

Parametersosid.id.IdListaddressIds the list of Ids to retrieve
Returnosid.contact.AddressList the returned Address list
ErrorsNOT_FOUND an Id was not found
NULL_ARGUMENT addressIds is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetAddressesByGenusType
Description

Gets an AddressList corresponding to the given address genus Type which does not include addresses of genus types derived from the specified Type.In plenary mode, the returned list contains all known addresses or an error results. Otherwise, the returned list may contain only those addresses that are accessible through this session.

Parametersosid.type.TypeaddressGenusType an address genus type
Returnosid.contact.AddressList the returned Address list
ErrorsNULL_ARGUMENT addressGenusType is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetAddressesByParentGenusType
Description

Gets an AddressList corresponding to the given address genus Type and include any additional addresses with genus types derived from the specified Type.In plenary mode, the returned list contains all known addresses or an error results. Otherwise, the returned list may contain only those addresses that are accessible through this session.

Parametersosid.type.TypeaddressGenusType an address genus type
Returnosid.contact.AddressList the returned Address list
ErrorsNULL_ARGUMENT addressGenusType is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetAddressesByRecordType
Description

Gets an AddressList containing the given address record Type. In plenary mode, the returned list contains all known addresses or an error results. Otherwise, the returned list may contain only those addresses that are accessible through this session.

Parametersosid.type.TypeaddressRecordType an address record type
Returnosid.contact.AddressList the returned Address list
ErrorsNULL_ARGUMENT addressRecordType is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetAddressesByResource
Description

Gets an AddressList for the given resource. In plenary mode, the returned list contains all known addresses or an error results. Otherwise, the returned list may contain only those addresses that are accessible through this session.

Parametersosid.id.IdresourceId a resource Id
Returnosid.contact.AddressList the returned Address list
ErrorsNULL_ARGUMENT resourceId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetAddresses
Description

Gets all Addresses. In plenary mode, the returned list contains all known addresses or an error results. Otherwise, the returned list may contain only those addresses that are accessible through this session.

Returnosid.contact.AddressList a list of Addresses
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.