Search in sources :

Example 1 with ProfilingDto

use of com.evolveum.midpoint.web.page.admin.configuration.dto.ProfilingDto 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;
        }
    };
}
Also used : AbstractReadOnlyModel(org.apache.wicket.model.AbstractReadOnlyModel) AppenderConfiguration(com.evolveum.midpoint.web.page.admin.configuration.dto.AppenderConfiguration) ProfilingDto(com.evolveum.midpoint.web.page.admin.configuration.dto.ProfilingDto) ArrayList(java.util.ArrayList)

Aggregations

AppenderConfiguration (com.evolveum.midpoint.web.page.admin.configuration.dto.AppenderConfiguration)1 ProfilingDto (com.evolveum.midpoint.web.page.admin.configuration.dto.ProfilingDto)1 ArrayList (java.util.ArrayList)1 AbstractReadOnlyModel (org.apache.wicket.model.AbstractReadOnlyModel)1