Class PersonalizationSessionController
- java.lang.Object
-
- org.silverpeas.core.web.mvc.controller.AbstractComponentSessionController
-
- org.silverpeas.web.personalization.control.PersonalizationSessionController
-
- All Implemented Interfaces:
Serializable,ComponentSessionController,SessionCloseable
public class PersonalizationSessionController extends AbstractComponentSessionController
Class declaration- Author:
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.silverpeas.core.web.mvc.controller.AbstractComponentSessionController
context
-
-
Constructor Summary
Constructors Constructor Description PersonalizationSessionController(MainSessionController mainSessionCtrl, ComponentContext componentContext)Constructor declaration
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPreference(String componentId, String priorityId, String notificationId)Method declarationStringbuildOptions(List<Properties> ar, String selectValue, String selectText)StringbuildOptions(List<Properties> ar, String selectValue, String selectText, boolean bSorted)voiddeleteNotifAddress(String aNotifAddressId)Method declarationvoiddeletePreference(String aPreferenceId)Method declarationPropertiesgetDefaultAddressProperties()Get the default Notification addressDelayedNotificationBeangetDelayedNotificationBean()List<Properties>getInstanceList()Retourne la liste des composantsList<Properties>getNotifChannels()Method declarationList<Properties>getNotificationAddresses()Method declarationPropertiesgetNotificationAddressProperties(String aNotificationAddressId)Method declarationPropertiesgetNotifPreference(String aPreferenceId)Method declarationList<Properties>getNotifPreferences()Method declarationUserFullgetTargetUserFull()booleanisMultiChannelNotification()Is the multichannel notification supported?voidsaveChannels(String selectedChannels)voidsaveDelayedUserNotificationFrequency(String frequencyCode)voidsaveNotifAddress(String aNotifAddressId, String aNotifName, String aChannelId, String aAddress, String aUsage)Method declarationvoidsetDefaultAddress(String aNotifAddressId)Set the default Notification address IdvoidtestNotifAddress(String aNotifAddressId)Send a test message to the given notification address Id-
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
-
-
-
-
Constructor Detail
-
PersonalizationSessionController
public PersonalizationSessionController(MainSessionController mainSessionCtrl, ComponentContext componentContext)
Constructor declaration- Parameters:
mainSessionCtrl-componentContext-
-
-
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 List<Properties> getNotificationAddresses() throws PeasCoreException
Method declaration- Returns:
- Throws:
PeasCoreException
-
getNotificationAddressProperties
public Properties getNotificationAddressProperties(String aNotificationAddressId) throws PeasCoreException
Method declaration- Parameters:
aNotificationAddressId-- Returns:
- Throws:
PeasCoreException
-
getNotifChannels
public List<Properties> getNotifChannels() throws PeasCoreException
Method declaration- Returns:
- Throws:
PeasCoreException
-
getNotifPreference
public Properties getNotifPreference(String aPreferenceId) throws PeasCoreException
Method declaration- Parameters:
aPreferenceId-- Returns:
- Throws:
PeasCoreException
-
getNotifPreferences
public List<Properties> getNotifPreferences() throws PeasCoreException
Method declaration- Returns:
- Throws:
PeasCoreException
-
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
-
deleteNotifAddress
public void deleteNotifAddress(String aNotifAddressId) throws PeasCoreException
Method declaration- Parameters:
aNotifAddressId-- Throws:
PeasCoreException
-
deletePreference
public void deletePreference(String aPreferenceId) throws PeasCoreException
Method declaration- Parameters:
aPreferenceId-- Throws:
PeasCoreException
-
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
-
getDefaultAddressProperties
public Properties getDefaultAddressProperties() 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
-
getInstanceList
public List<Properties> getInstanceList() throws PeasCoreException
Retourne la liste des composants- Returns:
- Throws:
PeasCoreException
-
buildOptions
public String buildOptions(List<Properties> ar, String selectValue, String selectText)
-
buildOptions
public String buildOptions(List<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
-
-