SEBSERV-176 fixed

This commit is contained in:
anhefti 2021-03-11 13:05:24 +01:00
parent 736a686e2a
commit ed9ded57db
2 changed files with 14 additions and 5 deletions

View file

@ -224,9 +224,14 @@ public class SEBClientEvents implements TemplateComposer {
.publishIf(() -> writeGrant, table.hasAnyContent());
}
private PageAction getOpenDelete(final PageAction pageAction, final MultiValueMap<String, String> filterCriteria) {
private PageAction getOpenDelete(
final PageAction pageAction,
final MultiValueMap<String, String> filterCriteria) {
try {
final List<String> ids = this.restService.getBuilder(GetClientEventNames.class)
final List<String> ids = this.restService
.getBuilder(GetClientEventNames.class)
.withQueryParams(filterCriteria)
.call()
.getOrThrow()
@ -234,9 +239,10 @@ public class SEBClientEvents implements TemplateComposer {
.map(EntityName::getModelId)
.collect(Collectors.toList());
final PageAction deleteAction = pageAction.withAttribute(
PageContext.AttributeKeys.ENTITY_ID_LIST,
StringUtils.join(ids, Constants.COMMA))
final PageAction deleteAction = pageAction
.withAttribute(
PageContext.AttributeKeys.ENTITY_ID_LIST,
StringUtils.join(ids, Constants.COMMA))
.withAttribute(
PageContext.AttributeKeys.ENTITY_LIST_TYPE,
EntityType.CLIENT_EVENT.name());

View file

@ -92,6 +92,9 @@ public class ClientEventDAOImpl implements ClientEventDAO {
.and(
ClientConnectionRecordDynamicSqlSupport.examId,
isEqualToWhenPresent(filterMap.getClientEventExamId()))
.and(
ClientConnectionRecordDynamicSqlSupport.examUserSessionId,
SqlBuilder.isLikeWhenPresent(filterMap.getSQLWildcard(ClientConnection.FILTER_ATTR_SESSION_ID)))
.and(
ClientEventRecordDynamicSqlSupport.clientConnectionId,
isEqualToWhenPresent(filterMap.getClientEventConnectionId()))