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()
ContentProcessorgetName in interface ContentProcessorpublic boolean isProcessable(PipelineContent content)
ContentProcessorisProcessable in interface ContentProcessorpublic void process(PipelineContent content, ResultTO result) throws ContentProcessException, SiteNotFoundException
ContentProcessorprocess in interface ContentProcessorcontent - content to processresult - result to returnContentProcessExceptionSiteNotFoundExceptionpublic void checkForMandatoryParam(String key, String value) throws ContentProcessException
key - value - ContentProcessorExceptionContentProcessExceptionCopyright © 2023 CrafterCMS. All rights reserved.