Class ReindexEndpoint
java.lang.Object
com.broadleafcommerce.search.index.core.endpoint.ReindexEndpoint
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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.protected StringdetermineName(ReindexRequest request) voidfullReindex(ReindexRequest reindexRequest, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected StringgenerateName(ReindexRequest request) protected StringgetAuthor(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Returns the user who started this full reindex.protected ReindexDelegationServiceprotected static DateTimeFormatter
-
Constructor Details
-
ReindexEndpoint
-
-
Method Details
-
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 contextreindexRequest- The details of the requested reindex- Returns:
- A
Mapof properties.
-
determineName
-
generateName
-
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"
-
getReindexDelegationService
-
getUTC_TIMESTAMP_FORMATTER
-