Class ElasticController


  • @RestController
    @RequestMapping("/api/elastic")
    @ConditionalOnProperty(value="nae.elastic.web.enabled",
                           havingValue="true",
                           matchIfMissing=true)
    public class ElasticController
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      MessageResource reindex​(java.util.Map<java.lang.String,​java.lang.Object> searchBody, org.springframework.security.core.Authentication auth, java.util.Locale locale)  
      • Methods inherited from class java.lang.Object

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

      • ElasticController

        public ElasticController()
    • Method Detail

      • reindex

        @PreAuthorize("@authorizationService.hasAuthority(\'ADMIN\')")
        @PostMapping(value="/reindex",
                     consumes="application/json",
                     produces="application/hal+json")
        public MessageResource reindex​(@RequestBody
                                       java.util.Map<java.lang.String,​java.lang.Object> searchBody,
                                       org.springframework.security.core.Authentication auth,
                                       java.util.Locale locale)