Package com.metadot.book.connectr.shared.messages

Examples of com.metadot.book.connectr.shared.messages.ContentAvailableMessage


        if (sitems.iterator().hasNext()) {
           // if so (if newer), call pushMessage to trigger the 'push' of the new content notification
           StreamItem sitem = sitems.iterator().next();
           user.setLastReported(sitem.getDate());
           logger.info("pushing 'new content' notification");
           ChannelServer.pushMessage(user, new ContentAvailableMessage());
        }
      }
    }
    catch (Exception e) {
      e.printStackTrace();
View Full Code Here


      Friend f = pm.getObjectById(Friend.class, fkey);
      UserAccount parent_user = f.getUser();
      // then trigger the notification, if the channel server is enabled.
      if (ChannelServer.channelAPIEnabled()) {
        logger.info("pushing 'new content' notification");
        ChannelServer.pushMessage(parent_user, new ContentAvailableMessage());
      }
    }
    finally {
      pm.close();
    }
View Full Code Here

TOP

Related Classes of com.metadot.book.connectr.shared.messages.ContentAvailableMessage

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.