com.stratelia.silverpeas.notificationManager
Class NotificationManagerSettings

java.lang.Object
  extended by com.stratelia.silverpeas.notificationManager.NotificationManagerSettings

public class NotificationManagerSettings
extends Object

Centralizing the access to the settings associated to the management of notifications.

Author:
Yohann Chastagnier

Constructor Summary
NotificationManagerSettings()
           
 
Method Summary
static String getCronOfDelayedNotificationSending()
          Gets the cron configuration of the delayed notification sending.
static List<Integer> getDefaultChannels()
          Gets the addresses as default notification channels.
static DelayedNotificationFrequency getDefaultDelayedNotificationFrequency()
          Gets the default delayed notification frequency of the server.
static Set<DelayedNotificationFrequency> getDelayedNotificationFrequencyChoiceList()
          The ordered frequency choice set associated to the delayed notification mechanism.
static int getReceiverThresholdAfterThatReplaceUserNameListByGroupName()
          Gets the receiver threshold after that the user list is replaced by the group name into which the user is associated.
static int getUserManualNotificationRecipientLimit()
          Gets the maximum number of recipient for manual user notification.
static boolean isDisplayingReceiversInNotificationMessageEnabled()
          Indicates if the feature of displaying receivers in the notification message is enabled.
static boolean isDisplayingUserNameListInsteadOfGroupEnabled()
          Indicates if group name must be displayed instead of user names of group.
static boolean isMultiChannelNotificationEnabled()
          Indicates if the multi channel for user notification is enabled.
static boolean isRemoveSenderFromSubscriptionNotificationReceiversEnabled()
          Indicates if the sender must be removed from the list of receivers of a subscription notification.
static boolean isSubscriptionNotificationConfirmationEnabled()
          Indicates if the the confirmation of subscription notification is enabled.
static boolean isUserManualNotificationRecipientLimitEnabled()
          Indicates if the limitation of maximum number of recipient is enabled.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotificationManagerSettings

public NotificationManagerSettings()
Method Detail

getDefaultDelayedNotificationFrequency

public static DelayedNotificationFrequency getDefaultDelayedNotificationFrequency()
Gets the default delayed notification frequency of the server.

Returns:
the default delayed notification frequency of the server.

getDelayedNotificationFrequencyChoiceList

public static Set<DelayedNotificationFrequency> getDelayedNotificationFrequencyChoiceList()
The ordered frequency choice set associated to the delayed notification mechanism.

Returns:
the ordered set of available frequencies.

isUserManualNotificationRecipientLimitEnabled

public static boolean isUserManualNotificationRecipientLimitEnabled()
Indicates if the limitation of maximum number of recipient is enabled.

Returns:
true if enabled, false otherwise.

getUserManualNotificationRecipientLimit

public static int getUserManualNotificationRecipientLimit()
Gets the maximum number of recipient for manual user notification.

Returns:
the maximum number of recipient for manual user notification.

getReceiverThresholdAfterThatReplaceUserNameListByGroupName

public static int getReceiverThresholdAfterThatReplaceUserNameListByGroupName()
Gets the receiver threshold after that the user list is replaced by the group name into which the user is associated.

Returns:
an integer value, 0 = no threshold.

isDisplayingUserNameListInsteadOfGroupEnabled

public static boolean isDisplayingUserNameListInsteadOfGroupEnabled()
Indicates if group name must be displayed instead of user names of group.

Returns:
true if enabled, false otherwise.

isDisplayingReceiversInNotificationMessageEnabled

public static boolean isDisplayingReceiversInNotificationMessageEnabled()
Indicates if the feature of displaying receivers in the notification message is enabled.

Returns:
true if enabled, false otherwise.

getCronOfDelayedNotificationSending

public static String getCronOfDelayedNotificationSending()
Gets the cron configuration of the delayed notification sending.

Returns:
the cron configuration of the delayed notification sending.

isMultiChannelNotificationEnabled

public static boolean isMultiChannelNotificationEnabled()
Indicates if the multi channel for user notification is enabled.

Returns:
true if enabled, false otherwise.

getDefaultChannels

public static List<Integer> getDefaultChannels()
Gets the addresses as default notification channels. If the multi channel isn't supported, then returns only one among the channels set up as default. In the case no default channels are set up, then the previous behaviour is used; the SMTP is used as default channel.

Returns:
a set of default notification channels.

isRemoveSenderFromSubscriptionNotificationReceiversEnabled

public static boolean isRemoveSenderFromSubscriptionNotificationReceiversEnabled()
Indicates if the sender must be removed from the list of receivers of a subscription notification.

Returns:
true if enabled, false otherwise.

isSubscriptionNotificationConfirmationEnabled

public static boolean isSubscriptionNotificationConfirmationEnabled()
Indicates if the the confirmation of subscription notification is enabled.

Returns:
true if enabled (default value), false otherwise.


Copyright © 2016 Silverpeas. All Rights Reserved.