Interface DataExtractor
-
- All Known Implementing Classes:
AbstractDataExtractor,CMISChangeLogDataExtractor,NodeNameDataExtractor,NodeTypeDataExtractor,NullValueDataExtractor,SimpleValueDataExtractor
@AlfrescoPublicApi public interface DataExtractorInterface for Audit data value extractors. These are used to extract auditable values from those arguments, return values, exceptions and any other value passed into the audit components for recording. The framework will first determine if data passed into the instance issupportedand will then pass it in forconversionto the type that will be recorded.- Since:
- 3.2
- Author:
- Derek Hulley
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.io.SerializableextractData(java.io.Serializable value)Convert an value passed into the audit components into a value to be recorded.booleanisSupported(java.io.Serializable data)Determines if the extractor will be able to pull any data from the given value.
-
-
-
Method Detail
-
isSupported
boolean isSupported(java.io.Serializable data)
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 meaningful to this extractor
-
extractData
java.io.Serializable extractData(java.io.Serializable value) throws java.lang.ThrowableConvert an value passed into the audit components into a value to be recorded.- Parameters:
value- the source data- Returns:
- the extracted data including null
- Throws:
java.lang.Throwable- All errors will be handled by the calling framework
-
-