Class PathMatchProcessor
- java.lang.Object
-
- org.craftercms.studio.impl.v1.content.pipeline.BaseContentProcessor
-
- org.craftercms.studio.impl.v1.content.pipeline.PathMatchProcessor
-
- All Implemented Interfaces:
ContentProcessor
- Direct Known Subclasses:
CheckImageSizeProcessor
,ContentLifeCycleProcessor
,ExtractAssetDependencyProcessor
,ExtractDependencyProcessor
,FormDmContentProcessor
public class PathMatchProcessor extends BaseContentProcessor
-
-
Field Summary
Fields Modifier and Type Field Description protected List<String>
_matchPaths
a list of paths to match onprotected List<String>
_unmatchPaths
a list of paths not to match onstatic String
NAME
-
Fields inherited from class org.craftercms.studio.impl.v1.content.pipeline.BaseContentProcessor
_name
-
-
Constructor Summary
Constructors Constructor Description PathMatchProcessor()
default constructorPathMatchProcessor(String name)
constructor that sets the process name
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isProcessable(PipelineContent content)
determines if the content is processable by the given parametersvoid
setMatchPaths(List<String> matchPaths)
void
setUnmatchPaths(List<String> unmatchPaths)
-
Methods inherited from class org.craftercms.studio.impl.v1.content.pipeline.BaseContentProcessor
checkForMandatoryParam, getName, process, setName
-
-
-
-
Constructor Detail
-
PathMatchProcessor
public PathMatchProcessor()
default constructor
-
PathMatchProcessor
public PathMatchProcessor(String name)
constructor that sets the process name- Parameters:
name
-
-
-
Method Detail
-
setMatchPaths
public void setMatchPaths(List<String> matchPaths)
- Parameters:
matchPaths
- the matchPaths to set
-
setUnmatchPaths
public void setUnmatchPaths(List<String> unmatchPaths)
- Parameters:
unmatchPaths
- the unmatchPaths to set
-
isProcessable
public boolean isProcessable(PipelineContent content)
Description copied from interface:ContentProcessor
determines if the content is processable by the given parameters- Specified by:
isProcessable
in interfaceContentProcessor
- Overrides:
isProcessable
in classBaseContentProcessor
-
-