Class ConfigureLoggingAction

java.lang.Object
com.opensymphony.xwork2.ActionSupport
All Implemented Interfaces:
WebInterface, MessageHolderAware, com.opensymphony.xwork2.Action, com.opensymphony.xwork2.interceptor.ValidationAware, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, Serializable

public class ConfigureLoggingAction extends ConfluenceActionSupport
Since:
7.16
See Also:
  • Constructor Details

    • ConfigureLoggingAction

      public ConfigureLoggingAction()
  • Method Details

    • execute

      public String execute() throws Exception
      Specified by:
      execute in interface com.opensymphony.xwork2.Action
      Overrides:
      execute in class com.opensymphony.xwork2.ActionSupport
      Throws:
      Exception
    • changeProfiling

      public String changeProfiling() throws Exception
      Throws:
      Exception
    • getNodeId

      public String getNodeId()
    • setClusterManager

      public void setClusterManager(ClusterManager clusterManager)
    • setNodeId

      public void setNodeId(String nodeId)
    • setToDeleteName

      public void setToDeleteName(String toDeleteName)
    • setProfilingOn

      public void setProfilingOn(boolean buttonValue)
    • getLevelTypes

      public List<String> getLevelTypes()
    • delete

      public String delete() throws Exception
      Throws:
      Exception
    • save

      public String save() throws Exception
      Throws:
      Exception
    • add

      public String add() throws Exception
      Add a new entry to the Log4j Configuration.
      Returns:
      action result
      Throws:
      Exception
    • getEntries

      public List getEntries()
    • setClassNames

      public void setClassNames(String[] classNames)
    • setLevelNames

      public void setLevelNames(String[] levelNames)
    • setExtraClassName

      public void setExtraClassName(String extraClassName)
    • setExtraLevelName

      public void setExtraLevelName(String extraLevelName)
    • turnOnHibernateLogging

      public String turnOnHibernateLogging() throws Exception
      Turns on Hibernate Logging (both SQL queries and the parameters will now be output)
      Returns:
      action result
      Throws:
      Exception
    • turnOffHibernateLogging

      public String turnOffHibernateLogging() throws Exception
      Turns off Hibernate Logging (SQL queries will not be output)
      Returns:
      action result
      Throws:
      Exception
    • isHibernateLoggingEnabled

      public boolean isHibernateLoggingEnabled()
    • setProfileName

      public void setProfileName(String profileName)
    • changeProfile

      public String changeProfile()
    • isProfilingEnabled

      public boolean isProfilingEnabled()
    • isDiagnosticEnabled

      public boolean isDiagnosticEnabled()
    • isPermitted

      public boolean isPermitted()
      Description copied from class: ConfluenceActionSupport
      Overrides:
      isPermitted in class ConfluenceActionSupport
    • getCurrentNode

      public ClusterNodeInformation getCurrentNode()
    • getOtherNodes

      public List<ClusterNodeInformation> getOtherNodes() throws Exception
      Throws:
      Exception
    • nodeUri

      public String nodeUri(String url, String nodeId)
    • nodeUri

      public String nodeUri(String url)
    • getHtmlEncodedClassName

      public String getHtmlEncodedClassName(String className)