com.stratelia.silverpeas.personalizationPeas.control
Class PersonalizationSessionController

java.lang.Object
  extended by com.stratelia.silverpeas.peasCore.AbstractComponentSessionController
      extended by com.stratelia.silverpeas.personalizationPeas.control.PersonalizationSessionController
All Implemented Interfaces:
ComponentSessionController

public class PersonalizationSessionController
extends AbstractComponentSessionController

Class declaration

Author:

Field Summary
 
Fields inherited from class com.stratelia.silverpeas.peasCore.AbstractComponentSessionController
CHARACTER_ENCODING, context
 
Constructor Summary
PersonalizationSessionController(MainSessionController mainSessionCtrl, ComponentContext componentContext)
          Constructor declaration
 
Method Summary
 void addPreference(String componentId, String priorityId, String notificationId)
          Method declaration
 String buildOptions(ArrayList<Properties> ar, String selectValue, String selectText)
           
 String buildOptions(ArrayList<Properties> ar, String selectValue, String selectText, boolean bSorted)
           
 void deleteNotifAddress(String aNotifAddressId)
          Method declaration
 void deletePreference(String aPreferenceId)
          Method declaration
 Properties getDefaultAddress()
          Get the default Notification address
 DelayedNotificationBean getDelayedNotificationBean()
           
 ArrayList<Properties> getInstanceList()
          Retourne la liste des composants
 ArrayList<Properties> getNotifChannels()
          Method declaration
 Properties getNotificationAddress(String aNotificationAddressId)
          Method declaration
 ArrayList<Properties> getNotificationAddresses()
          Method declaration
 Properties getNotifPreference(String aPreferenceId)
          Method declaration
 ArrayList<Properties> getNotifPreferences()
          Method declaration
 UserFull getTargetUserFull()
           
 boolean isMultiChannelNotification()
          Is the multichannel notification supported?
 void saveChannels(String selectedChannels)
           
 void saveDelayedUserNotificationFrequency(String frequencyCode)
           
 void saveNotifAddress(String aNotifAddressId, String aNotifName, String aChannelId, String aAddress, String aUsage)
          Method declaration
 void setDefaultAddress(String aNotifAddressId)
          Set the default Notification address Id
 void testNotifAddress(String aNotifAddressId)
          Send a test message to the given notification address Id
 
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
 

Constructor Detail

PersonalizationSessionController

public PersonalizationSessionController(MainSessionController mainSessionCtrl,
                                        ComponentContext componentContext)
Constructor declaration

Parameters:
mainSessionCtrl -
componentContext -
See Also:
Method Detail

isMultiChannelNotification

public boolean isMultiChannelNotification()
Is the multichannel notification supported?

Returns:
true if notifications can be done through several channels, false otherwise.

getNotificationAddresses

public ArrayList<Properties> getNotificationAddresses()
                                               throws PeasCoreException
Method declaration

Returns:
Throws:
PeasCoreException
See Also:

getNotificationAddress

public Properties getNotificationAddress(String aNotificationAddressId)
                                  throws PeasCoreException
Method declaration

Parameters:
aNotificationAddressId -
Returns:
Throws:
PeasCoreException
See Also:

getNotifChannels

public ArrayList<Properties> getNotifChannels()
                                       throws PeasCoreException
Method declaration

Returns:
Throws:
PeasCoreException
See Also:

getNotifPreference

public Properties getNotifPreference(String aPreferenceId)
                              throws PeasCoreException
Method declaration

Parameters:
aPreferenceId -
Returns:
Throws:
PeasCoreException
See Also:

getNotifPreferences

public ArrayList<Properties> getNotifPreferences()
                                          throws PeasCoreException
Method declaration

Returns:
Throws:
PeasCoreException
See Also:

saveNotifAddress

public void saveNotifAddress(String aNotifAddressId,
                             String aNotifName,
                             String aChannelId,
                             String aAddress,
                             String aUsage)
                      throws PeasCoreException
Method declaration

Parameters:
aNotifAddressId -
aNotifName -
aChannelId -
aAddress -
aUsage -
Throws:
PeasCoreException
See Also:

deleteNotifAddress

public void deleteNotifAddress(String aNotifAddressId)
                        throws PeasCoreException
Method declaration

Parameters:
aNotifAddressId -
Throws:
PeasCoreException
See Also:

deletePreference

public void deletePreference(String aPreferenceId)
                      throws PeasCoreException
Method declaration

Parameters:
aPreferenceId -
Throws:
PeasCoreException
See Also:

testNotifAddress

public void testNotifAddress(String aNotifAddressId)
                      throws PeasCoreException
Send a test message to the given notification address Id

Parameters:
aNotifAddressId - id of the table ST_NotifAddress row to send notification to.
Throws:
PeasCoreException

getDefaultAddress

public Properties getDefaultAddress()
                             throws PeasCoreException
Get the default Notification address

Returns:
Throws:
PeasCoreException

setDefaultAddress

public void setDefaultAddress(String aNotifAddressId)
                       throws PeasCoreException
Set the default Notification address Id

Parameters:
aNotifAddressId - of the table ST_NotifAddress row to send notification to.
Throws:
PeasCoreException

addPreference

public void addPreference(String componentId,
                          String priorityId,
                          String notificationId)
                   throws PeasCoreException
Method declaration

Parameters:
componentId -
priorityId -
notificationId -
Throws:
PeasCoreException
See Also:

getInstanceList

public ArrayList<Properties> getInstanceList()
                                      throws PeasCoreException
Retourne la liste des composants

Returns:
Throws:
PeasCoreException

buildOptions

public String buildOptions(ArrayList<Properties> ar,
                           String selectValue,
                           String selectText)

buildOptions

public String buildOptions(ArrayList<Properties> ar,
                           String selectValue,
                           String selectText,
                           boolean bSorted)

getTargetUserFull

public UserFull getTargetUserFull()

saveChannels

public void saveChannels(String selectedChannels)
                  throws PeasCoreException
Throws:
PeasCoreException

getDelayedNotificationBean

public DelayedNotificationBean getDelayedNotificationBean()

saveDelayedUserNotificationFrequency

public void saveDelayedUserNotificationFrequency(String frequencyCode)
                                          throws PeasCoreException
Throws:
PeasCoreException


Copyright © 2016 Silverpeas. All Rights Reserved.