Search in sources :

Example 1 with IEntityModelDictionary

use of org.entando.entando.aps.system.services.dataobjectmodel.model.IEntityModelDictionary in project entando-core by entando.

the class DataObjectModelController method getDictionary.

@RestAccessControl(permission = Permission.SUPERUSER)
@RequestMapping(value = "/dictionary", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
public ResponseEntity<SimpleRestResponse<IEntityModelDictionary>> getDictionary(@RequestParam(value = "typeCode", required = false) String typeCode) {
    logger.debug("loading data model dictionary {}", typeCode);
    IEntityModelDictionary dictionary = this.getDataObjectModelService().getDataModelDictionary(typeCode);
    return new ResponseEntity<>(new SimpleRestResponse<>(dictionary), HttpStatus.OK);
}
Also used : ResponseEntity(org.springframework.http.ResponseEntity) IEntityModelDictionary(org.entando.entando.aps.system.services.dataobjectmodel.model.IEntityModelDictionary) RestAccessControl(org.entando.entando.web.common.annotation.RestAccessControl) RequestMapping(org.springframework.web.bind.annotation.RequestMapping)

Aggregations

IEntityModelDictionary (org.entando.entando.aps.system.services.dataobjectmodel.model.IEntityModelDictionary)1 RestAccessControl (org.entando.entando.web.common.annotation.RestAccessControl)1 ResponseEntity (org.springframework.http.ResponseEntity)1 RequestMapping (org.springframework.web.bind.annotation.RequestMapping)1