Class ConfigureChainNotification

java.lang.Object
org.apache.struts2.ActionSupport
All Implemented Interfaces:
JsonStreamingAction, ErrorCollection, BambooSessionAware, ChainAware, NavigationAware, DomainObjectSecurityAware, GlobalReadSecurityAware, PlanEditSecurityAware, PlanAware, ProjectAware, ReturnUrlAware, UserAware, com.atlassian.core.i18n.I18nTextProvider, Serializable, org.apache.struts2.action.Action, org.apache.struts2.interceptor.ValidationAware, org.apache.struts2.locale.LocaleProvider, org.apache.struts2.text.TextProvider, org.apache.struts2.Validateable

public class ConfigureChainNotification extends ChainActionSupport implements PlanEditSecurityAware
See Also:
  • Constructor Details

    • ConfigureChainNotification

      public ConfigureChainNotification()
  • Method Details

    • getRedirectUrl

      public String getRedirectUrl()
    • 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 org.json.JSONObject buildJsonObject() throws org.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:
      org.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)