use of com.evolveum.midpoint.web.component.data.ObjectDataProvider in project midpoint by Evolveum.
the class ObjectSelectionPanel method updateTableByTypePerformed.
public void updateTableByTypePerformed(AjaxRequestTarget target, Class<? extends ObjectType> newType) {
this.objectType = newType;
TablePanel table = getTablePanel();
DataTable dataTable = table.getDataTable();
ObjectDataProvider provider = (ObjectDataProvider) dataTable.getDataProvider();
provider.setType(objectType);
target.add(this, WebComponentUtil.getPageBase(this).getFeedbackPanel(), table);
}
use of com.evolveum.midpoint.web.component.data.ObjectDataProvider in project midpoint by Evolveum.
the class ResourceListPanel method initLayout.
protected void initLayout() {
TablePanel resources = new TablePanel("table", new ObjectDataProvider((PageBase) getPage(), ResourceType.class), initColumns());
resources.setOutputMarkupId(true);
add(resources);
}
use of com.evolveum.midpoint.web.component.data.ObjectDataProvider in project midpoint by Evolveum.
the class MultipleAssignmentSelector method applyQueryToListProvider.
private List<AssignmentEditorDto> applyQueryToListProvider(ObjectQuery query, List<AssignmentEditorDto> providerList) {
ObjectDataProvider temporaryProvider = new ObjectDataProvider(MultipleAssignmentSelector.this, type);
List<AssignmentEditorDto> displayAssignmentsList = new ArrayList<>();
temporaryProvider.setQuery(query);
Iterator it = temporaryProvider.internalIterator(0, temporaryProvider.size());
List<SelectableBean<F>> providerDataList = IteratorUtils.toList(it);
for (AssignmentEditorDto dto : providerList) {
for (SelectableBean<F> providerDataDto : providerDataList) {
F object = providerDataDto.getValue();
if (object != null && object.getOid().equals(dto.getTargetRef().getOid())) {
displayAssignmentsList.add(dto);
break;
}
}
}
return displayAssignmentsList;
}
use of com.evolveum.midpoint.web.component.data.ObjectDataProvider in project midpoint by Evolveum.
the class PageConnectorHosts method searchHostPerformed.
private void searchHostPerformed(ObjectQuery query, AjaxRequestTarget target) {
target.add(getFeedbackPanel());
Table panel = getConnectorHostTable();
DataTable table = panel.getDataTable();
ObjectDataProvider provider = (ObjectDataProvider) table.getDataProvider();
provider.setQuery(query);
provider.setOptions(SelectorOptions.createCollection(GetOperationOptions.createNoFetch()));
target.add((Component) panel);
}
use of com.evolveum.midpoint.web.component.data.ObjectDataProvider in project midpoint by Evolveum.
the class PageAccounts method listSyncDetailsPerformed.
private void listSyncDetailsPerformed(AjaxRequestTarget target) {
refreshSyncTotalsModels();
if (resourceModel.getObject() == null) {
warn(getString("pageAccounts.message.resourceNotSelected"));
refreshEverything(target);
return;
}
loadResourceObjectClass();
TablePanel table = getAccountsTable();
ObjectDataProvider provider = (ObjectDataProvider) table.getDataTable().getDataProvider();
provider.setQuery(createObjectQuery());
table.getDataTable().setCurrentPage(0);
refreshEverything(target);
}
Aggregations