|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.repo.processor.BaseProcessor
public abstract class BaseProcessor
Base class of a processor, encapsulates the implementation reguarding the registration of the processor with the relevant services and the handling of processor extensions.
| Field Summary | |
|---|---|
protected java.lang.String |
extension
The file extension that this processor understands |
protected java.lang.String |
name
The name of the processor |
protected java.util.Map |
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 Summary | |
|---|---|
BaseProcessor()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getExtension()
Gets the extension that the processor understands |
java.lang.String |
getName()
Get the name of the processor |
java.util.Collection |
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(java.lang.String extension)
Sets the extenstion that the processor understands |
void |
setName(java.lang.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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String name
protected java.lang.String extension
protected ScriptService scriptService
protected TemplateService templateService
protected ServiceRegistry services
protected java.util.Map processorExtensions
| Constructor Detail |
|---|
public BaseProcessor()
| Method Detail |
|---|
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 java.lang.String getName()
getName in interface org.alfresco.processor.Processorpublic void setName(java.lang.String name)
name - the name of the processorpublic java.lang.String getExtension()
getExtension in interface org.alfresco.processor.Processorpublic void setExtension(java.lang.String extension)
extension - the extensionpublic void registerProcessorExtension(org.alfresco.processor.ProcessorExtension processorExtension)
registerProcessorExtension in interface org.alfresco.processor.ProcessorprocessorExtension - the processor extensionpublic java.util.Collection getProcessorExtensions()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||