public class TaggingByFieldValueProcessor extends AbstractTaggingProcessor
ItemProcessor that adds a new tag or field to items that have a certain tag/field and value.| Modifier and Type | Field and Description |
|---|---|
protected String |
sourceField
The name of the existing field to query.
|
protected Map<String,String> |
valueMapping
Map of values, the keys can be regular expressions.
|
defaultValue, newField| Constructor and Description |
|---|
TaggingByFieldValueProcessor() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
protected String |
getTagValues(Item item)
If this method returns null or an empty string the item will not be tagged.
|
int |
hashCode() |
void |
setDefaultValue(String defaultValue) |
void |
setSourceField(String sourceField) |
void |
setValueMapping(Map<String,String> valueMapping) |
String |
toString() |
addNewField, process, setNewFieldprotected String sourceField
public void setSourceField(String sourceField)
public void setDefaultValue(String defaultValue)
setDefaultValue in class AbstractTaggingProcessorprotected String getTagValues(Item item)
AbstractTaggingProcessorgetTagValues in class AbstractTaggingProcessorCopyright © 2018 CrafterCMS. All rights reserved.