LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view
Class LyConversation

java.lang.Object
  extended by leon.view.LyConversation

public class LyConversation
extends java.lang.Object


Constructor Summary
LyConversation()
          default constructor.
 
Method Summary
 void addSession(LySession session, LyAreaController controller)
          Add session to conversation.
 LyAreaController getController(java.lang.String sessionId)
          Get controller with session id.
 java.util.Map<java.lang.String,LyAreaController> getControllers()
          Get list of controllers.
 java.util.Map<java.lang.String,LySession> getSessions()
          Get Sessions for conversation.
 java.lang.String getTabId()
           
 LySession getTargetUserSession(java.lang.String sessionId)
          Get Session from userId.
 java.util.Vector<LyObject> isObjectVisible(LyObject sentObject, LySession senderSession)
          Checks whether an object is visible by all the users of the conversation.
 void removeSession(LySession session)
          Remove session.
 void sendMessage(java.lang.String inputValue, LySession senderSession, boolean serverMessage, boolean key)
          Send message to all users in conversation.
 void sendObject(LyObject sentObject, LySession senderSession)
          Sends an object to all users in conversation.
 void setSessions(java.util.Map<java.lang.String,LySession> sessionList)
          Set session list.
 void setTabId(java.lang.String tabId)
           
 void updateActorLabels()
          Update actors labels for each users in conversation.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LyConversation

public LyConversation()
default constructor.

Method Detail

getTabId

public java.lang.String getTabId()

setTabId

public void setTabId(java.lang.String tabId)

addSession

public void addSession(LySession session,
                       LyAreaController controller)
Add session to conversation.

Parameters:
session - The session to add

removeSession

public void removeSession(LySession session)
Remove session.

Parameters:
session - session to remove.

getController

public LyAreaController getController(java.lang.String sessionId)
Get controller with session id.

Parameters:
sessionId - sessionId.
Returns:
the controller.

getControllers

public java.util.Map<java.lang.String,LyAreaController> getControllers()
Get list of controllers.

Returns:
map map of controller/session

setSessions

public void setSessions(java.util.Map<java.lang.String,LySession> sessionList)
Set session list.

Parameters:
sessionList - session List

getSessions

public java.util.Map<java.lang.String,LySession> getSessions()
Get Sessions for conversation.

Returns:
sessions.

getTargetUserSession

public LySession getTargetUserSession(java.lang.String sessionId)
Get Session from userId.

Parameters:
userId - The user id.
Returns:
The user session

sendMessage

public void sendMessage(java.lang.String inputValue,
                        LySession senderSession,
                        boolean serverMessage,
                        boolean key)
Send message to all users in conversation.

Parameters:
inputValue - Message
sender - Sender of message

sendObject

public void sendObject(LyObject sentObject,
                       LySession senderSession)
Sends an object to all users in conversation.

Parameters:
sentObject - object sent to the other users
senderSession - Sender of message

isObjectVisible

public java.util.Vector<LyObject> isObjectVisible(LyObject sentObject,
                                                  LySession senderSession)
Checks whether an object is visible by all the users of the conversation.

Parameters:
sentObject - the object whose visibility is checked
Returns:
the list of users that may not access the object

updateActorLabels

public void updateActorLabels()
Update actors labels for each users in conversation.


(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com