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:
Nick Burch
2011-10-17 17:35:54 +00:00
parent 38d03ca5ae
commit 2bf51d65c3
3 changed files with 6 additions and 2 deletions

View File

@@ -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);