Search in sources :

Example 1 with LoggingDto

use of com.evolveum.midpoint.web.page.admin.configuration.dto.LoggingDto in project midpoint by Evolveum.

the class LoggingConfigPanel method addClassLoggerPerformed.

private void addClassLoggerPerformed(AjaxRequestTarget target) {
    LoggingDto dto = getModel().getObject();
    ClassLogger logger = new ClassLogger(new ClassLoggerConfigurationType());
    logger.setEditing(true);
    dto.getLoggers().add(logger);
    TablePanel loggersTable = getLoggersTable();
    adjustLoggersTablePage(loggersTable, dto);
    target.add(getLoggersTable());
}
Also used : ClassLoggerConfigurationType(com.evolveum.midpoint.xml.ns._public.common.common_3.ClassLoggerConfigurationType) ClassLogger(com.evolveum.midpoint.web.page.admin.configuration.dto.ClassLogger) LoggingDto(com.evolveum.midpoint.web.page.admin.configuration.dto.LoggingDto) TablePanel(com.evolveum.midpoint.web.component.data.TablePanel)

Example 2 with LoggingDto

use of com.evolveum.midpoint.web.page.admin.configuration.dto.LoggingDto in project midpoint by Evolveum.

the class LoggingConfigPanel method addComponentLoggerPerformed.

private void addComponentLoggerPerformed(AjaxRequestTarget target) {
    LoggingDto dto = getModel().getObject();
    ComponentLogger logger = new ComponentLogger(new ClassLoggerConfigurationType());
    logger.setEditing(true);
    dto.getLoggers().add(logger);
    TablePanel loggersTable = getLoggersTable();
    adjustLoggersTablePage(loggersTable, dto);
    target.add(loggersTable);
}
Also used : ClassLoggerConfigurationType(com.evolveum.midpoint.xml.ns._public.common.common_3.ClassLoggerConfigurationType) LoggingDto(com.evolveum.midpoint.web.page.admin.configuration.dto.LoggingDto) ComponentLogger(com.evolveum.midpoint.web.page.admin.configuration.dto.ComponentLogger) TablePanel(com.evolveum.midpoint.web.component.data.TablePanel)

Example 3 with LoggingDto

use of com.evolveum.midpoint.web.page.admin.configuration.dto.LoggingDto in project midpoint by Evolveum.

the class LoggingConfigPanel method createAppendersListModel.

private IModel<List<String>> createAppendersListModel() {
    return new AbstractReadOnlyModel<List<String>>() {

        @Override
        public List<String> getObject() {
            List<String> list = new ArrayList<>();
            LoggingDto dto = getModel().getObject();
            for (AppenderConfiguration appender : dto.getAppenders()) {
                list.add(appender.getName());
            }
            return list;
        }
    };
}
Also used : AbstractReadOnlyModel(org.apache.wicket.model.AbstractReadOnlyModel) AppenderConfiguration(com.evolveum.midpoint.web.page.admin.configuration.dto.AppenderConfiguration) ArrayList(java.util.ArrayList) LoggingDto(com.evolveum.midpoint.web.page.admin.configuration.dto.LoggingDto)

Example 4 with LoggingDto

use of com.evolveum.midpoint.web.page.admin.configuration.dto.LoggingDto in project midpoint by Evolveum.

the class LoggingConfigPanel method addStandardLoggerPerformed.

private void addStandardLoggerPerformed(AjaxRequestTarget target) {
    LoggingDto dto = getModel().getObject();
    StandardLogger logger = new StandardLogger(new ClassLoggerConfigurationType());
    logger.setEditing(true);
    dto.getLoggers().add(logger);
    TablePanel loggersTable = getLoggersTable();
    adjustLoggersTablePage(loggersTable, dto);
    target.add(getLoggersTable());
}
Also used : StandardLogger(com.evolveum.midpoint.web.page.admin.configuration.dto.StandardLogger) ClassLoggerConfigurationType(com.evolveum.midpoint.xml.ns._public.common.common_3.ClassLoggerConfigurationType) LoggingDto(com.evolveum.midpoint.web.page.admin.configuration.dto.LoggingDto) TablePanel(com.evolveum.midpoint.web.component.data.TablePanel)

Example 5 with LoggingDto

use of com.evolveum.midpoint.web.page.admin.configuration.dto.LoggingDto in project midpoint by Evolveum.

the class LoggingConfigPanel method createNewLoggerAppendersListModel.

private IModel<List<String>> createNewLoggerAppendersListModel() {
    return new AbstractReadOnlyModel<List<String>>() {

        @Override
        public List<String> getObject() {
            List<String> list = new ArrayList<>();
            LoggingDto dto = getModel().getObject();
            for (AppenderConfiguration appender : dto.getAppenders()) {
                list.add(appender.getName());
            }
            return list;
        }
    };
}
Also used : AbstractReadOnlyModel(org.apache.wicket.model.AbstractReadOnlyModel) AppenderConfiguration(com.evolveum.midpoint.web.page.admin.configuration.dto.AppenderConfiguration) ArrayList(java.util.ArrayList) LoggingDto(com.evolveum.midpoint.web.page.admin.configuration.dto.LoggingDto)

Aggregations

LoggingDto (com.evolveum.midpoint.web.page.admin.configuration.dto.LoggingDto)7 TablePanel (com.evolveum.midpoint.web.component.data.TablePanel)3 AppenderConfiguration (com.evolveum.midpoint.web.page.admin.configuration.dto.AppenderConfiguration)3 ClassLoggerConfigurationType (com.evolveum.midpoint.xml.ns._public.common.common_3.ClassLoggerConfigurationType)3 FileAppenderConfigurationType (com.evolveum.midpoint.xml.ns._public.common.common_3.FileAppenderConfigurationType)2 ArrayList (java.util.ArrayList)2 AbstractReadOnlyModel (org.apache.wicket.model.AbstractReadOnlyModel)2 ClassLogger (com.evolveum.midpoint.web.page.admin.configuration.dto.ClassLogger)1 ComponentLogger (com.evolveum.midpoint.web.page.admin.configuration.dto.ComponentLogger)1 FileAppenderConfig (com.evolveum.midpoint.web.page.admin.configuration.dto.FileAppenderConfig)1 StandardLogger (com.evolveum.midpoint.web.page.admin.configuration.dto.StandardLogger)1 AppenderConfigurationType (com.evolveum.midpoint.xml.ns._public.common.common_3.AppenderConfigurationType)1