Issue #437 Presence status sent out when logged on to the server.
Change-Id: I44d0cfd8e37aeda4d0eadaf80b9c014494258164 Former-commit-id:521127b589
[formerly 9391b95b6a26b34675370b3f7347fab4f08444e5] Former-commit-id:b4c8d3a0d9
This commit is contained in:
parent
eba8ac8dd9
commit
57abf56e09
1 changed files with 20 additions and 0 deletions
|
@ -53,6 +53,7 @@ import com.raytheon.uf.viz.collaboration.comm.identity.event.ITextMessageEvent;
|
|||
import com.raytheon.uf.viz.collaboration.comm.identity.event.IVenueInvitationEvent;
|
||||
import com.raytheon.uf.viz.collaboration.comm.identity.roster.IRosterEntry;
|
||||
import com.raytheon.uf.viz.collaboration.comm.identity.user.IQualifiedID;
|
||||
import com.raytheon.uf.viz.collaboration.comm.provider.Presence;
|
||||
import com.raytheon.uf.viz.collaboration.comm.provider.TextMessage;
|
||||
import com.raytheon.uf.viz.collaboration.comm.provider.session.SessionManager;
|
||||
import com.raytheon.uf.viz.collaboration.ui.editor.CollaborationEditor;
|
||||
|
@ -229,6 +230,25 @@ public class CollaborationDataManager {
|
|||
// e.getLocalizedMessage(), e);
|
||||
}
|
||||
}
|
||||
// TODO this will change will be able to get existing
|
||||
// presences.
|
||||
Presence presence = new Presence();
|
||||
presence.setProperty("dummy", "dummy");
|
||||
presence.setMode(loginData.getMode());
|
||||
presence.setStatusMessage(loginData.getModeMessage());
|
||||
presence.setType(Type.AVAILABLE);
|
||||
try {
|
||||
sessionManager.getAccountManager().sendPresence(
|
||||
presence);
|
||||
} catch (CollaborationException e) {
|
||||
// TODO Auto-generated catch block. Please revise as
|
||||
// appropriate.
|
||||
statusHandler.handle(Priority.PROBLEM,
|
||||
e.getLocalizedMessage(), e);
|
||||
} catch (Exception ex) {
|
||||
ex.printStackTrace();
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue