OSID Logo
OSID Specifications
contact rules package
Version 3.1.0
Interfaceosid.contact.rules.ContactEnablerRuleLookupSession
Implementsosid.OsidSession
Used Byosid.contact.rules.ContactRulesManager
osid.contact.rules.ContactRulesProxyManager
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.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.
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
Compliancemandatory This 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.

Compliancemandatory This 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.

Compliancemandatory This 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.

Compliancemandatory This 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.

Compliancemandatory This 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.IdList the contact enabler Ids
ErrorsNOT_FOUND contactId is not found
NULL_ARGUMENT contactId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetContactEnablersForContact
Description

Gets the ContactEnabler associated with a Contact.

Parametersosid.id.IdcontactId Id of the Contact
Returnosid.contact.rules.ContactEnablerList the contact enablers
ErrorsNOT_FOUND contactId is not found
NULL_ARGUMENT contactId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetContactIdsForContactEnabler
Description

Gets the COntact Ids mapped to a ContactEnabler.

Parametersosid.id.IdcontactEnablerId Id of a ContactEnabler
Returnosid.id.IdList list of contact Ids
ErrorsNOT_FOUND contactEnablerId is not found
NULL_ARGUMENT contactEnablerId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetContactsForContactEnabler
Description

Gets the Contacts mapped to a ContactEnabler.

Parametersosid.id.IdcontactEnablerId Id of a ContactEnabler
Returnosid.contact.ContactList list of contacts
ErrorsNOT_FOUND contactEnablerId is not found
NULL_ARGUMENT contactEnablerId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.