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

This session provides methods to retrieve ContactEnabler to Contact mappings. A Contact with multiple ContactEnablers means any positive rule evaluation across the enablers result in an enabled Contact.

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 methods in this session operate, retrieve and pertain contact enablers defined explicitly in the current address book
  • federated address book view: All methods in this session operate, retrieve and pertain to all contact enablers defined in this address book and any other contact enablers 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.
MethodcanLookupContactEnablerRules
Description

Tests if this user can perform lookups of contact enabler/contact mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known lookup 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 lookup operations to unauthorized users.

Returnboolean false if looking up mappings is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethoduseComparativeContactEnablerRuleView
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.
MethodusePlenaryContactEnablerRuleView
Description

A complete view of the ContactEnabler and 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.

CompliancemandatoryThis method is must be implemented.
MethoduseFederatedAddressBookView
Description

Federates the view for methods in this session. A federated view will include contact enablers 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 lookups to this address book only.

CompliancemandatoryThis method is must be implemented.
MethodgetContactEnablerIdsForContact
Description

Gets the ContactEnabler Id associated with a Contact.

Parametersosid.id.Id contactId Id of the Contact
Returnosid.id.IdListthe contact enabler Ids
ErrorsNOT_FOUND contactId is not found
NULL_ARGUMENT contactId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetContactEnablersForContact
Description

Gets the ContactEnabler associated with a Contact.

Parametersosid.id.IdcontactId Id of the Contact
Returnosid.contact.rules.ContactEnablerListthe contact enablers
ErrorsNOT_FOUND contactId is not found
NULL_ARGUMENT contactId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetContactIdsForContactEnabler
Description

Gets the COntact Ids mapped to a ContactEnabler.

Parametersosid.id.IdcontactEnablerId Id of a ContactEnabler
Returnosid.id.IdListlist of contact Ids
ErrorsNOT_FOUND contactEnablerId is not found
NULL_ARGUMENT contactEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetContactsForContactEnabler
Description

Gets the Contacts mapped to a ContactEnabler.

Parametersosid.id.IdcontactEnablerId Id of a ContactEnabler
Returnosid.contact.ContactListlist of contacts
ErrorsNOT_FOUND contactEnablerId is not found
NULL_ARGUMENT contactEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.