Package org.javlo.service
Class IMService
- java.lang.Object
-
- org.javlo.service.IMService
-
public class IMService extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IMService.IMItem
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
appendMessage(String fromSite, String fromUser, String receiverSite, String receiverUser, String message)
Long
fillMessageList(String site, String username, Long currentId, List<IMService.IMItem> list)
void
fillMessageList(String site, String username, Date lastDate, List<IMService.IMItem> list)
static IMService
getInstance(javax.servlet.http.HttpSession session)
Long
getLastReadMessageId(String site, String username)
int
getMessagesSize()
String
getUserColor(String site, String username)
void
setLastReadMessageId(String site, String username, Long lastReadMessageId)
-
-
-
Field Detail
-
ALL_SITES
public static final String ALL_SITES
- See Also:
- Constant Field Values
-
ALL_USERS
public static final String ALL_USERS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static IMService getInstance(javax.servlet.http.HttpSession session)
-
appendMessage
public void appendMessage(String fromSite, String fromUser, String receiverSite, String receiverUser, String message)
-
getMessagesSize
public int getMessagesSize()
-
fillMessageList
public void fillMessageList(String site, String username, Date lastDate, List<IMService.IMItem> list)
-
fillMessageList
public Long fillMessageList(String site, String username, Long currentId, List<IMService.IMItem> list)
-
-