Class TaggingByPathProcessor
- java.lang.Object
-
- org.craftercms.core.processors.impl.AbstractTaggingProcessor
-
- org.craftercms.core.processors.impl.TaggingByPathProcessor
-
- All Implemented Interfaces:
ItemProcessor
public class TaggingByPathProcessor extends AbstractTaggingProcessor
ItemProcessorthat adds a new tag or field to items on specific paths.- Author:
- joseross
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,String>pathMappingMap of paths & values, values can be multiple (separated by commas).-
Fields inherited from class org.craftercms.core.processors.impl.AbstractTaggingProcessor
defaultValue, newField
-
-
Constructor Summary
Constructors Constructor Description TaggingByPathProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)protected StringgetTagValues(Item item)If this method returns null or an empty string the item will not be tagged.inthashCode()voidsetPathMapping(Map<String,String> pathMapping)StringtoString()-
Methods inherited from class org.craftercms.core.processors.impl.AbstractTaggingProcessor
addNewField, process, setDefaultValue, setNewField
-
-
-
-
Method Detail
-
getTagValues
protected String getTagValues(Item item)
Description copied from class:AbstractTaggingProcessorIf this method returns null or an empty string the item will not be tagged.- Specified by:
getTagValuesin classAbstractTaggingProcessor- Returns:
- values to use for tagging the item
-
-