SEBSERV-176 fixed
This commit is contained in:
parent
736a686e2a
commit
ed9ded57db
2 changed files with 14 additions and 5 deletions
|
@ -224,9 +224,14 @@ public class SEBClientEvents implements TemplateComposer {
|
||||||
.publishIf(() -> writeGrant, table.hasAnyContent());
|
.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 {
|
try {
|
||||||
final List<String> ids = this.restService.getBuilder(GetClientEventNames.class)
|
|
||||||
|
final List<String> ids = this.restService
|
||||||
|
.getBuilder(GetClientEventNames.class)
|
||||||
.withQueryParams(filterCriteria)
|
.withQueryParams(filterCriteria)
|
||||||
.call()
|
.call()
|
||||||
.getOrThrow()
|
.getOrThrow()
|
||||||
|
@ -234,9 +239,10 @@ public class SEBClientEvents implements TemplateComposer {
|
||||||
.map(EntityName::getModelId)
|
.map(EntityName::getModelId)
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
|
|
||||||
final PageAction deleteAction = pageAction.withAttribute(
|
final PageAction deleteAction = pageAction
|
||||||
PageContext.AttributeKeys.ENTITY_ID_LIST,
|
.withAttribute(
|
||||||
StringUtils.join(ids, Constants.COMMA))
|
PageContext.AttributeKeys.ENTITY_ID_LIST,
|
||||||
|
StringUtils.join(ids, Constants.COMMA))
|
||||||
.withAttribute(
|
.withAttribute(
|
||||||
PageContext.AttributeKeys.ENTITY_LIST_TYPE,
|
PageContext.AttributeKeys.ENTITY_LIST_TYPE,
|
||||||
EntityType.CLIENT_EVENT.name());
|
EntityType.CLIENT_EVENT.name());
|
||||||
|
|
|
@ -92,6 +92,9 @@ public class ClientEventDAOImpl implements ClientEventDAO {
|
||||||
.and(
|
.and(
|
||||||
ClientConnectionRecordDynamicSqlSupport.examId,
|
ClientConnectionRecordDynamicSqlSupport.examId,
|
||||||
isEqualToWhenPresent(filterMap.getClientEventExamId()))
|
isEqualToWhenPresent(filterMap.getClientEventExamId()))
|
||||||
|
.and(
|
||||||
|
ClientConnectionRecordDynamicSqlSupport.examUserSessionId,
|
||||||
|
SqlBuilder.isLikeWhenPresent(filterMap.getSQLWildcard(ClientConnection.FILTER_ATTR_SESSION_ID)))
|
||||||
.and(
|
.and(
|
||||||
ClientEventRecordDynamicSqlSupport.clientConnectionId,
|
ClientEventRecordDynamicSqlSupport.clientConnectionId,
|
||||||
isEqualToWhenPresent(filterMap.getClientEventConnectionId()))
|
isEqualToWhenPresent(filterMap.getClientEventConnectionId()))
|
||||||
|
|
Loading…
Reference in a new issue