org.alfresco.repo.avm
Class AvmMetadataExtracter

java.lang.Object
  extended by org.alfresco.repo.avm.AvmMetadataExtracter
All Implemented Interfaces:
ContentServicePolicies.OnContentUpdatePolicy, ClassPolicy, Policy

public class AvmMetadataExtracter
extends java.lang.Object
implements ContentServicePolicies.OnContentUpdatePolicy

A component that listens for changes to the content

Since:
2.1

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.alfresco.repo.policy.Policy
Policy.Arg
 
Field Summary
 
Fields inherited from interface org.alfresco.repo.content.ContentServicePolicies.OnContentUpdatePolicy
QNAME
 
Fields inherited from interface org.alfresco.repo.policy.Policy
NAMESPACE
 
Constructor Summary
AvmMetadataExtracter()
           
 
Method Summary
 void init()
          Registers the policy behaviour methods
 void onContentUpdate(org.alfresco.service.cmr.repository.NodeRef nodeRef, boolean newContent)
          When the content changes, the metadata is extracted.
 void setExtracterAction(ContentMetadataExtracter extracterAction)
           
 void setPolicyComponent(PolicyComponent policyComponent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AvmMetadataExtracter

public AvmMetadataExtracter()
Method Detail

setPolicyComponent

public void setPolicyComponent(PolicyComponent policyComponent)
Parameters:
policyComponent - used for registrations

setExtracterAction

public void setExtracterAction(ContentMetadataExtracter extracterAction)
Parameters:
extracterAction - the action that will perform the actual extraction

init

public void init()
Registers the policy behaviour methods


onContentUpdate

public void onContentUpdate(org.alfresco.service.cmr.repository.NodeRef nodeRef,
                            boolean newContent)
When the content changes, the metadata is extracted.

Specified by:
onContentUpdate in interface ContentServicePolicies.OnContentUpdatePolicy
Parameters:
nodeRef - the node reference


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.