public class MessagesServiceImpl extends com.google.gwt.user.server.rpc.RemoteServiceServlet implements MessagesService
| Modifier and Type | Field and Description |
|---|---|
static org.apache.log4j.Logger |
_log |
| Constructor and Description |
|---|
MessagesServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
deleteMessage(String messageIdentifier,
String messageType) |
List<MessageModel> |
getAllMessagesReceived() |
List<MessageModel> |
getAllMessagesSent() |
protected GWTMessagesBuilder |
getGWTWorkspaceBuilder() |
MessageModel |
getMessageById(String messageIdentifier,
String messageType) |
String |
getMyLogin() |
List<MessageModel> |
getNewMessagesReceived() |
protected org.gcube.common.homelibrary.home.workspace.Workspace |
getWorkspace() |
void |
init()
connect to cassandra at startup
|
boolean |
markMessage(String messageIdentifier,
String messageType,
boolean boolMark,
String markType) |
boolean |
saveAttach(String attachId) |
String |
saveAttachment(String messageIdentifier,
String attachmentId,
String messageType) |
boolean |
saveAttachments(String messageIdentifier,
String messageType) |
List<MessageModel> |
searchInReceivedMessagesByText(String text) |
List<MessageModel> |
searchInSentMessagesByText(String text) |
boolean |
sendToById(List<String> listContactsId,
List<String> listAttachmentsId,
String subject,
String text) |
boolean |
sentToByMessageModel(MessageModel message) |
boolean |
setAllUserMessageNotificationsRead()
this set all the notifications for this user read
|
checkPermutationStrongName, doGetSerializationPolicy, getCodeServerPolicyUrl, getRequestModuleBasePath, getSerializationPolicy, init, loadPolicyFromCodeServer, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processCall, processPost, shouldCompressResponsedoPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContentdoDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, servicepublic void init()
init in class javax.servlet.GenericServletprotected GWTMessagesBuilder getGWTWorkspaceBuilder()
public boolean sentToByMessageModel(MessageModel message) throws Exception
sentToByMessageModel in interface MessagesServiceExceptionpublic boolean setAllUserMessageNotificationsRead()
setAllUserMessageNotificationsRead in interface MessagesServiceprotected org.gcube.common.homelibrary.home.workspace.Workspace getWorkspace()
throws Exception
Exceptionpublic boolean sendToById(List<String> listContactsId, List<String> listAttachmentsId, String subject, String text) throws Exception
sendToById in interface MessagesServiceExceptionpublic List<MessageModel> getAllMessagesReceived() throws Exception
getAllMessagesReceived in interface MessagesServiceExceptionpublic List<MessageModel> getNewMessagesReceived() throws Exception
getNewMessagesReceived in interface MessagesServiceExceptionpublic List<MessageModel> getAllMessagesSent() throws Exception
getAllMessagesSent in interface MessagesServiceExceptionpublic List<MessageModel> searchInSentMessagesByText(String text) throws Exception
searchInSentMessagesByText in interface MessagesServiceExceptionpublic List<MessageModel> searchInReceivedMessagesByText(String text) throws Exception
searchInReceivedMessagesByText in interface MessagesServiceExceptionpublic MessageModel getMessageById(String messageIdentifier, String messageType) throws Exception
getMessageById in interface MessagesServiceExceptionpublic boolean saveAttachments(String messageIdentifier, String messageType) throws Exception
saveAttachments in interface MessagesServiceExceptionpublic String saveAttachment(String messageIdentifier, String attachmentId, String messageType) throws Exception
saveAttachment in interface MessagesServiceExceptionpublic boolean saveAttach(String attachId) throws Exception
saveAttach in interface MessagesServiceExceptionpublic boolean markMessage(String messageIdentifier, String messageType, boolean boolMark, String markType) throws Exception
markMessage in interface MessagesServiceExceptionpublic boolean deleteMessage(String messageIdentifier, String messageType) throws Exception
deleteMessage in interface MessagesServiceExceptionpublic String getMyLogin()
getMyLogin in interface MessagesServiceCopyright © 2017. All Rights Reserved.