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 |
static String |
TEST_SCOPE |
static String |
TEST_USER |
static String |
TEST_USER_FULLNAME |
static String |
USERNAME_ATTRIBUTE |
static boolean |
withinPortal |
| 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) |
List<MessageModel> |
getNewMessagesReceived() |
String |
getURLFromApplicationProfile(String identifier) |
protected org.gcube.common.homelibrary.home.workspace.Workspace |
getWorkspace() |
void |
init()
connect to cassandra at startup
|
boolean |
isSessionExpired() |
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, getSerializationPolicy, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processPost, shouldCompressResponsedoPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContentdoDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, servicepublic static final String TEST_SCOPE
public static final String TEST_USER
public static final String TEST_USER_FULLNAME
public static final String USERNAME_ATTRIBUTE
public static boolean withinPortal
public static org.apache.log4j.Logger _log
public 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 getURLFromApplicationProfile(String identifier) throws Exception
getURLFromApplicationProfile in interface MessagesServiceExceptionpublic boolean isSessionExpired()
throws Exception
isSessionExpired in interface MessagesServiceExceptionCopyright © 2014. All Rights Reserved.