public class MessageDAO extends Object
Modifier and Type | Method and Description |
---|---|
static void |
deleteReceived(long msgId)
Delete received message
|
static void |
deleteSent(long msgId)
Delete sent message
|
static List<MessageReceived> |
findReceivedByMeFromUser(String me,
String user)
Find received by user
|
static List<String> |
findReceivedUsersFrom(String me)
Find users who sent an message to me
|
static Map<String,Long> |
findReceivedUsersFromUnread(String me)
Return a map users and number of unread received messages from them
|
static List<MessageSent> |
findSentFromMeToUser(String me,
String user)
Find sent from me to user
|
static List<String> |
findSentUsersTo(String me)
Find users whom sent an message
|
static void |
markSeen(long msgId)
Mark message as seen
|
static void |
send(String from,
String to,
String user,
String subject,
String content)
Send message
|
public static void send(String from, String to, String user, String subject, String content) throws DatabaseException
DatabaseException
public static void deleteSent(long msgId) throws DatabaseException
DatabaseException
public static void deleteReceived(long msgId) throws DatabaseException
DatabaseException
public static List<String> findSentUsersTo(String me) throws DatabaseException
DatabaseException
public static List<MessageSent> findSentFromMeToUser(String me, String user) throws DatabaseException
DatabaseException
public static List<String> findReceivedUsersFrom(String me) throws DatabaseException
DatabaseException
public static Map<String,Long> findReceivedUsersFromUnread(String me) throws DatabaseException
DatabaseException
public static List<MessageReceived> findReceivedByMeFromUser(String me, String user) throws DatabaseException
DatabaseException
public static void markSeen(long msgId) throws DatabaseException
DatabaseException
Copyright © 2017 Open Knowledge Management System S.L.. All rights reserved.