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

This session defines methods for retrieving contacts.

This lookup session defines several views:

  • comparative view: elements may be silently omitted or re-ordered
  • plenary view: provides a complete result set or is an error condition
  • isolated address book view: All contact methods in this session operate, retrieve and pertain to contacts defined explicitly in the current address book. Using an isolated view is useful for managing contacts with the ContactAdminSession.
  • federated address book view: All contact lookup methods in this session operate, retrieve and pertain to all contacts defined in this address book and any other address books implicitly available in this address book through address book inheritence.
  • effective contact view: All contact lookup methods return contacts where the current dates falls in between the effective dates inclusive.
  • any effective contact view: Contacts of any effective date are returned.

The methods useFederatedAddressBookView() and useIsolatedAddressBookView() behave as a radio group and one should be selected before invoking any lookup methods.

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.
MethodcanLookupContacts
Description

Tests if this user can lookup contacts. 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 opt not to offer these operations.

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

A complete view of the Contact 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 contacts 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.
MethoduseEffectiveContactView
Description

Only contacts whose effective dates are current are returned by methods in this session.

Compliancemandatory This method is must be implemented.
MethoduseAnyEffectiveContactView
Description

All contacts of any effective dates are returned by all methods in this session.

Compliancemandatory This method is must be implemented.
MethodgetContact
Description

Gets the Contact specified by its Id.

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

In effective mode, contacts are returned that are currently effective. In any effective mode, effective contacts and those currently expired are returned.

Parametersosid.id.IdcontactId the Id of the Contact to retrieve
Returnosid.contact.Contact the returned Contact
ErrorsNOT_FOUND no Contact found with the given Id
NULL_ARGUMENT contactId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetContactsByIds
Description

Gets a ContactList corresponding to the given IdList.

In plenary mode, the returned list contains all of the contacts 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 contacts may be omitted from the list and may present the elements in any order including returning a unique set.

In effective mode, contacts are returned that are currently effective. In any effective mode, effective contacts and those currently expired are returned.

Parametersosid.id.IdListcontactIds the list of Ids to retrieve
Returnosid.contact.ContactList the returned Contact list
ErrorsNOT_FOUND an Id was not found
NULL_ARGUMENT contactIds is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetContactsByGenusType
Description

Gets a ContactList corresponding to the given contact genus Type which does not include contacts of genus types derived from the specified Type.

In plenary mode, the returned list contains all of the contacts 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 contacts may be omitted from the list and may present the elements in any order including returning a unique set.

In effective mode, contacts are returned that are currently effective. In any effective mode, effective contacts and those currently expired are returned.

Parametersosid.type.TypecontactGenusType a contact genus type
Returnosid.contact.ContactList the returned Contact list
ErrorsNULL_ARGUMENT contactGenusType is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetContactsByParentGenusType
Description

Gets a ContactList corresponding to the given contact genus Type and include any additional contacts with genus types derived from the specified Type.

In plenary mode, the returned list contains all of the contacts 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 contacts may be omitted from the list and may present the elements in any order including returning a unique set.

In effective mode, contacts are returned that are currently effective. In any effective mode, effective contacts and those currently expired are returned.

Parametersosid.type.TypecontactGenusType a contact genus type
Returnosid.contact.ContactList the returned Contact list
ErrorsNULL_ARGUMENT contactGenusType is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetContactsByRecordType
Description

Gets a ContactList containing the given contact record Type.

In plenary mode, the returned list contains all of the contacts 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 contacts may be omitted from the list and may present the elements in any order including returning a unique set.

In effective mode, contacts are returned that are currently effective. In any effective mode, effective contacts and those currently expired are returned.

Parametersosid.type.TypecontactRecordType a contact record type
Returnosid.contact.ContactList the returned Contact list
ErrorsNULL_ARGUMENT contactRecordType is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetContactsOnDate
Description

Gets a list of contacts with an effective during the entire given date range inclusive but not confined to the date range.

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

In effective mode, contacts are returned that are currently effective. In any effective mode, effective contacts and those currently expired are returned.

Parametersosid.calendaring.DateTimefrom the starting date
osid.calendaring.DateTimeto the ending date
Returnosid.contact.ContactList the returned ContactList
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT from or to is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetContactsByGenusTypeOnDate
Description

Gets a list of contacts of a genus type and with an effective during the entire given date range inclusive but not confined to the date range.

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

In effective mode, contacts are returned that are currently effective. In any effective mode, effective contacts and those currently expired are returned.

Parametersosid.type.TypecontactGenusType a contact genus type
osid.calendaring.DateTimefrom the starting date
osid.calendaring.DateTimeto the ending date
Returnosid.contact.ContactList the returned ContactList
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT contactGenusType, from, or to is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetContactsForReference
Description

Gets a list of contacts corresponding to a reference Id.

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

In effective mode, contacts are returned that are currently effective. In any effective mode, effective contacts and those currently expired are returned.

Parametersosid.id.IdreferenceId the Id of the reference
Returnosid.contact.ContactList the returned ContactList
ErrorsNULL_ARGUMENT referenceId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetContactsForReferenceOnDate
Description

Gets a list of all contacts corresponding to a reference Id and effective during the entire given date range inclusive but not confined to the date range.

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

In effective mode, contacts are returned that are currently effective. In any effective mode, effective contacts and those currently expired are returned.

Parametersosid.id.IdreferenceId a reference Id
osid.calendaring.DateTimefrom from date
osid.calendaring.DateTimeto to date
Returnosid.contact.ContactList the returned ContactList
ErrorsINVALID_ARGUMENT to is less than from
NULL_ARGUMENT referenceId, from or to is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetContactsByGenusTypeForReference
Description

Gets a list of contacts of the given genus type corresponding to a reference Id.

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

In effective mode, contacts are returned that are currently effective. In any effective mode, effective contacts and those currently expired are returned.

Parametersosid.id.IdreferenceId the Id of the reference
osid.type.TypecontactGenusType the genus type of the contact
Returnosid.contact.ContactList the returned ContactList
ErrorsNULL_ARGUMENT referenceId or contactGenusType is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetContactsByGenusTypeForReferenceOnDate
Description

Gets a list of all contacts of the given genus type corresponding to a reference Id and effective during the entire given date range inclusive but not confined to the date range.

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

In effective mode, contacts are returned that are currently effective. In any effective mode, effective contacts and those currently expired are returned.

Parametersosid.id.IdreferenceId a reference Id
osid.type.TypecontactGenusType the genus type of the contact
osid.calendaring.DateTimefrom from date
osid.calendaring.DateTimeto to date
Returnosid.contact.ContactList the returned ContactList
ErrorsINVALID_ARGUMENT to is less than from
NULL_ARGUMENT referenceId, contactGenusType, from or to is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetContactsForAddress
Description

Gets a list of all contacts corresponding to an address Id.

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

In effective mode, contacts are returned that are currently effective. In any effective mode, effective contacts and those currently expired are returned.

Parametersosid.id.IdaddressId the Id of the address
Returnosid.contact.ContactList the returned ContactList
ErrorsNULL_ARGUMENT addressId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetContactsForAddressOnDate
Description

Gets a list of all contacts corresponding to an address Id and effective during the entire given date range inclusive but not confined to the date range.

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

In effective mode, contacts are returned that are currently effective. In any effective mode, effective contacts and those currently expired are returned.

Parametersosid.id.IdaddressId an address Id
osid.calendaring.DateTimefrom from date
osid.calendaring.DateTimeto to date
Returnosid.contact.ContactList the returned ContactList
ErrorsINVALID_ARGUMENT to is less than from
NULL_ARGUMENT addressId, from or to is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetContactsByGenusTypeForAddress
Description

Gets a list of all contacts of the given genus type corresponding to an address Id.

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

In effective mode, contacts are returned that are currently effective. In any effective mode, effective contacts and those currently expired are returned.

Parametersosid.id.IdaddressId the Id of the address
osid.type.TypecontactGenusType the genus type of the contact
Returnosid.contact.ContactList the returned ContactList
ErrorsNULL_ARGUMENT addressId or contactGenusType is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetContactsByGenusTypeForAddressOnDate
Description

Gets a list of all contacts of the given genus type corresponding to an address Id and effective during the entire given date range inclusive but not confined to the date range.

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

In effective mode, contacts are returned that are currently effective. In any effective mode, effective contacts and those currently expired are returned.

Parametersosid.id.IdaddressId an address Id
osid.type.TypecontactGenusType the genus type of the contact
osid.calendaring.DateTimefrom from date
osid.calendaring.DateTimeto to date
Returnosid.contact.ContactList the returned ContactList
ErrorsINVALID_ARGUMENT to is less than from
NULL_ARGUMENT addressId, contactGenusType, from or to is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetContactsForReferenceAndAddress
Description

Gets a list of all contacts corresponding to a reference and address Id.

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

In effective mode, contacts are returned that are currently effective. In any effective mode, effective contacts and those currently expired are returned.

Parametersosid.id.IdreferenceId the Id of the reference
osid.id.IdaddressId the Id of the address
Returnosid.contact.ContactList the returned ContactList
ErrorsNULL_ARGUMENT referenceId or addressId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetContactsForReferenceAndAddressOnDate
Description

Gets a list of all contacts corresponding to a reference and address Id and effectiveduring the entire given date range inclusive but not confined to the date range.

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

In effective mode, contacts are returned that are currently effective. In any effective mode, effective contacts and those currently expired are returned.

Parametersosid.id.IdreferenceId the Id of the reference
osid.id.IdaddressId an address Id
osid.calendaring.DateTimefrom from date
osid.calendaring.DateTimeto to date
Returnosid.contact.ContactList the returned ContactList
ErrorsINVALID_ARGUMENT to is less than from
NULL_ARGUMENT referenceId, addressI, from or to is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetContactsByGenusTypeForReferenceAndAddress
Description

Gets a list of all contacts with the given genus type corresponding to a reference and address Id.

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

In effective mode, contacts are returned that are currently effective. In any effective mode, effective contacts and those currently expired are returned.

Parametersosid.id.IdreferenceId the Id of the reference
osid.id.IdaddressId the Id of the address
osid.type.TypecontactGenusType the genus type of the contact
Returnosid.contact.ContactList the returned ContactList
ErrorsNULL_ARGUMENT referenceId, addressId or contactGenusType is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetContactsByGenusTypeForReferenceAndAddressOnDate
Description

Gets a list of all contacts with the given genus type corresponding to a reference and address Id and during the entire given date range inclusive but not confined to the date range.

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

In effective mode, contacts are returned that are currently effective. In any effective mode, effective contacts and those currently expired are returned.

Parametersosid.id.IdreferenceId the Id of the reference
osid.id.IdaddressId an address Id
osid.type.TypecontactGenusType the genus type of the contact
osid.calendaring.DateTimefrom from date
osid.calendaring.DateTimeto to date
Returnosid.contact.ContactList the returned ContactList
ErrorsINVALID_ARGUMENT to is less than from
NULL_ARGUMENT referenceId, addressId, contactGenusType, from or to is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetContacts
Description

Gets all contacts.

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

In effective mode, contacts are returned that are currently effective. In any effective mode, effective contacts and those currently expired are returned.

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