Class ConfigureSystemNotifications

java.lang.Object
com.opensymphony.xwork2.ActionSupport
com.atlassian.bamboo.ww2.BambooActionSupport
com.atlassian.bamboo.configuration.GlobalAdminAction
com.atlassian.bamboo.ww2.actions.admin.notification.ConfigureSystemNotifications
All Implemented Interfaces:
JsonStreamingAction, ErrorCollection, BambooSessionAware, NavigationAware, DomainObjectSecurityAware, GlobalAdminSecurityAware, GlobalReadSecurityAware, ReturnUrlAware, com.atlassian.core.i18n.I18nTextProvider, com.atlassian.struts.TextProvider, com.atlassian.struts.ValidationAware, com.opensymphony.xwork.ValidationAware, com.opensymphony.xwork2.Action, com.opensymphony.xwork2.interceptor.ValidationAware, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, Serializable

public class ConfigureSystemNotifications extends GlobalAdminAction
See Also:
  • Constructor Details

    • ConfigureSystemNotifications

      public ConfigureSystemNotifications()
  • Method Details

    • doDefault

      public String doDefault() throws Exception
      Description copied from class: BambooActionSupport
      Default action just sends to the input
      Overrides:
      doDefault in class BambooActionSupport
      Throws:
      Exception
    • add

      public String add()
    • buildJsonObject

      @NotNull protected @NotNull com.opensymphony.webwork.dispatcher.json.JSONObject buildJsonObject() throws com.opensymphony.webwork.dispatcher.json.JSONException
      Description copied from class: BambooActionSupport
      Builds JSONObject and sets 'status', 'errors' and 'fieldErrors' properties accordingly. If descending classes need to add anything to JSON response these should override this method.
      Overrides:
      buildJsonObject in class BambooActionSupport
      Returns:
      Initialized JSONObject
      Throws:
      com.opensymphony.webwork.dispatcher.json.JSONException
    • delete

      public String delete()
    • edit

      public String edit()
    • update

      public String update()
    • getAllNotificationEventTypes

      public List<NotificationType> getAllNotificationEventTypes()
      Method to get combined notification types and notification conditions for the ui
      Returns:
      List of all NotificationType options to display on the UI
    • getAllNotificationRecipientTypes

      public List<NotificationRecipient> getAllNotificationRecipientTypes()
      Method to get notification recipients for the ui
      Returns:
      List of all NotificationRecipient types to display on the UI
    • getNotificationErrorMessageKey

      @Nullable public @Nullable String getNotificationErrorMessageKey()
      Purpose of these notification errors is to warn the user if they will not recieve any notifications
      Returns:
      the error message i18n key
    • getNotificationAddServerKey

      @Nullable public @Nullable String getNotificationAddServerKey()
      Purpose of these notification messages is to advise the user that they can add an IM or email server if they have admin permissions
      Returns:
      the add message i18n key
    • setConditionKey

      public void setConditionKey(String conditionKey)
    • setNotificationRecipientType

      public void setNotificationRecipientType(String notificationRecipientType)
    • getNotificationRecipients

      public Map<String,NotificationRecipient> getNotificationRecipients()
    • getPreviousTypeData

      public String getPreviousTypeData()
    • getConditionKey

      public String getConditionKey()
    • getNotificationRecipientType

      public String getNotificationRecipientType()
    • getSystemNotificationRules

      public List<NotificationRule> getSystemNotificationRules()
    • setSystemNotificationService

      public void setSystemNotificationService(SystemNotificationService systemNotificationService)
    • setNotificationManager

      public void setNotificationManager(NotificationManager notificationManager)
    • setInstantMessagingServerManager

      public void setInstantMessagingServerManager(InstantMessagingServerManager instantMessagingServerManager)
    • setCancelButton

      public void setCancelButton(String cancelButton)
    • getLastModified

      public long getLastModified()
    • getNotificationId

      public long getNotificationId()
    • setPreviousTypeData

      public void setPreviousTypeData(String previousTypeData)
    • setLastModified

      public void setLastModified(long lastModified)
    • setNotificationId

      public void setNotificationId(long notificationId)