Class ReindexEndpoint


  • @FrameworkRestController
    @FrameworkMapping
    public class ReindexEndpoint
    extends Object
    • Method Detail

      • fullReindex

        @FrameworkPostMapping(value="/full-reindex",
                              consumes="application/json")
        @Policy(permissionRoots="REINDEX",
                operationTypes=CREATE)
        public void fullReindex​(@RequestBody
                                ReindexRequest reindexRequest,
                                @ContextOperation
                                com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
                         throws com.broadleafcommerce.search.api.SearchIndexException
        Throws:
        com.broadleafcommerce.search.api.SearchIndexException
      • buildAdditionalProperties

        protected Map<String,​Serializable> buildAdditionalProperties​(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo,
                                                                           ReindexRequest reindexRequest)
        Creates a map of properties to be passed to the reindex process.
        Parameters:
        contextInfo - The context
        reindexRequest - The details of the requested reindex
        Returns:
        A Map of properties.
      • getAuthor

        protected String getAuthor​(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
        Returns the user who started this full reindex.
        Parameters:
        contextInfo - The context
        Returns:
        The author of this full reindex, or the string "Unknown"
      • getUTC_TIMESTAMP_FORMATTER

        protected static DateTimeFormatter getUTC_TIMESTAMP_FORMATTER()