Class ConfigureSystemNotifications

    • Constructor Detail

      • ConfigureSystemNotifications

        public ConfigureSystemNotifications()
    • Method Detail

      • 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()
      • 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
      • 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)
      • getPreviousTypeData

        public String getPreviousTypeData()
      • getConditionKey

        public String getConditionKey()
      • getNotificationRecipientType

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