public class ReIndexPagesOnComponentUpdateProcessor extends AbstractPublishingProcessor
| Modifier and Type | Field and Description |
|---|---|
protected PublishingProcessor |
actualIndexingProcessor |
protected String |
componentsRoot |
static String |
DEFAULT_COMPONENTS_ROOT |
static String |
DEFAULT_PAGES_QUERY_PATTERN |
protected String |
defaultIndexIdFormat |
protected boolean |
ignoreIndexId |
protected String |
indexId |
protected String |
pagesQueryPattern |
protected org.craftercms.search.service.SearchService |
searchService |
protected String |
siteName |
name, orderSITE_NAME_PREVIEW| Constructor and Description |
|---|
ReIndexPagesOnComponentUpdateProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addPagesThatIncludeComponentToUpdatedFiles(String indexId,
String component,
List<String> createdFiles,
List<String> updatedFiles) |
protected org.craftercms.search.service.Query |
createPagesThatIncludeComponentQuery(String componentId) |
protected void |
doIndexing(PublishedChangeSet changeSet,
Map<String,String> parameters,
org.craftercms.core.service.Context context,
PublishingTarget target) |
void |
doProcess(PublishedChangeSet changeSet,
Map<String,String> parameters,
org.craftercms.core.service.Context context,
PublishingTarget target)
process files published
|
protected String |
getActualIndexId(String siteName) |
protected String |
getActualSiteId(Map<String,String> parameters) |
protected List<String> |
getPagesThatIncludeComponent(String indexId,
String componentPath) |
protected boolean |
isBeingUpdated(String path,
List<String> createdFiles,
List<String> updatedFiles) |
protected boolean |
isComponent(String path) |
void |
setActualIndexingProcessor(PublishingProcessor actualIndexingProcessor) |
void |
setComponentsRoot(String componentsRoot) |
void |
setDefaultIndexIdFormat(String defaultIndexIdFormat) |
void |
setIgnoreIndexId(boolean ignoreIndexId) |
void |
setIndexId(String indexId) |
void |
setPagesQueryPattern(String pagesQueryPattern) |
void |
setSearchService(org.craftercms.search.service.SearchService searchService) |
void |
setSiteName(String siteName) |
getName, getOrder, setBeanName, setOrderpublic static final String DEFAULT_COMPONENTS_ROOT
public static final String DEFAULT_PAGES_QUERY_PATTERN
protected String indexId
protected String defaultIndexIdFormat
protected boolean ignoreIndexId
protected String siteName
protected String componentsRoot
protected String pagesQueryPattern
protected org.craftercms.search.service.SearchService searchService
protected PublishingProcessor actualIndexingProcessor
public ReIndexPagesOnComponentUpdateProcessor()
public void setIndexId(String indexId)
public void setDefaultIndexIdFormat(String defaultIndexIdFormat)
public void setIgnoreIndexId(boolean ignoreIndexId)
public void setSiteName(String siteName)
public void setComponentsRoot(String componentsRoot)
public void setPagesQueryPattern(String pagesQueryPattern)
public void setSearchService(org.craftercms.search.service.SearchService searchService)
public void setActualIndexingProcessor(PublishingProcessor actualIndexingProcessor)
public void doProcess(PublishedChangeSet changeSet, Map<String,String> parameters, org.craftercms.core.service.Context context, PublishingTarget target) throws PublishingException
PublishingProcessorPublishingExceptionprotected void doIndexing(PublishedChangeSet changeSet, Map<String,String> parameters, org.craftercms.core.service.Context context, PublishingTarget target) throws PublishingException
PublishingExceptionprotected List<String> getPagesThatIncludeComponent(String indexId, String componentPath)
protected boolean isComponent(String path)
protected boolean isBeingUpdated(String path, List<String> createdFiles, List<String> updatedFiles)
protected void addPagesThatIncludeComponentToUpdatedFiles(String indexId, String component, List<String> createdFiles, List<String> updatedFiles)
protected org.craftercms.search.service.Query createPagesThatIncludeComponentQuery(String componentId)
Copyright © 2017 CrafterCMS. All rights reserved.