Package com.changestuffs.server.utils

Examples of com.changestuffs.server.utils.MessageOAM


  @Override
  public LoadMessagesResult execute(LoadMessages action, ExecutionContext context)
      throws ActionException {
    UserService userService = UserServiceFactory.getUserService();
    User user = userService.getCurrentUser();
    MessageOAM oam = provider.get();
    return new LoadMessagesResult(oam.getConversations(user.getEmail(), action.getContacts()));
  }
View Full Code Here


    UserService userService = UserServiceFactory.getUserService();
    User user = userService.getCurrentUser();
    String json = toJson.getJson(action.getMessage(), user.getEmail(), MessageType.message);
    ChannelService channelService = ChannelServiceFactory.getChannelService();
    channelService.sendMessage(new ChannelMessage(action.getEmail(), json));
    MessageOAM oam = provider.get();
    oam.addMessage(action, user.getEmail());
    return new SendMessageResult();
  }
View Full Code Here

TOP

Related Classes of com.changestuffs.server.utils.MessageOAM

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.