Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ...
- @ControllerLogging
- @GetMapping(value = CONTENTS_URL_PREFIX + "/{contentId}",
- produces = {MediaTypes.HAL_JSON_VALUE, MediaType.APPLICATION_XML_VALUE})
- public ResponseEntity<Content> getContentMetadata(//@PathVariable final UUID contentId,
- @PathVariable("contentId") final Node node,
- @RequestAttribute final Production production) {
- log.trace("Getting content {} metadata", node.getName());
- try {
- final Content contentMetadata = contentService.getContentMetadata(node, production).getWimContent();
- return ResponseEntity.ok(contentMetadata);
- } catch (Exception ex) {
- log.error("Cannot get content {} metadata", node.getName(), ex);
- throw ex;
- }
- }
- ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement