Search in sources :

Example 1 with AssignmentListProvider

use of com.evolveum.midpoint.web.component.util.AssignmentListProvider in project midpoint by Evolveum.

the class AbstractAssignmentTypePanel method createAssignmentProvider.

private AssignmentListProvider createAssignmentProvider(IModel<Search<AssignmentType>> searchModel, IModel<List<PrismContainerValueWrapper<AssignmentType>>> assignments) {
    AssignmentListProvider assignmentListProvider = new AssignmentListProvider(AbstractAssignmentTypePanel.this, searchModel, assignments) {

        @Override
        protected PageStorage getPageStorage() {
            return AbstractAssignmentTypePanel.this.getPageStorage();
        }

        @Override
        protected List<PrismContainerValueWrapper<AssignmentType>> postFilter(List<PrismContainerValueWrapper<AssignmentType>> assignmentList) {
            return customPostSearch(assignmentList);
        }

        @Override
        protected ObjectQuery getCustomizeContentQuery() {
            return AbstractAssignmentTypePanel.this.getCustomizeQuery();
        }
    };
    assignmentListProvider.setCompiledObjectCollectionView(getObjectCollectionView());
    return assignmentListProvider;
}
Also used : List(java.util.List) ArrayList(java.util.ArrayList) AssignmentListProvider(com.evolveum.midpoint.web.component.util.AssignmentListProvider) PrismContainerValueWrapper(com.evolveum.midpoint.gui.api.prism.wrapper.PrismContainerValueWrapper)

Aggregations

PrismContainerValueWrapper (com.evolveum.midpoint.gui.api.prism.wrapper.PrismContainerValueWrapper)1 AssignmentListProvider (com.evolveum.midpoint.web.component.util.AssignmentListProvider)1 ArrayList (java.util.ArrayList)1 List (java.util.List)1