com.atlassian.crowd.console.action.options
Class UpdateLoggingProfiling
java.lang.Object
com.opensymphony.xwork.ActionSupport
com.atlassian.crowd.console.action.BaseAction
com.atlassian.crowd.console.action.options.UpdateLoggingProfiling
- All Implemented Interfaces:
- 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 UpdateLoggingProfiling
- extends BaseAction
Allows configuration of logging and profiling. These could be split to separate classes (& actions), but not as long
as they're one page in the UI.
- See Also:
- Serialized Form
| Fields inherited from class com.atlassian.crowd.console.action.BaseAction |
actionMessageAlertColor, ALERT_BLUE, ALERT_GREEN, ALERT_RED, ALERT_YELLOW, applicationManager, applicationService, clientProperties, crowdLicenseManager, directoryManager, initialLoad, propertyManager, tab, tokenAuthenticationManager |
| 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.crowd.console.action.BaseAction |
addActionMessage, authorisedToAccessCrowdAdminConsole, authorisedToAccessCrowdConsole, containsActionMessages, containsErrorMessages, directory, getActionMessageAlertColor, getAttribute, getBootstrapManager, getCurrentLicenseResourceTotal, getDisplayableLink, getFirstAttribute, getHttpRequest, getImageLocation, getImageTitle, getLicense, getLink, getRemoteUser, getSession, getSitemeshPageProperties, getSitemeshPageProperty, getTab, getText, getText, getUserName, getWebFragmentsContextMap, getWebInterfaceManager, getWebItemsForSection, getWebResourceManager, getWebSectionsForLocation, isAdmin, isAtResourceLimit, isAuthenticated, isEvaluation, isInitialLoad, isLicenseExpired, isSubscription, isWithinGracePeriod, renderFreemarkerTemplate, setApplicationManager, setApplicationService, setClientProperties, setCrowdLicenseManager, setCrowdUserDetailsService, setDirectoryManager, setPropertyManager, setTab, setTokenAuthenticationManager, setWebInterfaceManager, setWebResourceManager |
| Methods inherited from class com.opensymphony.xwork.ActionSupport |
addActionError, addActionMessage, addFieldError, clearErrorsAndMessages, clone, doInput, execute, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getLocale, 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 |
LOGLEVEL_DEFAULT
protected static final java.lang.String LOGLEVEL_DEFAULT
- See Also:
- Constant Field Values
classNames
protected java.lang.String[] classNames
- TODO: levelNames[i] is the level name for class classNames[i]. Should look for a better way.
levelNames
protected java.lang.String[] levelNames
entry
protected UpdateLoggingProfiling.LoggingConfigEntry entry
entries
protected java.util.List entries
UpdateLoggingProfiling
public UpdateLoggingProfiling()
doDefault
public java.lang.String doDefault()
- Overrides:
doDefault in class BaseAction
doUpdateLogging
public java.lang.String doUpdateLogging()
doUpdateProfiling
public java.lang.String doUpdateProfiling()
processLogging
protected void processLogging()
- Reads current state of logging and updates class fields to match.
updateLogging
protected boolean updateLogging()
- Updates the logging rules upon a "submit" of the UI form by the user.
- Returns:
- true if successful, false otherwise.
setLevelForLogger
protected void setLevelForLogger(java.lang.String className,
java.lang.String levelName)
processProfiling
protected void processProfiling()
- Updates the class profiling fields to reflect the current status of profiling.
updateProfiling
protected boolean updateProfiling()
getEntries
public java.util.List getEntries()
setEntries
public void setEntries(java.util.List entries)
setClassNames
public void setClassNames(java.lang.String[] classNames)
setLevelNames
public void setLevelNames(java.lang.String[] levelNames)
getProfileName
public java.lang.String getProfileName()
setProfileName
public void setProfileName(java.lang.String profileName)
isProfilingOn
public boolean isProfilingOn()
setProfilingOn
public void setProfilingOn(boolean profilingOn)
Copyright © 2010 Atlassian. All Rights Reserved.