com.atlassian.bamboo.configuration
Class ConfigureLog4jAction

java.lang.Object
  extended by com.opensymphony.xwork.ActionSupport
      extended by com.atlassian.bamboo.ww2.BambooActionSupport
          extended by com.atlassian.bamboo.configuration.GlobalAdminAction
              extended by com.atlassian.bamboo.configuration.ConfigureLog4jAction
All Implemented Interfaces:
ErrorCollection, BambooSessionAware, NavigationAware, DomainObjectSecurityAware, GlobalAdminSecurityAware, GlobalReadSecurityAware, ReturnUrlAware, com.atlassian.core.i18n.I18nTextProvider, com.opensymphony.xwork.Action, com.opensymphony.xwork.LocaleProvider, com.opensymphony.xwork.TextProvider, com.opensymphony.xwork.Validateable, com.opensymphony.xwork.ValidationAware, com.uwyn.rife.continuations.ContinuableObject, java.io.Serializable, java.lang.Cloneable

public class ConfigureLog4jAction
extends GlobalAdminAction

Allows runtime configuration of Log4j. This class has several entry points:

There are additionally several Hibernate logging related entry points that possibly should be refactored out. This class possibly has too much responsibility at this point, and possibly needs refactoring. It is possible that synchronization errors could occur as the result of switching log levels as a log statement is being generated.

See Also:
Serialized Form

Nested Class Summary
static class ConfigureLog4jAction.LoggingConfigEntry
          Represents a Log4j Config entry, corresponding to a Class or Package mapped to a Level.
 
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
administrationConfigurationManager, AGGREGATE_URL_PATTERN, bambooPermissionManager, bambooUserManager, BUILD_KEY_CONTEXT, buildDefinitionManager, cachedPlanManager, CONFIRM, cookieCutter, dashboardCachingManager, featureManager, PLAN_KEY_CONTEXT, planExecutionManager, planManager, projectManager, webInterfaceManager
 
Fields inherited from class com.opensymphony.xwork.ActionSupport
LOG
 
Fields inherited from interface com.opensymphony.xwork.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
ConfigureLog4jAction()
           
 
Method Summary
 java.lang.String add()
          Add a new entry to the Log4j Configuration.
 java.lang.String changeProfile()
           
 java.lang.String delete()
           
 java.lang.String execute()
           
 java.util.List getEntries()
           
 java.lang.String getExtraLevelName()
           
 java.util.List<java.lang.String> getLevelTypes()
           
 boolean isPermitted()
           
 boolean isProfilingEnabled()
           
 java.lang.String saveClass()
           
 void setClassName(java.lang.String className)
           
 void setEntries(java.util.List<ConfigureLog4jAction.LoggingConfigEntry> entries)
           
 void setExtraClassName(java.lang.String extraClassName)
           
 void setExtraLevelName(java.lang.String extraLevelName)
           
 void setLevelName(java.lang.String levelName)
           
 void setProfileName(java.lang.String profileName)
           
 void setToDeleteName(java.lang.String toDeleteName)
           
 
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, addIllegalArgumentException, areCheckBoxesEmpty, buildJsonObject, buildWebPanelContext, checkFieldXssSafety, createFieldValidator, doDefault, doesHelpLinkHaveMatchingTitle, doesLabelKeyHaveMatchingDescription, doExecute, forceRelativeReturnUrl, getActionWarnings, getAdministrationConfiguration, getBamboo, getBambooLicenseManager, getBambooPermissionManager, getBambooSession, getBambooUrl, getBambooUserManager, getBaseUrl, getBestBaseUrl, getBootstrapManager, getBreadCrumbs, getChainEquiv, getConcurrentBuildsEnabled, getConglomerateCookieValue, getCookieCutter, getCookieValue, getCurrentFormTheme, getCurrentSystemTime, getCurrentUrl, getDefaultPersister, getDescriptionFromLabelKey, getElasticConfig, getFeatureManager, getFieldErrorAccessTracker, getFieldErrors, getFlushedErrorMessages, getFormattedActionErrors, getFormattedActionMessages, getFormattedErrorMessages, getInstanceName, getJobEquiv, getJsonObject, getNavigationContext, getNavigationUrl, getNumberOfCurrentlyBuildingPlans, getPlan, getPlanManager, getPluginAccessor, getReturnUrl, getServerLifecycleState, getSessionUser, 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, hasGlobalAdminPermission, hasGlobalPermission, hasGlobalPermission, hasKey, hasPlanPermission, hasPlanPermission, hasRestrictedAdminPermission, isCheckboxSetInAction, isEc2ConfigurationWarningRequired, isEnableJavascript, isEnableSignup, isInlineDialog, isRestrictedAdminEnabled, isSelectFieldAndNull, renderFreemarkerTemplate, setAdministrationConfigurationManager, setAuthenticationContext, setBambooLicenseManager, setBambooPermissionManager, setBambooUserManager, setBuildDefinitionManager, setCachedPlanManager, setChainEquiv, setCheckBoxFields, setCookieCutter, setCurrentFormTheme, setDashboardCachingManager, setDecorator, setEnableJavascript, setErrorMessages, setFeatureManager, setI18nBeanFactory, setJobEquiv, setNavigationContext, setPlanExecutionManager, setPlanManager, setPluginAccessor, setProfile, setProjectManager, setReturnUrl, setServerLifecycleProvider, setWebInterfaceManager
 
Methods inherited from class com.opensymphony.xwork.ActionSupport
addActionMessage, addFieldError, clearErrorsAndMessages, clone, doInput, getActionErrors, getActionMessages, getErrorMessages, getErrors, getLocale, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, pause, setActionErrors, setActionMessages, 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
 

Constructor Detail

ConfigureLog4jAction

public ConfigureLog4jAction()
Method Detail

execute

public java.lang.String execute()
Specified by:
execute in interface com.opensymphony.xwork.Action
Overrides:
execute in class BambooActionSupport

delete

public java.lang.String delete()

saveClass

public java.lang.String saveClass()

add

public java.lang.String add()
Add a new entry to the Log4j Configuration.

Returns:
action result

setToDeleteName

public void setToDeleteName(java.lang.String toDeleteName)

getLevelTypes

public java.util.List<java.lang.String> getLevelTypes()

setClassName

public void setClassName(java.lang.String className)

setLevelName

public void setLevelName(java.lang.String levelName)

getEntries

public java.util.List getEntries()

setEntries

public void setEntries(java.util.List<ConfigureLog4jAction.LoggingConfigEntry> entries)

setExtraClassName

public void setExtraClassName(java.lang.String extraClassName)

getExtraLevelName

public java.lang.String getExtraLevelName()

setExtraLevelName

public void setExtraLevelName(java.lang.String extraLevelName)

setProfileName

public void setProfileName(java.lang.String profileName)

changeProfile

public java.lang.String changeProfile()

isProfilingEnabled

public boolean isProfilingEnabled()

isPermitted

public boolean isPermitted()


Copyright © 2012 Atlassian. All Rights Reserved.