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) |
String |
getMyLogin() |
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, shouldCompressResponse
doPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContent
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
public 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.GenericServlet
protected GWTMessagesBuilder getGWTWorkspaceBuilder()
public boolean sentToByMessageModel(MessageModel message) throws Exception
sentToByMessageModel
in interface MessagesService
Exception
public boolean setAllUserMessageNotificationsRead()
setAllUserMessageNotificationsRead
in interface MessagesService
protected org.gcube.common.homelibrary.home.workspace.Workspace getWorkspace() throws Exception
Exception
public boolean sendToById(List<String> listContactsId, List<String> listAttachmentsId, String subject, String text) throws Exception
sendToById
in interface MessagesService
Exception
public List<MessageModel> getAllMessagesReceived() throws Exception
getAllMessagesReceived
in interface MessagesService
Exception
public List<MessageModel> getNewMessagesReceived() throws Exception
getNewMessagesReceived
in interface MessagesService
Exception
public List<MessageModel> getAllMessagesSent() throws Exception
getAllMessagesSent
in interface MessagesService
Exception
public List<MessageModel> searchInSentMessagesByText(String text) throws Exception
searchInSentMessagesByText
in interface MessagesService
Exception
public List<MessageModel> searchInReceivedMessagesByText(String text) throws Exception
searchInReceivedMessagesByText
in interface MessagesService
Exception
public MessageModel getMessageById(String messageIdentifier, String messageType) throws Exception
getMessageById
in interface MessagesService
Exception
public boolean saveAttachments(String messageIdentifier, String messageType) throws Exception
saveAttachments
in interface MessagesService
Exception
public String saveAttachment(String messageIdentifier, String attachmentId, String messageType) throws Exception
saveAttachment
in interface MessagesService
Exception
public boolean saveAttach(String attachId) throws Exception
saveAttach
in interface MessagesService
Exception
public boolean markMessage(String messageIdentifier, String messageType, boolean boolMark, String markType) throws Exception
markMessage
in interface MessagesService
Exception
public boolean deleteMessage(String messageIdentifier, String messageType) throws Exception
deleteMessage
in interface MessagesService
Exception
public String getURLFromApplicationProfile(String identifier) throws Exception
getURLFromApplicationProfile
in interface MessagesService
Exception
public String getMyLogin() throws Exception
getMyLogin
in interface MessagesService
Exception
public boolean isSessionExpired() throws Exception
isSessionExpired
in interface MessagesService
Exception
Copyright © 2015. All Rights Reserved.