|
Oracle Communications Converged Application Server Java API Reference 5.1 E36938-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
C
- Communication object in this CommunicationContext.P
- Participant object in this CommunicationContext.M
- Message object in this CommunicationContext.public interface CommunicationContext<C extends Communication,P extends Participant,M extends Message>
Represents the context of a given Communication event. The SFT application can get the current active Communication and corresponding message using the CommunicationContext object.
Method Summary | ||
---|---|---|
Object |
clone() Return a cloned, thread-safe copy of the CommunicationContext object. |
|
|
getAllContextElements() Get a map of Context Elements and their type. |
|
C |
getCommunication() Return the communication associated with the context. |
|
|
getContextElement(Class<E> elementClass) Generic method to retrieve context elements. |
|
M |
getMessage() Gets the current Message from the ongoing communication. |
|
P |
getParticipant() Return the current participant. |
|
Principal |
getUserPrincipal() Returns a java.security.Principal object containing the name of the current authenticated user. |
|
boolean |
isUserInRole(String role) Returns a boolean indicating whether the authenticated user is included in the specified logical "role". |
Method Detail |
---|
C getCommunication()
P getParticipant()
M getMessage()
Message
Object clone()
Note that the getClass() of the communication context may not equal to the getClass of its clone. So, application is advised to not depend on that behavior.
Principal getUserPrincipal()
boolean isUserInRole(String role)
role
- a String specifying the name of the role<E extends ContextElement> E getContextElement(Class<E> elementClass)
HistoryInformation
from a Conversation
an application would do the following. HistoryInformation hi = context.getContextElement(ContextElement.class);
E
- A class that extends ContextElement
elementClass
- Class of the context element to be returned.ContextElement
or null, if the ContextElement does not exist.<E extends ContextElement> Map<Class<E>,E> getAllContextElements()
E
- A class that extends ContextElement
|
Oracle Communications Converged Application Server Java API Reference 5.1 E36938-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2012 Oracle Corporation. All Rights Reserved.