OSID Logo
OSID Specifications
contact rules package
Version 3.1.0
Interfaceosid.contact.rules.ContactEnablerAddressBookAssignmentSession
Implementsosid.OsidSession
Used Byosid.contact.rules.ContactRulesManager
osid.contact.rules.ContactRulesProxyManager
Description

This session provides methods to re-assign ContactEnabler to AddressBook mappings. A ContactEnabler may appear in multiple AddressBook objects and removing the last reference to a ContactEnabler is the equivalent of deleting it. Each AddressBook may have its own authorizations governing who is allowed to operate on it.

Adding a reference of a ContactEnabler to another AddressBook is not a copy operation (eg: does not change its Id).

MethodcanAssignContactEnablers
Description

Tests if this user can alter contact enabler/address book mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known mapping 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 mapping is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodcanAssignContactEnablersToAddressBook
Description

Tests if this user can alter contact enabler/address book mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known mapping 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.

Parametersosid.id.IdaddressBookId the Id of the AddressBook
Returnboolean false if mapping is not authorized, true otherwise
ErrorsNULL_ARGUMENT addressBookId is null
Compliancemandatory This method must be implemented.
MethodgetAssignableAddressBookIds
Description

Gets a list of address books including and under the given address book node in which any contact enabler can be assigned.

Parametersosid.id.IdaddressBookId the Id of the AddressBook
Returnosid.id.IdList list of assignable address book Ids
ErrorsNULL_ARGUMENT addressBookId is null
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetAssignableAddressBookIdsForContactEnabler
Description

Gets a list of address books including and under the given address book node in which a specific contact enabler can be assigned.

Parametersosid.id.IdaddressBookId the Id of the AddressBook
osid.id.IdcontactEnablerId the Id of the ContactEnabler
Returnosid.id.IdList list of assignable address book Ids
ErrorsNULL_ARGUMENT addressBookId or contactEnablerId is null
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodassignContactEnablerToAddressBook
Description

Adds an existing ContactEnabler to an AddressBook.

Parametersosid.id.IdcontactEnablerId the Id of the ContactEnabler
osid.id.IdaddressBookId the Id of the AddressBook
ErrorsALREADY_EXISTS contactEnablerId is already assigned to addressBookId
NOT_FOUND contactEnablerId or addressBookId not found
NULL_ARGUMENT contactEnablerId or addressBookId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodunassignContactEnablerFromAddressBook
Description

Removes a ContactEnabler from an AddressBook.

Parametersosid.id.IdcontactEnablerId the Id of the ContactEnabler
osid.id.IdaddressBookId the Id of the AddressBook
ErrorsNOT_FOUND contactEnablerId or addressBookId not found or contactEnablerId is not assigned to addressBookId
NULL_ARGUMENT contactEnablerId or addressBookId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodreassignContactEnablerToAddressBook
Description

Moves a ContactEnabler from one AddressBook to another. Mappings to other AddressBooks are unaffected.

Parametersosid.id.IdcontactEnablerId the Id of the ContactEnabler
osid.id.IdfromAddressBookId the Id of the current AddressBook
osid.id.IdtoAddressBookId the Id of the destination AddressBook
ErrorsALREADY_EXISTS contactEnablerId already assigned to toAddressBookId
NOT_FOUND contactEnablerId, fromAddressBookId, or toAddressBookId not found or contactEnablerId not mapped to fromAddressBookId
NULL_ARGUMENT contactEnablerId, fromAddressBookId, or toAddressBookId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.