|
||||||||||
| 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 related to a particular Communication Event. The application can get the current active Communication and the corresponding message from this object.
| Method Summary | ||
|---|---|---|
Object |
clone()
Return a copy of the communication context that is thread safe. |
|
C |
getCommunication()
Return the communication associated with the context. |
|
|
getMediaEvent(Class<M> eventClass)
Return the JSR 309 MediaEvent associated with the current context. |
|
M |
getMessage()
Get the current Message from the ongoing conversation. |
|
P |
getParticipant()
Return the current participant. |
|
Principal |
getUserPrincipal()
Returns a java.security.Principal object containing the name of the current authenticated user. |
|
UserProcedure |
getUserProcedure()
Return the current user procedure, if applicable. |
|
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()
MessageUserProcedure getUserProcedure()
Object clone()
<M extends javax.media.mscontrol.MediaEvent> M getMediaEvent(Class<M> eventClass)
M - eventClass -
Principal getUserPrincipal()
boolean isUserInRole(String role)
role - a String specifying the name of the role
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||