Beispiel #1
0
 /**
  * Get all document sets and return them as model and view.
  *
  * @return the model and view
  */
 @RequestMapping(
     value = "/api/dc",
     produces = {"text/html"})
 public ModelAndView getAllDocumentSetsAsModelAndView() {
   Collection<DocumentSet> allDocumentSets = documentSetStore.findAllDocumentSets();
   return new ModelAndView(htmlViewName, htmlModelName, allDocumentSets);
 }
Beispiel #2
0
 /**
  * Get all document sets and put them in the body of the response.
  *
  * @return all available document sets
  */
 @RequestMapping(
     value = "/api/dc",
     produces = {"application/json", "application/xml"})
 @ResponseBody
 public Collection<DocumentSet> getAllDocumentSets() {
   return documentSetStore.findAllDocumentSets();
 }