Saros
Distributed Collaborative Editing and Distributed Party Programming
|
Inherits Startable.
Public Member Functions | |
UserInformationHandler (ISarosSession session, ITransmitter transmitter, IReceiver receiver) | |
void | start () |
void | stop () |
synchronized List< User > | synchronizeUserList (Collection< User > usersAdded, Collection< User > usersRemoved, Collection< User > remoteUsers) |
void | sendUserFinishedProjectNegotiation (Collection< User > remoteUsers, JID jid) |
Business Logic for receiving and sending updates of the invitation state of users. Also handles sending and responding to userLists after when a user joined the session
de.fu_berlin.inf.dpp.project.internal.UserInformationHandler.UserInformationHandler | ( | ISarosSession | session, |
ITransmitter | transmitter, | ||
IReceiver | receiver | ||
) |
void de.fu_berlin.inf.dpp.project.internal.UserInformationHandler.sendUserFinishedProjectNegotiation | ( | Collection< User > | remoteUsers, |
JID | jid | ||
) |
Informs all clients about the fact that a user now has projects and is able to process IResourceActivitys.
remoteUsers | The users to be informed |
jid | The JID of the user this message is about |
void de.fu_berlin.inf.dpp.project.internal.UserInformationHandler.start | ( | ) |
void de.fu_berlin.inf.dpp.project.internal.UserInformationHandler.stop | ( | ) |
synchronized List<User> de.fu_berlin.inf.dpp.project.internal.UserInformationHandler.synchronizeUserList | ( | Collection< User > | usersAdded, |
Collection< User > | usersRemoved, | ||
Collection< User > | remoteUsers | ||
) |
Synchronizes a user list with the given remote users.
usersAdded | collection containing the users that are added to the current session or null |
usersRemoved | collection containing the users that are removed from the current session or null |
remoteUsers | collection containing the users that will receive the user list |
IllegalStateException | if the local user of the session is not the host |
IllegalArgumentException | if remoteUsers collection is empty if usersAdded and usersRemoved are either both empty or null |