com.stratelia.silverpeas.notificationserver.channel.silvermail
Class SILVERMAILSessionController

java.lang.Object
  extended by com.stratelia.silverpeas.peasCore.AbstractComponentSessionController
      extended by com.stratelia.silverpeas.notificationserver.channel.silvermail.SILVERMAILSessionController
All Implemented Interfaces:
ComponentSessionController

public class SILVERMAILSessionController
extends AbstractComponentSessionController

Class declaration

Version:
%I%, %G%
Author:

Field Summary
protected  String currentFunction
           
protected  long currentMessageId
           
 
Fields inherited from class com.stratelia.silverpeas.peasCore.AbstractComponentSessionController
CHARACTER_ENCODING, context
 
Constructor Summary
SILVERMAILSessionController(MainSessionController mainSessionCtrl, ComponentContext context)
          Constructor declaration
 
Method Summary
 void deleteAllSentNotif()
           
 void deleteMessage(String notifId)
          Delete the message notification
 void deleteSentNotif(String notifId)
          Delete the sent message notification
protected  String getComponentInstName()
           
 String getCurrentFunction()
          Method declaration
 SILVERMAILMessage getCurrentMessage()
           
 long getCurrentMessageId()
          Method declaration
 Collection<SILVERMAILMessage> getFolderMessageList(String folderName)
          Method declaration
 SILVERMAILMessage getMessage(long messageId)
          Method declaration
 SentNotificationDetail getSentNotification(String notifId)
          Method declaration
 List<SentNotificationDetail> getUserMessageList()
          Method declaration
 void setCurrentFunction(String currentFunction)
          Method declaration
 void setCurrentMessageId(long value)
          Method declaration
 
Methods inherited from class com.stratelia.silverpeas.peasCore.AbstractComponentSessionController
addClipboardSelection, clipboardPasteDone, close, getAlertUser, getClipboardCount, getClipboardErrorMessage, getClipboardExceptionError, getClipboardName, getClipboardObjects, getClipboardSelectedObjects, getClipboardSize, getComponentAccessController, getComponentId, getComponentLabel, getComponentName, getComponentParameters, getComponentParameterValue, getComponentParameterValue, getComponentRootName, getComponentUrl, getFavoriteSpace, getGenericPanel, getHighestSilverpeasUserRole, getIcon, getLanguage, getLastResults, getLook, getMultilang, getOrganisationController, getPersonalization, getRSSUrl, getSelection, getServerNameAndPort, getSettings, getSilverpeasUserRoles, getSpaceId, getSpaceLabel, getString, getSubscriptionContext, getUrlEncodedParameter, getUserAccessLevel, getUserAvailComponentIds, getUserAvailSpaceIds, getUserDetail, getUserDetail, getUserId, getUserManageableGroupIds, getUserManageableSpaceIds, getUserRoleLevel, getUserRoles, isAppInMaintenance, isGroupManager, isPasswordChangeAllowed, isSpaceInMaintenance, removeClipboardElement, setAppModeMaintenance, setClipboardError, setClipboardSelectedElement, setComponentRootName, setFavoriteSpaceToMainSessionController, setGenericPanel, setIconFileName, setLastResults, setMultilangFileName, setResourceFileName, setSpaceModeMaintenance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currentFunction

protected String currentFunction

currentMessageId

protected long currentMessageId
Constructor Detail

SILVERMAILSessionController

public SILVERMAILSessionController(MainSessionController mainSessionCtrl,
                                   ComponentContext context)
Constructor declaration

See Also:
Method Detail

getComponentInstName

protected String getComponentInstName()

setCurrentFunction

public void setCurrentFunction(String currentFunction)
Method declaration

Parameters:
currentFunction -
See Also:

getCurrentFunction

public String getCurrentFunction()
Method declaration

Returns:
See Also:

getFolderMessageList

public Collection<SILVERMAILMessage> getFolderMessageList(String folderName)
                                                   throws SILVERMAILException
Method declaration

Parameters:
folderName -
Returns:
Throws:
SILVERMAILException
See Also:

getUserMessageList

public List<SentNotificationDetail> getUserMessageList()
                                                throws NotificationManagerException
Method declaration

Parameters:
userId -
Returns:
Throws:
NotificationManagerException
See Also:

getSentNotification

public SentNotificationDetail getSentNotification(String notifId)
                                           throws NotificationManagerException
Method declaration

Parameters:
userId -
Returns:
Throws:
NotificationManagerException
See Also:

deleteSentNotif

public void deleteSentNotif(String notifId)
                     throws NotificationManagerException
Delete the sent message notification

Parameters:
notifId -
Throws:
NotificationManagerException

deleteAllSentNotif

public void deleteAllSentNotif()
                        throws NotificationManagerException
Throws:
NotificationManagerException

getMessage

public SILVERMAILMessage getMessage(long messageId)
                             throws SILVERMAILException
Method declaration

Parameters:
messageId -
Returns:
Throws:
SILVERMAILException
See Also:

getCurrentMessageId

public long getCurrentMessageId()
Method declaration

Returns:
See Also:

setCurrentMessageId

public void setCurrentMessageId(long value)
Method declaration

Parameters:
value -
See Also:

getCurrentMessage

public SILVERMAILMessage getCurrentMessage()
                                    throws SILVERMAILException
Throws:
SILVERMAILException

deleteMessage

public void deleteMessage(String notifId)
                   throws SILVERMAILException
Delete the message notification

Parameters:
notifId -
Throws:
SILVERMAILException


Copyright © 2016 Silverpeas. All Rights Reserved.