org.alfresco.repo.audit.extractor
Class NullValueDataExtractor

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

public class NullValueDataExtractor
extends AbstractDataExtractor

An extractor that merely records a null value. This enables configuration such that the presence of a data path can be recorded when the actual value is of no interest.

Since:
3.2

Field Summary
 
Fields inherited from class org.alfresco.repo.audit.extractor.AbstractDataExtractor
logger
 
Constructor Summary
NullValueDataExtractor()
           
 
Method Summary
 java.io.Serializable extractData(java.io.Serializable in)
          Convert an value passed into the audit components into a value to be recorded.
 boolean isSupported(java.io.Serializable data)
          Determines if the extractor will be able to pull any data from the given value.
 
Methods inherited from class org.alfresco.repo.audit.extractor.AbstractDataExtractor
afterPropertiesSet, equals, setBeanName, setRegistry
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullValueDataExtractor

public NullValueDataExtractor()
Method Detail

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 always

extractData

public java.io.Serializable extractData(java.io.Serializable in)
                                 throws java.lang.Throwable
Description copied from interface: DataExtractor
Convert an value passed into the audit components into a value to be recorded.

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


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