use of com.evolveum.midpoint.web.page.admin.configuration.dto.AppenderConfiguration in project midpoint by Evolveum.
the class ProfilingConfigPanel method createAppendersListModel.
private IModel<List<String>> createAppendersListModel() {
return new AbstractReadOnlyModel<List<String>>() {
@Override
public List<String> getObject() {
List<String> list = new ArrayList<>();
ProfilingDto dto = getModel().getObject();
for (AppenderConfiguration appender : dto.getAppenders()) {
list.add(appender.getName());
}
return list;
}
};
}
use of com.evolveum.midpoint.web.page.admin.configuration.dto.AppenderConfiguration in project midpoint by Evolveum.
the class LoggingConfigPanel method appenderEditPerformed.
private void appenderEditPerformed(AjaxRequestTarget target, IModel<AppenderConfiguration> model) {
AppenderConfiguration config = model.getObject();
config.setEditing(true);
target.add(getAppendersTable());
}
use of com.evolveum.midpoint.web.page.admin.configuration.dto.AppenderConfiguration in project midpoint by Evolveum.
the class LoggingConfigPanel method initAppenders.
private void initAppenders() {
ISortableDataProvider<AppenderConfiguration, String> provider = new ListDataProvider<>(this, new PropertyModel<List<AppenderConfiguration>>(getModel(), LoggingDto.F_APPENDERS));
TablePanel table = new TablePanel<>(ID_TABLE_APPENDERS, provider, initAppenderColumns());
table.setOutputMarkupId(true);
table.setShowPaging(false);
add(table);
AjaxButton addConsoleAppender = new AjaxButton(ID_BUTTON_ADD_CONSOLE_APPENDER, createStringResource("LoggingConfigPanel.button.addConsoleAppender")) {
@Override
public void onClick(AjaxRequestTarget target) {
addConsoleAppenderPerformed(target);
}
};
add(addConsoleAppender);
AjaxButton addFileAppender = new AjaxButton(ID_BUTTON_ADD_FILE_APPENDER, createStringResource("LoggingConfigPanel.button.addFileAppender")) {
@Override
public void onClick(AjaxRequestTarget target) {
addFileAppenderPerformed(target);
}
};
add(addFileAppender);
AjaxButton deleteAppender = new AjaxButton(ID_BUTTON_DELETE_APPENDER, createStringResource("LoggingConfigPanel.button.deleteAppender")) {
@Override
public void onClick(AjaxRequestTarget target) {
deleteAppenderPerformed(target);
}
};
add(deleteAppender);
}
use of com.evolveum.midpoint.web.page.admin.configuration.dto.AppenderConfiguration 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.AppenderConfiguration 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