mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
ALF-10618 related - put the metadata extractor action executor name into a constant, rather than having it inline as a string in various places
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@31296 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -23,6 +23,7 @@ import java.util.Collections;
|
||||
import java.util.Map;
|
||||
|
||||
import org.alfresco.model.ImapModel;
|
||||
import org.alfresco.repo.action.executer.ContentMetadataExtracter;
|
||||
import org.alfresco.repo.copy.CopyBehaviourCallback;
|
||||
import org.alfresco.repo.copy.CopyDetails;
|
||||
import org.alfresco.repo.copy.CopyServicePolicies.OnCopyNodePolicy;
|
||||
@@ -78,7 +79,7 @@ public class ImapContentPolicy
|
||||
// ensure the aspect is the one we expect
|
||||
if (aspectTypeQName.equals(ImapModel.ASPECT_IMAP_CONTENT))
|
||||
{
|
||||
Action action = getActionService().createAction("extract-metadata");
|
||||
Action action = getActionService().createAction(ContentMetadataExtracter.EXECUTOR_NAME);
|
||||
if(action != null)
|
||||
{
|
||||
getActionService().executeAction(action, nodeRef);
|
||||
|
Reference in New Issue
Block a user