use of com.evolveum.midpoint.web.component.data.column.GenericColumn in project midpoint by Evolveum.
the class ProcessInstancesPanel method createNameColumn.
@NotNull
private IColumn<ProcessInstanceDto, String> createNameColumn() {
if (WebComponentUtil.isAuthorized(AuthorizationConstants.AUTZ_UI_TASKS_ALL_URL, AuthorizationConstants.AUTZ_UI_TASK_URL)) {
return new AjaxLinkColumn<ProcessInstanceDto>(createStringResource("MyRequestsPanel.name"), "name") {
@Override
protected IModel createLinkModel(IModel<ProcessInstanceDto> rowModel) {
return createProcessNameModel(rowModel);
}
@Override
public void onClick(AjaxRequestTarget target, IModel<ProcessInstanceDto> rowModel) {
ProcessInstanceDto piDto = rowModel.getObject();
itemDetailsPerformed(target, piDto.getTaskOid());
}
};
} else {
return new GenericColumn<>(createStringResource("MyRequestsPanel.name"), rowModel -> createProcessNameModel(rowModel));
}
}
Aggregations