Package org.alfresco.repo.jscript
Class MetaDataExtractAction
java.lang.Object
org.alfresco.repo.processor.BaseProcessorExtension
org.alfresco.repo.jscript.BaseScopableProcessorExtension
org.alfresco.repo.jscript.MetaDataExtractAction
- All Implemented Interfaces:
org.alfresco.processor.ProcessorExtension,Scopeable
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(boolean isContentChanged) Create a new metadata extraction action instancebooleanisContentChanged(String itemId, FormData formData) Check if the content has been updated in the form data compared to the existing content of the node.voidsetContentService(ContentService contentService) voidsetServiceRegistry(ServiceRegistry serviceRegistry) Set the service registryMethods inherited from class org.alfresco.repo.jscript.BaseScopableProcessorExtension
getScope, setScopeMethods inherited from class org.alfresco.repo.processor.BaseProcessorExtension
getExtensionName, register, setExtensionName, setProcessor
-
Constructor Details
-
MetaDataExtractAction
public MetaDataExtractAction()
-
-
Method Details
-
setServiceRegistry
Set the service registry- Parameters:
serviceRegistry- the service registry
-
setContentService
-
create
Create a new metadata extraction action instance- Parameters:
setActionContext- if true, sets the action context to "scriptaction".- Returns:
- the newly created action
-
isContentChanged
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
-