public abstract class BaseProcessor extends Object implements org.alfresco.processor.Processor
Modifier and Type | Field and Description |
---|---|
protected String |
extension
The file extension that this processor understands
|
protected String |
name
The name of the processor
|
protected Map<String,org.alfresco.processor.ProcessorExtension> |
processorExtensions
A map containing all the processor extenstions
|
protected ScriptService |
scriptService
The script service
|
protected ServiceRegistry |
services
The service registry
|
protected TemplateService |
templateService
The template service
|
Constructor and Description |
---|
BaseProcessor() |
Modifier and Type | Method and Description |
---|---|
String |
getExtension()
Gets the extension that the processor understands
|
String |
getName()
Get the name of the processor
|
Collection<org.alfresco.processor.ProcessorExtension> |
getProcessorExtensions()
Get the collection of processor extensions
|
void |
register()
Registers this processor with the relevant services
|
void |
registerProcessorExtension(org.alfresco.processor.ProcessorExtension processorExtension)
Registers a processor extension with the processor
|
void |
setExtension(String extension)
Sets the extenstion that the processor understands
|
void |
setName(String name)
Sets the name of the processor
|
void |
setScriptService(ScriptService scriptService)
Sets the script service
|
void |
setServiceRegistry(ServiceRegistry serviceRegistry)
Sets the service registry
|
void |
setTemplateService(TemplateService templateService)
Sets the template service
|
protected String name
protected String extension
protected ScriptService scriptService
protected TemplateService templateService
protected ServiceRegistry services
public void register()
public void setScriptService(ScriptService scriptService)
scriptService
- the script servicepublic void setTemplateService(TemplateService templateService)
templateService
- the template servicepublic void setServiceRegistry(ServiceRegistry serviceRegistry)
serviceRegistry
- the service registrypublic String getName()
getName
in interface org.alfresco.processor.Processor
public void setName(String name)
name
- the name of the processorpublic String getExtension()
getExtension
in interface org.alfresco.processor.Processor
public void setExtension(String extension)
extension
- the extensionpublic void registerProcessorExtension(org.alfresco.processor.ProcessorExtension processorExtension)
registerProcessorExtension
in interface org.alfresco.processor.Processor
processorExtension
- the processor extensionpublic Collection<org.alfresco.processor.ProcessorExtension> getProcessorExtensions()
Copyright © 2005–2017 Alfresco Software. All rights reserved.