Class MetaDataExtractAction

All Implemented Interfaces:
org.alfresco.processor.ProcessorExtension, Scopeable

public final class MetaDataExtractAction extends BaseScopableProcessorExtension
JavaScript wrapper for the "extract-metadata" action.

This class provides a scriptable interface to trigger metadata extraction actions within the Alfresco repository.
It is similar to Actions class but is dedicated to metadata extraction functionality.

Author:
Sayan Bhattacharya
  • Constructor Details

    • MetaDataExtractAction

      public MetaDataExtractAction()
  • Method Details

    • setServiceRegistry

      public void setServiceRegistry(ServiceRegistry serviceRegistry)
      Set the service registry
      Parameters:
      serviceRegistry - the service registry
    • setContentService

      public void setContentService(ContentService contentService)
    • create

      public ScriptAction create(boolean isContentChanged)
      Create a new metadata extraction action instance
      Parameters:
      setActionContext - if true, sets the action context to "scriptaction".
      Returns:
      the newly created action
    • isContentChanged

      public boolean isContentChanged(String itemId, FormData formData)
      Check if the content has been updated in the form data compared to the existing content of the node.
      Parameters:
      itemId -
      formData -
      Returns:
      true if content has changed, false otherwise