public interface ContactEnablerRuleApplicationSession extends OsidSession
This session provides methods to apply ContactEnablers
to Contacts.
A Contact
with multiple
ContactEnablers
means any positive rule evaluation across the
enablers result in an effective Contact.
Modifier and Type | Method and Description |
---|---|
void |
assignContactEnablerToContact(Id contactEnablerId,
Id contactId)
Adds an existing
ContactEnabler to a Contact. |
boolean |
canAssignContactEnablers()
Tests if this user can alter contact enabler/contact mappings.
|
boolean |
canSequenceContactEnablers()
Tests if this user can order
ContactEnablers. |
AddressBook |
getAddressBook()
Gets the
AddressBook associated with this session. |
Id |
getAddressBookId()
Gets the
AddressBook Id associated with
this session. |
void |
moveContactEnablerAhead(Id contactEnablerId,
Id contactId,
Id referenceId)
Reorders contact enablers for a contact by moving the specified
contact enabler in front of a reference contact enabler.
|
void |
moveContactEnablerBehind(Id contactEnablerId,
Id contactId,
Id referenceId)
Reorders contact enablers for a contact by moving the specified
contact enabler behind a reference contact enabler.
|
void |
orderContactEnablers(Id[] contactEnablerId,
Id contactId)
Reorders a set of contact enablers for a contact.
|
void |
unassignContactEnablerFromContact(Id contactEnablerId,
Id contactId)
Removes a
ContactEnabler from a Contact. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getAddressBookId()
AddressBook
Id
associated with
this session. AddressBook Id
associated with this sessionmandatory
- This method must be implemented. AddressBook getAddressBook() throws OperationFailedException, PermissionDeniedException
AddressBook
associated with this session.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canAssignContactEnablers()
PERMISSION_DENIED.
This is intended as
a hint to an application that may opt not to offer lookup operations
to unauthorized users. false
if mapping is not authorized, true
otherwisemandatory
- This method must be implemented. void assignContactEnablerToContact(Id contactEnablerId, Id contactId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
ContactEnabler
to a Contact.
contactEnablerId
- the Id
of the
ContactEnabler
contactId
- the Id
of the Contact
AlreadyExistsException
- contactEnablerId
is already applied to contactId
NotFoundException
- contactEnablerId
or
contactId
not foundNullArgumentException
- contactEnablerId
or contactId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void unassignContactEnablerFromContact(Id contactEnablerId, Id contactId) throws NotFoundException, OperationFailedException, PermissionDeniedException
ContactEnabler
from a Contact.
contactEnablerId
- the Id
of the
ContactEnabler
contactId
- the Id
of the Contact
NotFoundException
- contactEnablerId
or
contactId
not found or contactEnablerId
is not applied to contactId
NullArgumentException
- contactEnablerId
or contactId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canSequenceContactEnablers()
ContactEnablers.
A return
of true does not guarantee successful authorization. A return of false
indicates that it is known sequencing operations will result in a
PERMISSION_DENIED.
This is intended as a hint to an
application that may opt not to offer sequencing operations to an
unauthorized user. false
if ContactEnabler
ordering
is not authorized, true
otherwisemandatory
- This method must be implemented. void moveContactEnablerAhead(Id contactEnablerId, Id contactId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
contactEnablerId
- the Id
of a
ContactEnabler
contactId
- the Id
of a Contact
referenceId
- the reference contact enabler Id
NotFoundException
- contactEnabelrId, contactId,
or referenceId
not found or,
contactEnablerId
or referenceId
not
related to contactId
NullArgumentException
- contactEnablerId,
contactId,
or referenceId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void moveContactEnablerBehind(Id contactEnablerId, Id contactId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
contactEnablerId
- the Id
of a
ContactEnabler
contactId
- the Id
of a Contact
referenceId
- the reference contact enabler Id
NotFoundException
- contactEnabelrId, contactId,
or referenceId
not found or,
contactEnablerId
or referenceId
not
related to contactId
NullArgumentException
- contactEnablerId,
contactId,
or referenceId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void orderContactEnablers(Id[] contactEnablerId, Id contactId) throws NotFoundException, OperationFailedException, PermissionDeniedException
contactEnablerId
- the Ids
for a set of
ContactEnablers
contactId
- the Id
of a Contact
NotFoundException
- contactId
not found
or, a contactEnablerId
not related to
contactId
NullArgumentException
- contactEnablerIds
or contactId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.