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 classIMService.IMItem
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendMessage(String fromSite, String fromUser, String receiverSite, String receiverUser, String message)LongfillMessageList(String site, String username, Long currentId, List<IMService.IMItem> list)voidfillMessageList(String site, String username, Date lastDate, List<IMService.IMItem> list)static IMServicegetInstance(javax.servlet.http.HttpSession session)LonggetLastReadMessageId(String site, String username)intgetMessagesSize()StringgetUserColor(String site, String username)voidsetLastReadMessageId(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)
-
-