Package org.apache.openmeetings.db.entity.basic

Examples of org.apache.openmeetings.db.entity.basic.ChatMessage


          private static final long serialVersionUID = 1L;
         
          @Override
          protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
            ChatDao dao = getBean(ChatDao.class);
            ChatMessage m = new ChatMessage();
            m.setMessage(unescapeXml(chatMessage.getDefaultModelObjectAsString()));
            m.setSent(new Date());
            m.setFromUser(getBean(UserDao.class).get(getUserId()));
            dao.update(m);
            IWebSocketConnectionRegistry reg = IWebSocketSettings.Holder.get(getApplication()).getConnectionRegistry();
            for (IWebSocketConnection c : reg.getConnections(getApplication())) {
              try {
                c.sendMessage(getMessage(m).toString());
View Full Code Here


          private static final long serialVersionUID = 1L;
         
          @Override
          protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
            ChatDao dao = getBean(ChatDao.class);
            ChatMessage m = new ChatMessage();
            m.setMessage(unescapeXml(chatMessage.getDefaultModelObjectAsString()));
            m.setSent(new Date());
            m.setFromUser(getBean(UserDao.class).get(getUserId()));
            dao.update(m);
            IWebSocketConnectionRegistry reg = IWebSocketSettings.Holder.get(getApplication()).getConnectionRegistry();
            for (IWebSocketConnection c : reg.getConnections(getApplication())) {
              try {
                c.sendMessage(getMessage(m).toString());
View Full Code Here

TOP

Related Classes of org.apache.openmeetings.db.entity.basic.ChatMessage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.