Class ConfigureChainNotification

java.lang.Object
com.opensymphony.xwork2.ActionSupport
All Implemented Interfaces:
JsonStreamingAction, ErrorCollection, BambooSessionAware, ChainAware, NavigationAware, DomainObjectSecurityAware, GlobalReadSecurityAware, PlanEditSecurityAware, PlanAware, ProjectAware, 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 ConfigureChainNotification extends ChainActionSupport implements PlanEditSecurityAware
See Also:
  • Constructor Details

    • ConfigureChainNotification

      public ConfigureChainNotification()
  • 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
    • addNotification

      public String addNotification()
    • 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()
    • deleteAll

      public String deleteAll()
    • edit

      public String edit()
    • update

      public String update()
    • validateNotification

      public void validateNotification()
    • getAvailableRecipientTypes

      public Map<String,NotificationRecipient> getAvailableRecipientTypes()
    • getAllNotificationRecipientTypes

      public List<NotificationRecipient> getAllNotificationRecipientTypes()
      Method to get notification recipients for the ui
      Returns:
      List of all NotificationRecipient types to display on the UI
    • 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
    • getAvailableGroups

      public List<com.atlassian.user.Group> getAvailableGroups()
    • getAvailableUsers

      public List<String> getAvailableUsers()
    • getNotificationId

      public long getNotificationId()
    • setNotificationId

      public void setNotificationId(long notificationRowId)
    • getEdit

      public String getEdit()
    • setEdit

      public void setEdit(String edit)
    • getLastModified

      public long getLastModified()
    • setLastModified

      public void setLastModified(long lastModified)
    • getNotificationRecipientType

      public String getNotificationRecipientType()
    • setNotificationRecipientType

      public void setNotificationRecipientType(String notificationRecipientType)
    • getConditionKey

      public String getConditionKey()
    • setConditionKey

      public void setConditionKey(String conditionKey)
    • setNotificationManager

      public void setNotificationManager(NotificationManager notificationManager)
    • isMailServerConfigured

      public boolean isMailServerConfigured()
    • setInstantMessagingServerManager

      public void setInstantMessagingServerManager(InstantMessagingServerManager instantMessagingServerManager)
    • isJabberServerConfigured

      public boolean isJabberServerConfigured()
    • getMailServerManager

      protected com.atlassian.mail.server.MailServerManager getMailServerManager()
    • getPreviousTypeData

      public String getPreviousTypeData()
    • setPreviousTypeData

      public void setPreviousTypeData(String previousTypeData)
    • isSaved

      public boolean isSaved()
    • setSaved

      public void setSaved(boolean saved)