public class BaseContentProcessor extends Object implements ContentProcessor
Modifier and Type | Field and Description |
---|---|
protected String |
_name
the default process name if not set
|
static String |
NAME |
Constructor and Description |
---|
BaseContentProcessor()
default constructor
|
BaseContentProcessor(String name)
constructor that sets the process name
|
Modifier and Type | Method and Description |
---|---|
void |
checkForMandatoryParam(String key,
String value)
check if the mandatory value provided is not empty
|
String |
getName()
get the name of this processor
|
boolean |
isProcessable(PipelineContent content)
determines if the content is processable by the given parameters
|
void |
process(PipelineContent content,
ResultTO result)
process the content at the given path.
|
void |
setName(String name) |
public static final String NAME
protected String _name
public BaseContentProcessor()
public BaseContentProcessor(String name)
name
- public void setName(String name)
name
- the name to setpublic String getName()
ContentProcessor
getName
in interface ContentProcessor
public boolean isProcessable(PipelineContent content)
ContentProcessor
isProcessable
in interface ContentProcessor
public void process(PipelineContent content, ResultTO result) throws ContentProcessException, SiteNotFoundException
ContentProcessor
process
in interface ContentProcessor
content
- content to processresult
- result to returnContentProcessException
SiteNotFoundException
public void checkForMandatoryParam(String key, String value) throws ContentProcessException
key
- value
- ContentProcessorException
ContentProcessException
Copyright © 2023 CrafterCMS. All rights reserved.