Search in sources :

Example 1 with PageDebugDownloadBehaviour

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);
}
Also used : PageDebugDownloadBehaviour(com.evolveum.midpoint.web.page.admin.configuration.component.PageDebugDownloadBehaviour)

Example 2 with PageDebugDownloadBehaviour

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);
}
Also used : RepositoryObjectDataProvider(com.evolveum.midpoint.web.component.data.RepositoryObjectDataProvider) PageDebugDownloadBehaviour(com.evolveum.midpoint.web.page.admin.configuration.component.PageDebugDownloadBehaviour) MidpointForm(com.evolveum.midpoint.web.component.form.MidpointForm)

Aggregations

PageDebugDownloadBehaviour (com.evolveum.midpoint.web.page.admin.configuration.component.PageDebugDownloadBehaviour)2 RepositoryObjectDataProvider (com.evolveum.midpoint.web.component.data.RepositoryObjectDataProvider)1 MidpointForm (com.evolveum.midpoint.web.component.form.MidpointForm)1