org.alfresco.repo.audit.extractor
Class NodeNameDataExtractor

java.lang.Object
  extended by org.alfresco.repo.audit.extractor.AbstractDataExtractor
      extended by org.alfresco.repo.audit.extractor.NodeNameDataExtractor
All Implemented Interfaces:
DataExtractor, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean

public class NodeNameDataExtractor
extends AbstractDataExtractor

An extractor that pulls out the cm:name property from a node.

Since:
3.2

Field Summary
 
Fields inherited from class org.alfresco.repo.audit.extractor.AbstractDataExtractor
logger
 
Constructor Summary
NodeNameDataExtractor()
           
 
Method Summary
 void afterPropertiesSet()
          Registers the instance
 java.io.Serializable extractData(java.io.Serializable in)
          Gets the cm:name property from the node
 boolean isSupported(java.io.Serializable data)
          Determines if the extractor will be able to pull any data from the given value.
 void setNodeService(NodeService nodeService)
          Set the service to get the property from
 
Methods inherited from class org.alfresco.repo.audit.extractor.AbstractDataExtractor
equals, setBeanName, setRegistry
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeNameDataExtractor

public NodeNameDataExtractor()
Method Detail

setNodeService

public void setNodeService(NodeService nodeService)
Set the service to get the property from


afterPropertiesSet

public void afterPropertiesSet()
                        throws java.lang.Exception
Description copied from class: AbstractDataExtractor
Registers the instance

Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Overrides:
afterPropertiesSet in class AbstractDataExtractor
Throws:
java.lang.Exception

isSupported

public boolean isSupported(java.io.Serializable data)
Description copied from interface: DataExtractor
Determines if the extractor will be able to pull any data from the given value.

Parameters:
data - the data that might be useful to this extractor (could be null)
Returns:
Returns true if the data is a NodeRef

extractData

public java.io.Serializable extractData(java.io.Serializable in)
                                 throws java.lang.Throwable
Gets the cm:name property from the node

Parameters:
in - the source data
Returns:
the extracted data including null
Throws:
java.lang.Throwable - All errors will be handled by the calling framework


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