Class ConfigureEnvironmentNotifications

All Implemented Interfaces:
JsonStreamingAction, ErrorCollection, BambooSessionAware, NavigationAware, DeploymentEnvironmentReadOnlyInterceptorAware, DeploymentEnvironmentViewConfigurationSecurityAware, DomainObjectSecurityAware, 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 ConfigureEnvironmentNotifications extends AbstractEnvironmentConfigurationAction implements DeploymentEnvironmentViewConfigurationSecurityAware
See Also:
  • Constructor Details

    • ConfigureEnvironmentNotifications

      public ConfigureEnvironmentNotifications()
  • Method Details

    • getSecuredDomainObject

      public Environment getSecuredDomainObject()
      Specified by:
      getSecuredDomainObject in interface DeploymentEnvironmentReadOnlyInterceptorAware
      Specified by:
      getSecuredDomainObject in interface DomainObjectSecurityAware
      Overrides:
      getSecuredDomainObject in class BambooActionSupport
    • getEnvironment

      public Environment getEnvironment()
      Specified by:
      getEnvironment in class AbstractEnvironmentConfigurationAction
    • doDefault

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

      public String addNotification() throws Exception
      Throws:
      Exception
    • 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
    • edit

      public String edit()
    • update

      public String update() throws Exception
      Throws:
      Exception
    • delete

      public String delete() throws Exception
      Throws:
      Exception
    • 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
    • getEnvironmentId

      public long getEnvironmentId()
    • setEnvironmentId

      public void setEnvironmentId(long environmentId)
    • getDeploymentProjectId

      public long getDeploymentProjectId()
    • getNotificationId

      public long getNotificationId()
    • setNotificationId

      public void setNotificationId(long notificationRowId)
    • getEdit

      public String getEdit()
    • setEdit

      public void setEdit(String edit)
    • getExistingNotificationsSet

      public NotificationSet getExistingNotificationsSet()
    • 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)
    • getDeploymentProject

      public DeploymentProject getDeploymentProject()
      Specified by:
      getDeploymentProject in class AbstractDeploymentProjectConfigurationAction