com.atlassian.bamboo.ww2.actions.admin.notification
Class ConfigureSystemNotifications

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

public class ConfigureSystemNotifications
extends GlobalAdminAction

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
BambooActionSupport.JSONStatus
 
Field Summary
 
Fields inherited from class com.atlassian.bamboo.configuration.GlobalAdminAction
RESTRICTED_ADMIN_ACCESS_DENIED_ERROR
 
Fields inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
ACCESS_DENIED, administrationConfigurationAccessor, administrationConfigurationManager, administrationConfigurationPersister, AGGREGATE_URL_PATTERN, bambooPermissionManager, bambooUserManager, BUILD_KEY_CONTEXT, buildDefinitionManager, cachedPlanManager, CONFIRM, cookieCutter, dashboardCachingManager, environmentService, featureManager, PAGE_NOT_FOUND, PLAN_KEY_CONTEXT, planExecutionManager, planManager, pluginAccessor, projectManager, webInterfaceManager
 
Fields inherited from class com.opensymphony.xwork2.ActionSupport
LOG
 
Fields inherited from interface com.opensymphony.xwork2.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
ConfigureSystemNotifications()
           
 
Method Summary
protected  com.opensymphony.webwork.dispatcher.json.JSONObject buildJsonObject()
          Builds JSONObject and sets 'status', 'errors' and 'fieldErrors' properties accordingly.
 String doAdd()
           
 String doDefault()
          Default action just sends to the input
 String doDelete()
           
 String doEdit()
           
 String doUpdate()
           
 List<NotificationType> getAllNotificationEventTypes()
          Method to get combined notification types and notification conditions for the ui
 List<NotificationRecipient> getAllNotificationRecipientTypes()
          Method to get notification recipients for the ui
 String getConditionKey()
           
 long getLastModified()
           
 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
 String getNotificationErrorMessageKey()
          Purpose of these notification errors is to warn the user if they will not recieve any notifications
 long getNotificationId()
           
 Map<String,NotificationRecipient> getNotificationRecipients()
           
 String getNotificationRecipientType()
           
 String getPreviousTypeData()
           
 List<NotificationRule> getSystemNotificationRules()
           
 void setCancelButton(String cancelButton)
           
 void setConditionKey(String conditionKey)
           
 void setInstantMessagingServerManager(InstantMessagingServerManager instantMessagingServerManager)
           
 void setLastModified(long lastModified)
           
 void setNotificationId(long notificationId)
           
 void setNotificationManager(NotificationManager notificationManager)
           
 void setNotificationRecipientType(String notificationRecipientType)
           
 void setPreviousTypeData(String previousTypeData)
           
 void setSystemNotificationService(SystemNotificationService systemNotificationService)
           
 
Methods inherited from class com.atlassian.bamboo.configuration.GlobalAdminAction
getSecuredDomainObject
 
Methods inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
addActionError, addActionWarning, addError, addError, addErrorCollection, addErrorMessage, addErrorMessage, addErrorMessages, addErrors, addFieldErrors, addHelpPanel, addIllegalArgumentException, areCheckBoxesEmpty, buildWebPanelContext, checkFieldXssSafety, createFieldValidator, doesHelpLinkHaveMatchingTitle, doesLabelKeyHaveMatchingDescription, doExecute, doInput, execute, forceRelativeReturnUrl, getActionWarnings, getAdministrationConfiguration, getBamboo, getBambooLicenseManager, getBambooPermissionManager, getBambooSession, getBambooUrl, getBambooUserManager, getBaseUrl, getBestBaseUrl, getBootstrapManager, getBreadCrumbs, getChainEquiv, getConcurrentBuildsEnabled, getConglomerateCookieValue, getCookieCutter, getCookieValue, getCurrentFormTheme, getCurrentSystemTime, getCurrentUrl, getDefaultPersister, getDeploymentProject, getDescriptionFromLabelKey, getElasticConfig, getFeatureManager, getFieldErrorAccessTracker, getFieldErrors, getFlushedErrorMessages, getFormattedActionErrors, getFormattedActionMessages, getFormattedActionWarnings, getHelpPanels, getInstanceName, getJobEquiv, getJsonObject, getNavigationContext, getNavigationUrl, getNumberOfCurrentlyBuildingPlans, getPlan, getPlanManager, getPluginAccessor, getReturnUrl, getServerLifecycleState, getSessionUser, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTextProvider, getTexts, getTexts, getTextWithArgs, getTotalErrors, getUser, getValidatorContext, getWebFragmentsContextMap, getWebItemsForSection, getWebPanelContext, getWebSectionsForLocation, hasActionWarnings, hasAdminPermission, hasAnyErrors, hasBuilds, hasEntityPermission, hasGlobalAdminPermission, hasGlobalPermission, hasGlobalPermission, hasKey, hasLinkedDeployments, hasPlanPermission, hasPlanPermission, hasRestrictedAdminPermission, input, isCheckboxSetInAction, isEc2ConfigurationWarningRequired, isEnableJavascript, isEnableSignup, isInlineDialog, isRestrictedAdminEnabled, isSelectFieldAndNull, isViewContactDetailsEnabled, renderFreemarkerTemplate, setAdministrationConfigurationAccessor, setAdministrationConfigurationManager, setAdministrationConfigurationPersister, setAuthenticationContext, setBambooLicenseManager, setBambooPermissionManager, setBambooUserManager, setBuildDefinitionManager, setCachedPlanManager, setChainEquiv, setCheckBoxFields, setCookieCutter, setCurrentFormTheme, setDashboardCachingManager, setDecorator, setEnableJavascript, setEnvironmentService, setErrorMessages, setFeatureManager, setI18nBeanFactory, setJobEquiv, setJsonator, setLinkedDeploymentProjectCacheService, setNavigationContext, setPlanExecutionManager, setPlanManager, setPluginAccessor, setProfile, setProjectManager, setReturnUrl, setServerLifecycleProvider, setWebInterfaceManager, toJson, toJson
 
Methods inherited from class com.opensymphony.xwork2.ActionSupport
addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFormatted, getLocale, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, validate
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.bamboo.utils.error.ErrorCollection
getErrorMessages, getErrors
 
Methods inherited from interface com.opensymphony.xwork2.ValidationAware
addActionMessage, addFieldError, getActionErrors, getActionMessages, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrors
 

Constructor Detail

ConfigureSystemNotifications

public ConfigureSystemNotifications()
Method Detail

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

doAdd

public String doAdd()
             throws Exception
Throws:
Exception

buildJsonObject

@NotNull
protected 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

doDelete

public String doDelete()
                throws Exception
Throws:
Exception

doEdit

public String doEdit()
              throws Exception
Throws:
Exception

doUpdate

public String doUpdate()
                throws Exception
Throws:
Exception

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 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 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)


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.