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, 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, bambooPermissionManager, buildDefinitionManager, buildManager, chainManager, CONFIRM, cookieCutter, dashboardCachingManager, planManager, projectManager
 
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
addError, addError, addErrorCollection, addErrorMessage, addErrorMessage, addErrorMessages, addErrors, addIllegalArgumentException, areCheckBoxesEmpty, buildJsonObject, checkFieldXssSafety, createFieldValidator, doDefault, doesHelpLinkHaveMatchingTitle, doesLabelKeyHaveMatchingDescription, doExecute, getAdministrationConfiguration, getBamboo, getBambooLicenseManager, getBambooPermissionManager, getBambooSession, getBambooUserManager, getBaseUrl, getBootstrapManager, getBreadCrumbs, getBuildManager, getChainManager, getConcurrentBuildsNumber, getConglomerateCookieValue, getCookieCutter, getCookieValue, getCurrentSystemTime, getCurrentUrl, getDefaultPersister, getDescriptionFromLabelKey, getFlushedErrorMessages, getFormattedActionErrors, getFormattedErrorMessages, getInstanceName, getJsonObject, getPlan, getReturnUrl, getSessionUser, getText, getTotalErrors, getUser, getValidatorContext, getWebFragmentsContextMap, getWebItemsForSection, getWebSectionsForLocation, hasAdminPermission, hasAnyErrors, hasBuilds, hasGlobalAdminPermission, hasGlobalPermission, hasPlanPermission, hasPlanPermission, hasRestrictedAdminPermission, isCheckboxSetInAction, isEnableJavascript, isEnableSignup, isRestrictedAdminEnabled, isSelectFieldAndNull, renderFreemarkerTemplate, setAdministrationConfigurationManager, setAuthenticationContext, setBambooLicenseManager, setBambooPermissionManager, setBambooUserManager, setBuildDefinitionManager, setBuildManager, setChainManager, setCheckBoxFields, setCookieCutter, setDashboardCachingManager, setEnableJavascript, setErrorMessages, setPlanManager, setProjectManager, setReturnUrl, setWebInterfaceManager
 
Methods inherited from class com.opensymphony.xwork.ActionSupport
addActionError, addActionMessage, addFieldError, clearErrorsAndMessages, clone, doInput, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getLocale, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, 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, getFieldErrors
 
Methods inherited from interface com.atlassian.core.i18n.I18nTextProvider
getText
 

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 © 2010 Atlassian. All Rights Reserved.