Class PublicationController


  • @RestController
    @RequestMapping("/publication")
    public class PublicationController
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Publication create​(Publication instance)  
      void delete​(java.util.UUID id)  
      Publication get​(java.util.UUID id)  
      org.springframework.http.HttpEntity<org.springframework.hateoas.PagedResources<Publication>> getAll​(org.springframework.data.domain.Pageable pageable, org.springframework.data.web.PagedResourcesAssembler assembler)  
      org.springframework.http.HttpEntity<org.springframework.hateoas.PagedResources<PublicationJson>> getBy​(java.lang.String name, java.lang.String purpose, java.lang.String publicationStatus, java.lang.String publishedKind, org.springframework.data.domain.Pageable pageable, org.springframework.data.web.PagedResourcesAssembler assembler)  
      ElementRef getDetail​(ElementRef instance)  
      byte[] getPdf​(java.util.UUID id)  
      java.lang.String getXml​(java.util.UUID id)  
      Publication update​(Publication instance)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PublicationController

        @Autowired
        public PublicationController​(PublicationService service)
    • Method Detail

      • get

        @ResponseStatus(OK)
        @RequestMapping(value="/{id}",
                        method=GET)
        public Publication get​(@PathVariable("id")
                               java.util.UUID id)
      • getDetail

        @ResponseStatus(OK)
        @RequestMapping(value="/element/",
                        method=POST)
        public ElementRef getDetail​(@RequestBody
                                    ElementRef instance)
      • update

        @ResponseStatus(OK)
        @RequestMapping(value="",
                        method=POST)
        public Publication update​(@RequestBody
                                  Publication instance)
      • create

        @ResponseStatus(CREATED)
        @RequestMapping(value="/create",
                        method=POST)
        public Publication create​(@RequestBody
                                  Publication instance)
      • delete

        @ResponseStatus(OK)
        @RequestMapping(value="/delete/{id}",
                        method=DELETE)
        public void delete​(@PathVariable("id")
                           java.util.UUID id)
      • getAll

        @RequestMapping(value="/page",
                        method=GET,
                        produces="application/json")
        public org.springframework.http.HttpEntity<org.springframework.hateoas.PagedResources<Publication>> getAll​(org.springframework.data.domain.Pageable pageable,
                                                                                                                   org.springframework.data.web.PagedResourcesAssembler assembler)
      • getBy

        @RequestMapping(value="/page/search",
                        method=GET,
                        produces="application/json")
        public org.springframework.http.HttpEntity<org.springframework.hateoas.PagedResources<PublicationJson>> getBy​(@RequestParam(value="name",defaultValue="")
                                                                                                                      java.lang.String name,
                                                                                                                      @RequestParam(value="purpose",defaultValue="")
                                                                                                                      java.lang.String purpose,
                                                                                                                      @RequestParam(value="publicationStatus",defaultValue="")
                                                                                                                      java.lang.String publicationStatus,
                                                                                                                      @RequestParam("publishedKind")
                                                                                                                      java.lang.String publishedKind,
                                                                                                                      org.springframework.data.domain.Pageable pageable,
                                                                                                                      org.springframework.data.web.PagedResourcesAssembler assembler)
      • getPdf

        @ResponseBody
        @RequestMapping(value="/pdf/{id}",
                        method=GET,
                        produces="application/pdf")
        public byte[] getPdf​(@PathVariable("id")
                             java.util.UUID id)
      • getXml

        @ResponseStatus(OK)
        @RequestMapping(value="/xml/{id}",
                        method=GET)
        public java.lang.String getXml​(@PathVariable("id")
                                       java.util.UUID id)