add ordinal in Language Entity
This commit is contained in:
parent
cabb35cf19
commit
10923d4d48
|
@ -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<String, Object>("code", code),
|
||||
// new AbstractMap.SimpleEntry<String, Object>("fields", fieldSet)
|
||||
// ));
|
||||
//
|
||||
// return new ResponseEntity<>(model.getPayload().getBytes(), HttpStatus.OK);
|
||||
// }
|
||||
|
||||
@PostMapping("available-languages")
|
||||
public QueryResult<String> queryLanguageCodes(@RequestBody LanguageLookup lookup) {
|
||||
logger.debug("querying {}", Language.class.getSimpleName());
|
||||
|
|
Loading…
Reference in New Issue