From 10923d4d48d4d0ca7db0bd0ad974aa98ff62facb Mon Sep 17 00:00:00 2001 From: amentis Date: Wed, 29 Nov 2023 16:06:40 +0200 Subject: [PATCH] add ordinal in Language Entity --- .../controllers/v2/LanguageV2Controller.java | 23 ------------------- 1 file changed, 23 deletions(-) diff --git a/dmp-backend/web/src/main/java/eu/eudat/controllers/v2/LanguageV2Controller.java b/dmp-backend/web/src/main/java/eu/eudat/controllers/v2/LanguageV2Controller.java index 3167282f2..ca361c401 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/controllers/v2/LanguageV2Controller.java +++ b/dmp-backend/web/src/main/java/eu/eudat/controllers/v2/LanguageV2Controller.java @@ -127,29 +127,6 @@ public class LanguageV2Controller { return model; } -// @GetMapping("get-payload/code/{code}") -// public ResponseEntity getPayload(@PathVariable("code") String code, FieldSet fieldSet) throws MyApplicationException, MyForbiddenException, MyNotFoundException, IOException { -// logger.debug(new MapLogEntry("retrieving" + Language.class.getSimpleName()).And("code", code).And("fields", fieldSet)); -// -// this.censorFactory.censor(LanguageCensor.class).censor(fieldSet, null); -// -// LanguageQuery query = this.queryFactory.query(LanguageQuery.class).authorize(AuthorizationFlags.OwnerOrDmpAssociatedOrPermissionOrPublic).codes(code); -// Language model = this.builderFactory.builder(LanguageBuilder.class).authorize(AuthorizationFlags.OwnerOrDmpAssociatedOrPermissionOrPublic).build(fieldSet, query.firstAs(fieldSet)); -// -// if (model == null) -// throw new MyNotFoundException(messageSource.getMessage("General_ItemNotFound", new Object[]{code, Language.class.getSimpleName()}, LocaleContextHolder.getLocale())); -// -// if (model.getPayload() == null){ -// model.setPayload(this.languageService.getPayload(code)); -// } -// this.auditService.track(AuditableAction.Language_Lookup, Map.ofEntries( -// new AbstractMap.SimpleEntry("code", code), -// new AbstractMap.SimpleEntry("fields", fieldSet) -// )); -// -// return new ResponseEntity<>(model.getPayload().getBytes(), HttpStatus.OK); -// } - @PostMapping("available-languages") public QueryResult queryLanguageCodes(@RequestBody LanguageLookup lookup) { logger.debug("querying {}", Language.class.getSimpleName());