Advertisement
Guest User

Untitled

a guest
Sep 17th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. ...
  2.  
  3. @ControllerLogging
  4. @GetMapping(value = CONTENTS_URL_PREFIX + "/{contentId}",
  5. produces = {MediaTypes.HAL_JSON_VALUE, MediaType.APPLICATION_XML_VALUE})
  6. public ResponseEntity<Content> getContentMetadata(//@PathVariable final UUID contentId,
  7. @PathVariable("contentId") final Node node,
  8. @RequestAttribute final Production production) {
  9. log.trace("Getting content {} metadata", node.getName());
  10. try {
  11. final Content contentMetadata = contentService.getContentMetadata(node, production).getWimContent();
  12. return ResponseEntity.ok(contentMetadata);
  13. } catch (Exception ex) {
  14. log.error("Cannot get content {} metadata", node.getName(), ex);
  15. throw ex;
  16. }
  17. }
  18.  
  19. ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement