Nuxeo Enterprise Platform 5.1

org.nuxeo.ecm.platform.modifier.service
Class DocModifierServiceImpl

java.lang.Object
  extended by org.nuxeo.runtime.model.DefaultComponent
      extended by org.nuxeo.ecm.platform.modifier.service.DocModifierServiceImpl
All Implemented Interfaces:
DocModifierService, Adaptable, Component, Extensible

public class DocModifierServiceImpl
extends DefaultComponent
implements DocModifierService

Document modification procedure: Core Event -> Extract word File + some fields -> call NXPlugin (generate the new file) -> update the document with the generated file.

Author:
DM

Field Summary
static String MODIFIER_EXTENSION_POINT_ASSOCIATIONS
           
static String NAME
           
 
Constructor Summary
DocModifierServiceImpl()
           
 
Method Summary
 void activate(ComponentContext context)
          Activates the component.
 void deactivate(ComponentContext context)
          Deactivates the component.
 void processDocument(DocumentModel doc, String eventName)
          If the value of the content property is null, this method returns without any further processing.
 void registerExtension(Extension extension)
          Registers the given extension.
 void unregisterExtension(Extension extension)
          Unregisters the given extension.
 
Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
getAdapter, registerContribution, unregisterContribution
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final String NAME
See Also:
Constant Field Values

MODIFIER_EXTENSION_POINT_ASSOCIATIONS

public static final String MODIFIER_EXTENSION_POINT_ASSOCIATIONS
See Also:
Constant Field Values
Constructor Detail

DocModifierServiceImpl

public DocModifierServiceImpl()
Method Detail

activate

public void activate(ComponentContext context)
              throws Exception
Description copied from interface: Component
Activates the component.

This method will be called by the runtime when a component is activated.

Specified by:
activate in interface Component
Overrides:
activate in class DefaultComponent
Parameters:
context - the runtime context
Throws:
Exception - if an error occurs during activation

registerExtension

public void registerExtension(Extension extension)
                       throws Exception
Description copied from interface: Extensible
Registers the given extension.

Specified by:
registerExtension in interface Extensible
Overrides:
registerExtension in class DefaultComponent
Parameters:
extension - the extension to register
Throws:
Exception - if any error occurs

unregisterExtension

public void unregisterExtension(Extension extension)
                         throws Exception
Description copied from interface: Extensible
Unregisters the given extension.

Specified by:
unregisterExtension in interface Extensible
Overrides:
unregisterExtension in class DefaultComponent
Parameters:
extension - the extension to unregister
Throws:
Exception - if any error occurs

deactivate

public void deactivate(ComponentContext context)
                throws Exception
Description copied from interface: Component
Deactivates the component.

This method will be called by the runtime when a component is deactivated.

Specified by:
deactivate in interface Component
Overrides:
deactivate in class DefaultComponent
Parameters:
context - the runtime context
Throws:
Exception - if an error occurs during activation

processDocument

public void processDocument(DocumentModel doc,
                            String eventName)
                     throws DocModifierException
Description copied from interface: DocModifierService
If the value of the content property is null, this method returns without any further processing.

Specified by:
processDocument in interface DocModifierService
Throws:
DocModifierException - if
  • any of the document fields specified in the descriptor do not exist
  • other processing error occurs

  • Nuxeo Enterprise Platform 5.1

    Copyright ? 2007 Nuxeo SAS. All Rights Reserved.