Issue #437 Presence status sent out when logged on to the server.
Change-Id: I44d0cfd8e37aeda4d0eadaf80b9c014494258164 Former-commit-id:05d20a70ea
[formerly57abf56e09
] [formerlyb4c8d3a0d9
] [formerly521127b589
[formerlyb4c8d3a0d9
[formerly 9391b95b6a26b34675370b3f7347fab4f08444e5]]] Former-commit-id:521127b589
Former-commit-id: ffe3bb947109a3d0dd60988e238123c19981b959 [formerly946f7963c4
] Former-commit-id:35c753c07f
This commit is contained in:
parent
bf85a9c5b8
commit
a043e15035
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