Search in sources :

Example 1 with PageTasks

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

the class ResourceContentPanel method redirectToTasksListPage.

private void redirectToTasksListPage(ObjectQuery tasksQuery, String archetypeOid) {
    String taskCollectionViewName = getTaskCollectionViewNameByArchetypeOid(archetypeOid);
    PageParameters pageParameters = new PageParameters();
    if (StringUtils.isNotEmpty(taskCollectionViewName)) {
        pageParameters.add(PageBase.PARAMETER_OBJECT_COLLECTION_NAME, taskCollectionViewName);
        PageTasks pageTasks = new PageTasks(tasksQuery, pageParameters);
        getPageBase().setResponsePage(pageTasks);
    } else {
        PageTasks pageTasks = new PageTasks(tasksQuery, pageParameters);
        getPageBase().setResponsePage(pageTasks);
    }
}
Also used : PageTasks(com.evolveum.midpoint.web.page.admin.server.PageTasks) PageParameters(org.apache.wicket.request.mapper.parameter.PageParameters)

Aggregations

PageTasks (com.evolveum.midpoint.web.page.admin.server.PageTasks)1 PageParameters (org.apache.wicket.request.mapper.parameter.PageParameters)1