Search in sources :

Example 1 with TaskErrorDto

use of com.evolveum.midpoint.web.page.admin.server.dto.TaskErrorDto in project midpoint by Evolveum.

the class TaskErrorsTabPanel method initLayout.

private void initLayout(final IModel<TaskDto> taskDtoModel, PageBase pageBase) {
    ObjectDataProvider<TaskErrorDto, ObjectType> provider = new ObjectDataProvider<TaskErrorDto, ObjectType>(TaskErrorsTabPanel.this, ObjectType.class) {

        private static final long serialVersionUID = 1L;

        @Override
        public TaskErrorDto createDataObjectWrapper(PrismObject<ObjectType> obj) {
            return convertToTaskErrorDto(obj.asObjectable(), taskDtoModel);
        }

        @Override
        public void setQuery(ObjectQuery query) {
            super.setQuery(query);
        }

        @Override
        public ObjectQuery getQuery() {
            return createContentQuery(taskDtoModel.getObject().getOid(), pageBase);
        }
    };
    TablePanel resultTablePanel = new TablePanel<>(ID_TASK_ERRORS, provider, initColumns());
    resultTablePanel.setStyle("padding-top: 0px;");
    resultTablePanel.setShowPaging(false);
    resultTablePanel.setOutputMarkupId(true);
    add(resultTablePanel);
}
Also used : PrismObject(com.evolveum.midpoint.prism.PrismObject) TaskErrorDto(com.evolveum.midpoint.web.page.admin.server.dto.TaskErrorDto) ObjectDataProvider(com.evolveum.midpoint.web.component.data.ObjectDataProvider) ObjectQuery(com.evolveum.midpoint.prism.query.ObjectQuery) TablePanel(com.evolveum.midpoint.web.component.data.TablePanel)

Aggregations

PrismObject (com.evolveum.midpoint.prism.PrismObject)1 ObjectQuery (com.evolveum.midpoint.prism.query.ObjectQuery)1 ObjectDataProvider (com.evolveum.midpoint.web.component.data.ObjectDataProvider)1 TablePanel (com.evolveum.midpoint.web.component.data.TablePanel)1 TaskErrorDto (com.evolveum.midpoint.web.page.admin.server.dto.TaskErrorDto)1