Class SILVERMAILSessionController
- java.lang.Object
-
- org.silverpeas.core.web.mvc.controller.AbstractComponentSessionController
-
- org.silverpeas.web.notificationserver.channel.silvermail.SILVERMAILSessionController
-
- All Implemented Interfaces:
Serializable
,ComponentSessionController
,SessionCloseable
public class SILVERMAILSessionController extends AbstractComponentSessionController
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static Map<Integer,org.apache.commons.lang3.tuple.Pair<SilvermailCriteria.QUERY_ORDER_BY,SilvermailCriteria.QUERY_ORDER_BY>>
INBOX_ORDER_BIES
-
Fields inherited from class org.silverpeas.core.web.mvc.controller.AbstractComponentSessionController
context
-
-
Constructor Summary
Constructors Constructor Description SILVERMAILSessionController(MainSessionController mainSessionCtrl, ComponentContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deleteAllSentNotif()
void
deleteMessage(String notifId)
Delete the message notificationvoid
deleteSentNotif(String notifId)
Delete the sent message notificationString
getCurrentFunction()
Method declarationSILVERMAILMessage
getCurrentMessage()
long
getCurrentMessageId()
Method declarationSilverpeasList<UserNotificationUIEntity>
getFolderMessageList(String folderName)
SILVERMAILMessage
getMessage(long messageId)
PaginationPage
getPagination()
Set<String>
getSelectedUserNotificationIds()
SentNotificationDetail
getSentNotification(String notifId)
List<SentUserNotificationItem>
getUserMessageList()
void
setCurrentFunction(String currentFunction)
Method declarationvoid
setCurrentMessageId(long value)
Method declarationvoid
setOrderBy(SilvermailCriteria.QUERY_ORDER_BY orderBy)
void
setPagination(PaginationPage pagination)
-
Methods inherited from class org.silverpeas.core.web.mvc.controller.AbstractComponentSessionController
addClipboardSelection, clipboardPasteDone, close, getClipboardErrorMessage, getClipboardExceptionError, getClipboardObjects, getClipboardSelectedObjects, getClipboardSize, getComponentAccessController, getComponentId, getComponentLabel, getComponentName, getComponentParameterValue, getComponentParameterValue, getComponentRootName, getComponentUrl, getHighestSilverpeasUserRole, getIcon, getLanguage, getLook, getMultilang, getOrganisationController, getPersonalization, getRSSUrl, getSelection, getSettings, getSilverpeasUserRoles, getSpaceId, getSpaceLabel, getString, getSubscriptionContext, getUrlEncodedParameter, getUserAccessLevel, getUserAvailComponentIds, getUserDetail, getUserDetail, getUserId, getUserManageableGroupIds, getUserManageableSpaceIds, getUserRoles, getZoneId, isAppInMaintenance, isGroupManager, isPasswordChangeAllowed, isSpaceInMaintenance, removeClipboardElement, setAppModeMaintenance, setClipboardSelectedElement, setComponentRootName, setSpaceModeMaintenance
-
-
-
-
Field Detail
-
INBOX_ORDER_BIES
public static final Map<Integer,org.apache.commons.lang3.tuple.Pair<SilvermailCriteria.QUERY_ORDER_BY,SilvermailCriteria.QUERY_ORDER_BY>> INBOX_ORDER_BIES
-
-
Constructor Detail
-
SILVERMAILSessionController
public SILVERMAILSessionController(MainSessionController mainSessionCtrl, ComponentContext context)
-
-
Method Detail
-
getPagination
public PaginationPage getPagination()
-
setPagination
public void setPagination(PaginationPage pagination)
-
setOrderBy
public void setOrderBy(SilvermailCriteria.QUERY_ORDER_BY orderBy)
-
getCurrentFunction
public String getCurrentFunction()
Method declaration- Returns:
-
setCurrentFunction
public void setCurrentFunction(String currentFunction)
Method declaration- Parameters:
currentFunction
-
-
getFolderMessageList
public SilverpeasList<UserNotificationUIEntity> getFolderMessageList(String folderName)
-
getUserMessageList
public List<SentUserNotificationItem> getUserMessageList() throws NotificationException
- Throws:
NotificationException
-
getSentNotification
public SentNotificationDetail getSentNotification(String notifId) throws NotificationException
- Throws:
NotificationException
-
deleteSentNotif
public void deleteSentNotif(String notifId) throws NotificationException
Delete the sent message notification- Parameters:
notifId
-- Throws:
NotificationException
-
deleteAllSentNotif
public void deleteAllSentNotif() throws NotificationException
- Throws:
NotificationException
-
getMessage
public SILVERMAILMessage getMessage(long messageId)
-
getCurrentMessageId
public long getCurrentMessageId()
Method declaration- Returns:
-
setCurrentMessageId
public void setCurrentMessageId(long value)
Method declaration- Parameters:
value
-
-
getCurrentMessage
public SILVERMAILMessage getCurrentMessage()
-
deleteMessage
public void deleteMessage(String notifId)
Delete the message notification- Parameters:
notifId
-
-
-