public class ExcludeByFieldValueProcessor extends AbstractExcludeProcessor
PublishingProcessor decorator that excludes files based on the value of a field.| Modifier and Type | Field and Description |
|---|---|
protected String[] |
excludedValues
Values that should cause a file to be excluded.
|
protected String |
fieldName
Field to check.
|
actualProcessorname, orderSITE_NAME_PREVIEW| Constructor and Description |
|---|
ExcludeByFieldValueProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
excludeFile(org.craftercms.core.service.ContentStoreService contentStoreService,
org.craftercms.core.service.Context context,
String file)
This method will define if a file is excluded or not.
|
String |
getName()
get the process's name
|
void |
setExcludedValues(String[] excludedValues) |
void |
setFieldName(String fieldName) |
copyFileList, doProcess, excludeFiles, setActualProcessorgetOrder, setBeanName, setOrderprotected String fieldName
protected String[] excludedValues
public void setFieldName(String fieldName)
public void setExcludedValues(String[] excludedValues)
protected boolean excludeFile(org.craftercms.core.service.ContentStoreService contentStoreService,
org.craftercms.core.service.Context context,
String file)
AbstractExcludeProcessorexcludeFile in class AbstractExcludeProcessorpublic String getName()
PublishingProcessorgetName in interface PublishingProcessorgetName in class AbstractPublishingProcessorCopyright © 2017 CrafterCMS. All rights reserved.