// Start of Migration Processes Visualization
public ActionForward viewMigratedProcesses(ActionMapping mapping, ActionForm form, HttpServletRequest request,
HttpServletResponse response) {
SearchPhdMigrationProcessBean searchBean =
(SearchPhdMigrationProcessBean) getObjectFromViewState("searchMigrationProcessBean");
if (searchBean == null) {
searchBean = initializeMigrationSearchBean(request);
}
AndPredicate<PhdMigrationIndividualProcessData> predicate = searchBean.getPredicates();
predicate.add(new Predicate<PhdMigrationIndividualProcessData>() {
@Override
public boolean eval(PhdMigrationIndividualProcessData process) {
return AcademicAccessRule
.getPhdProgramsAccessibleToFunction(AcademicOperationType.MANAGE_PHD_PROCESSES, Authenticate.getUser())
.collect(Collectors.toSet()).contains(process.getProcessBean().getPhdProgram());
}
});
request.setAttribute("searchMigrationProcessBean", searchBean);
request.setAttribute("migrationProcesses",
PhdIndividualProgramProcess.searchMigrationProcesses(searchBean.getExecutionYear(), predicate));
return mapping.findForward("viewAllMigratedProcesses");
}