use of com.evolveum.midpoint.web.page.error.PageError in project midpoint by Evolveum.
the class PageAttorneySelection method getAttorneySelectionQuery.
private ObjectQuery getAttorneySelectionQuery() {
ModelInteractionService service = getModelInteractionService();
Task task = createSimpleTask(OPERATION_GET_DONOR_FILTER);
try {
ObjectQuery query = PageAttorneySelection.this.getPrismContext().queryFactory().createQuery();
// todo target authorization action
ObjectFilter filter = service.getDonorFilter(UserType.class, null, null, task, task.getResult());
query.addFilter(filter);
return query;
} catch (CommonException ex) {
LOGGER.error("Couldn't get donor filter, reason: {}", ex.getMessage());
LOGGER.debug("Couldn't get donor filter", ex);
PageError error = new PageError(ex);
throw new RestartResponseException(error);
}
}
Aggregations