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());
}
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);
}
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;
}
};
}
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());
}
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;
}
};
}
Aggregations