com.atlassian.bamboo.configuration
Class ConfigureLog4jAction
java.lang.Object
com.opensymphony.xwork.ActionSupport
com.atlassian.bamboo.ww2.BambooActionSupport
com.atlassian.bamboo.configuration.GlobalAdminAction
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:
- execute: used whilst viewing the
page
- save: invoked for performing updates to the list of Loggers
- add: invoked when adding a new
Logger
- add: called when removing a Logger
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
Fields inherited from class com.atlassian.bamboo.ww2.BambooActionSupport |
administrationConfigurationManager, bambooPermissionManager, buildDefinitionManager, buildManager, commentManager, CONFIRM, cookieCutter, dashboardCachingManager, planExecutionManager, planManager, projectManager |
Fields inherited from class com.opensymphony.xwork.ActionSupport |
LOG |
Fields inherited from interface com.opensymphony.xwork.Action |
ERROR, INPUT, LOGIN, NONE, SUCCESS |
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, getConcurrentBuildsEnabled, getConglomerateCookieValue, getCookieCutter, getCookieValue, getCurrentSystemTime, getCurrentUrl, getDefaultPersister, getDescriptionFromLabelKey, getFlushedErrorMessages, getFormattedActionErrors, getFormattedErrorMessages, getInstanceName, getJsonObject, getNumberOfCurrentlyBuildingPlans, getPlan, getPlanManager, getReturnUrl, getSessionUser, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, getTotalErrors, getUser, getValidatorContext, getWebFragmentsContextMap, getWebItemsForSection, getWebSectionsForLocation, hasAdminPermission, hasAnyErrors, hasBuilds, hasGlobalAdminPermission, hasGlobalPermission, hasKey, hasPlanPermission, hasPlanPermission, hasRestrictedAdminPermission, isCheckboxSetInAction, isEnableJavascript, isEnableSignup, isRestrictedAdminEnabled, isSelectFieldAndNull, renderFreemarkerTemplate, setAdministrationConfigurationManager, setAuthenticationContext, setBambooLicenseManager, setBambooPermissionManager, setBambooUserManager, setBuildDefinitionManager, setBuildManager, setCheckBoxFields, setCommentManager, setCookieCutter, setDashboardCachingManager, setEnableJavascript, setErrorMessages, setI18nBeanFactory, setPlanExecutionManager, setPlanManager, setProjectManager, setReturnUrl, setWebInterfaceManager |
Methods inherited from class com.opensymphony.xwork.ActionSupport |
addActionError, addActionMessage, addFieldError, clearErrorsAndMessages, clone, doInput, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, 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 |
ConfigureLog4jAction
public ConfigureLog4jAction()
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.