Class NodeNameDataExtractor

java.lang.Object
org.alfresco.repo.audit.extractor.AbstractDataExtractor
org.alfresco.repo.audit.extractor.NodeNameDataExtractor
All Implemented Interfaces:
DataExtractor, org.springframework.beans.factory.Aware, 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
Author:
Derek Hulley
  • Constructor Details

    • NodeNameDataExtractor

      public NodeNameDataExtractor()
  • Method Details

    • setNodeService

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

      public void afterPropertiesSet() throws 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:
      Exception
    • isSupported

      public boolean isSupported(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 Serializable extractData(Serializable in) throws Throwable
      Gets the cm:name property from the node
      Parameters:
      in - the source data
      Returns:
      the extracted data including null
      Throws:
      Throwable - All errors will be handled by the calling framework