use of com.evolveum.midpoint.web.page.admin.configuration.component.PageDebugDownloadBehaviour in project midpoint by Evolveum.
the class PageDebugList method initDownload.
private void initDownload(AjaxRequestTarget target, Class<? extends ObjectType> type, ObjectQuery query) {
List<PageDebugDownloadBehaviour> list = get(ID_MAIN_FORM).getBehaviors(PageDebugDownloadBehaviour.class);
PageDebugDownloadBehaviour downloadBehaviour = list.get(0);
downloadBehaviour.setType(type);
downloadBehaviour.setQuery(query);
downloadBehaviour.setUseZip(hasToZip());
downloadBehaviour.setShowAllItems(showAllItemsModel.getObject());
downloadBehaviour.initiate(target);
}
use of com.evolveum.midpoint.web.page.admin.configuration.component.PageDebugDownloadBehaviour in project midpoint by Evolveum.
the class PageDebugList method initLayout.
private void initLayout() {
Form<?> main = new MidpointForm<>(ID_MAIN_FORM);
add(main);
RepositoryObjectDataProvider<? extends ObjectType> provider = new RepositoryObjectDataProvider<>(this, (IModel) searchModel) {
private static final long serialVersionUID = 1L;
@Override
protected PageStorage getPageStorage() {
return getSessionStorage().getConfiguration();
}
};
create(provider);
PageDebugDownloadBehaviour ajaxDownloadBehavior = new PageDebugDownloadBehaviour();
main.add(ajaxDownloadBehavior);
}
Aggregations