OSID Logo
OSID Specifications
contact package
Version 3.0.0
Release Candidate Preview
Interfaceosid.contact.AddressLookupSession
Implementsosid.OsidSession
Description

This session provides methods for retrieving Address objects. 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.Idthe AddressBook Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetAddressBook
Description

Gets the AddressBook associated with this session.

Returnosid.contact.AddressBookthe address book
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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
CompliancemandatoryThis 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.

CompliancemandatoryThis 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.

CompliancemandatoryThis 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.

CompliancemandatoryThis 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.

CompliancemandatoryThis 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.Addressthe address
ErrorsNOT_FOUND addressId not found
NULL_ARGUMENT addressId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.IdListaddressIdsthe list of Ids to retrieve
Returnosid.contact.AddressListthe returned Address list
ErrorsNOT_FOUNDan Id was not found
NULL_ARGUMENT addressIds is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.TypeaddressGenusTypean address genus type
Returnosid.contact.AddressListthe returned Address list
ErrorsNULL_ARGUMENT addressGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.TypeaddressGenusTypean address genus type
Returnosid.contact.AddressListthe returned Address list
ErrorsNULL_ARGUMENT addressGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.TypeaddressRecordTypean address record type
Returnosid.contact.AddressListthe returned Address list
ErrorsNULL_ARGUMENT addressRecordType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.IdresourceIda resource Id
Returnosid.contact.AddressListthe returned Address list
ErrorsNULL_ARGUMENT resourceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.AddressLista list of Addresses
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.