org.zeroexchange.messaging.embedded.read
Class DAOMessageReader

java.lang.Object
  extended by org.zeroexchange.messaging.embedded.read.DAOMessageReader
All Implemented Interfaces:
MessageReader

@Secured(value="ROLE_USER")
public class DAOMessageReader
extends Object
implements MessageReader

The messages reader implementation.

Author:
black

Constructor Summary
DAOMessageReader()
           
 
Method Summary
 long countUnread(Integer userId)
          Returns count of unread message for the specified user.
 Message getUserMessage(Integer messageId, Integer recepientId)
          Returns message for the specified user.
 SlicingDataSet<Message> getUserMessages(Integer userId, SortDescriptor sortDescriptor)
          Returns messages delivered to the specified user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DAOMessageReader

public DAOMessageReader()
Method Detail

getUserMessages

public SlicingDataSet<Message> getUserMessages(Integer userId,
                                               SortDescriptor sortDescriptor)
Returns messages delivered to the specified user.

Specified by:
getUserMessages in interface MessageReader

getUserMessage

public Message getUserMessage(Integer messageId,
                              Integer recepientId)
Returns message for the specified user.

Specified by:
getUserMessage in interface MessageReader

countUnread

public long countUnread(Integer userId)
Returns count of unread message for the specified user.

Specified by:
countUnread in interface MessageReader


Copyright © 2013. All Rights Reserved.