Package de.xima.fc.gui.bean.settings
Class LoggerConfigBean
-
- All Implemented Interfaces:
Serializable
@Named @ViewScoped public class LoggerConfigBean extends FCContextBean
Bean for configuring loggers & appenders- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.xima.fc.gui.common.utils.msg.AJSFContext
AJSFContext.RedirectOptions, AJSFContext.RedirectOptionsBuilder
-
-
Field Summary
-
Fields inherited from class de.xima.fc.gui.bean.FCContextBean
systemUC
-
Fields inherited from class de.xima.fc.gui.common.utils.msg.AJSFContext
localeBean
-
-
Constructor Summary
Constructors Constructor Description LoggerConfigBean()
-
Method Summary
-
Methods inherited from class de.xima.fc.gui.bean.FCContextBean
getNavigationBean, getSessionBean, isSetupUser, redirectToDashboard, setNavigationBean, setSessionBean, switchMainView, switchMainView, switchSubView, switchSubView
-
Methods inherited from class de.xima.fc.gui.bean.ABackendJSFContext
ec, findEntityContext, isDetached, isHasDB
-
Methods inherited from class de.xima.fc.gui.common.utils.msg.AJSFContext
destroySessionBean, encodeURL, findBean, findBean, findBean, findBean, findBean, findBean, findBean, findCurrentView, findUserContext, getBeanName, getBeanName, getContext, getCurrentViewBean, getLocaleBean, getRequest, getResponse, getSession, getSession, getSessionAttribute, isMasterServerContext, loadLazy, redirect, redirect, redirect, redirect, redirectToDashboard, redirectToDashboard, redirectToDashboard, setLocaleBean, setSessionAttribute, uc
-
Methods inherited from class de.xima.fc.gui.common.utils.msg.MessageUtils
addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsgFromString, addErrorMsgFromString, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addInfoMsg, addInfoMsg, addInfoMsg, addInfoMsg, addInfoMsgFromString, addInfoMsgFromString, addInfoMsgToComponent, addInfoMsgToComponent, addInfoMsgToComponent, addInfoMsgToComponent, addMsg, addMsg, addMsg, addMsg, addMsgs, addMsgs, addMsgToComponent, addMsgToComponent, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsgFromString, addWarnMsgFromString, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, cleanErrorMsg, errorMsg, errorMsg, getErrorMessage, getNewErrorMsg, getNewErrorMsg, getNewErrorMsg, getNewInfoMsg, getNewInfoMsg, getNewMsg, getNewWarnMsg, getNewWarnMsg, msg
-
-
-
-
Method Detail
-
init
@PostConstruct public void init()
-
getConfig
public XLogConfig getConfig()
-
isAnyAppenderModified
public boolean isAnyAppenderModified()
-
isAnyLoggerModified
public boolean isAnyLoggerModified()
-
isAppenderSelectionDisabled
public boolean isAppenderSelectionDisabled(ILogger logger, String appenderName)
-
isNewLogger
public boolean isNewLogger()
-
isFileAppender
public boolean isFileAppender(IAppender appender)
-
downloadLogFile
public org.primefaces.model.StreamedContent downloadLogFile() throws javax.faces.event.AbortProcessingException
- Throws:
javax.faces.event.AbortProcessingException
-
isNewAppender
public boolean isNewAppender()
-
isLoggerEditMode
public boolean isLoggerEditMode()
-
setLoggerEditMode
public void setLoggerEditMode(boolean loggerEditMode)
-
isAppenderEditMode
public boolean isAppenderEditMode()
-
setAppenderEditMode
public void setAppenderEditMode(boolean appenderEditMode)
-
getSelectedAppender
public IAppender getSelectedAppender()
-
selectAppender
public void selectAppender(IAppender selectedAppender)
-
unselectAppender
public void unselectAppender()
-
getSelectedLogger
public ILogger getSelectedLogger()
-
selectLogger
public void selectLogger(ILogger selectedLogger)
-
unselectLogger
public void unselectLogger()
-
createNewLogger
public void createNewLogger()
-
createNewAppender
public void createNewAppender(EAppenderType type)
-
saveLoggers
public void saveLoggers()
-
saveLogger
public void saveLogger(ILogger logger)
Updates an existingILogger
- Parameters:
logger
-ILogger
-
removeLogger
public void removeLogger(ILogger logger)
Removes the given logger from the properties configuration- Parameters:
logger
-ILogger
to be removed
-
saveAppenders
public void saveAppenders()
-
saveAppender
public void saveAppender(IAppender appender)
-
removeAppender
public void removeAppender(IAppender appender)
-
-