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:
@@ -82,6 +82,7 @@ import org.alfresco.jlan.smb.server.SMBSrvSession;
|
|||||||
import org.alfresco.jlan.util.MemorySize;
|
import org.alfresco.jlan.util.MemorySize;
|
||||||
import org.alfresco.jlan.util.WildCard;
|
import org.alfresco.jlan.util.WildCard;
|
||||||
import org.alfresco.model.ContentModel;
|
import org.alfresco.model.ContentModel;
|
||||||
|
import org.alfresco.repo.action.executer.ContentMetadataExtracter;
|
||||||
import org.alfresco.repo.admin.SysAdminParams;
|
import org.alfresco.repo.admin.SysAdminParams;
|
||||||
import org.alfresco.repo.content.MimetypeMap;
|
import org.alfresco.repo.content.MimetypeMap;
|
||||||
import org.alfresco.repo.node.archive.NodeArchiveService;
|
import org.alfresco.repo.node.archive.NodeArchiveService;
|
||||||
@@ -4267,7 +4268,7 @@ public class ContentDiskDriver extends AlfrescoTxDiskDriver implements DiskInter
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Extract metadata pending change for ALF-5082
|
// Extract metadata pending change for ALF-5082
|
||||||
Action action = getActionService().createAction("extract-metadata");
|
Action action = getActionService().createAction(ContentMetadataExtracter.EXECUTOR_NAME);
|
||||||
if(action != null)
|
if(action != null)
|
||||||
{
|
{
|
||||||
getActionService().executeAction(action, toNode);
|
getActionService().executeAction(action, toNode);
|
||||||
|
@@ -55,6 +55,8 @@ public class ContentMetadataExtracter extends ActionExecuterAbstractBase
|
|||||||
{
|
{
|
||||||
private static Log logger = LogFactory.getLog(ContentMetadataExtracter.class);
|
private static Log logger = LogFactory.getLog(ContentMetadataExtracter.class);
|
||||||
|
|
||||||
|
public static final String EXECUTOR_NAME = "extract-metadata";
|
||||||
|
|
||||||
private NodeService nodeService;
|
private NodeService nodeService;
|
||||||
private ContentService contentService;
|
private ContentService contentService;
|
||||||
private DictionaryService dictionaryService;
|
private DictionaryService dictionaryService;
|
||||||
|
@@ -23,6 +23,7 @@ import java.util.Collections;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import org.alfresco.model.ImapModel;
|
import org.alfresco.model.ImapModel;
|
||||||
|
import org.alfresco.repo.action.executer.ContentMetadataExtracter;
|
||||||
import org.alfresco.repo.copy.CopyBehaviourCallback;
|
import org.alfresco.repo.copy.CopyBehaviourCallback;
|
||||||
import org.alfresco.repo.copy.CopyDetails;
|
import org.alfresco.repo.copy.CopyDetails;
|
||||||
import org.alfresco.repo.copy.CopyServicePolicies.OnCopyNodePolicy;
|
import org.alfresco.repo.copy.CopyServicePolicies.OnCopyNodePolicy;
|
||||||
@@ -78,7 +79,7 @@ public class ImapContentPolicy
|
|||||||
// ensure the aspect is the one we expect
|
// ensure the aspect is the one we expect
|
||||||
if (aspectTypeQName.equals(ImapModel.ASPECT_IMAP_CONTENT))
|
if (aspectTypeQName.equals(ImapModel.ASPECT_IMAP_CONTENT))
|
||||||
{
|
{
|
||||||
Action action = getActionService().createAction("extract-metadata");
|
Action action = getActionService().createAction(ContentMetadataExtracter.EXECUTOR_NAME);
|
||||||
if(action != null)
|
if(action != null)
|
||||||
{
|
{
|
||||||
getActionService().executeAction(action, nodeRef);
|
getActionService().executeAction(action, nodeRef);
|
||||||
|
Reference in New Issue
Block a user