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
An extractor that pulls out the
cm:name property from a node.- Since:
- 3.2
- Author:
- Derek Hulley
-
Field Summary
Fields inherited from class org.alfresco.repo.audit.extractor.AbstractDataExtractor
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidRegisters the instanceGets the cm:name property from the nodebooleanisSupported(Serializable data) Determines if the extractor will be able to pull any data from the given value.voidsetNodeService(NodeService nodeService) Set the service to get the property fromMethods inherited from class org.alfresco.repo.audit.extractor.AbstractDataExtractor
equals, setBeanName, setRegistry
-
Constructor Details
-
NodeNameDataExtractor
public NodeNameDataExtractor()
-
-
Method Details
-
setNodeService
Set the service to get the property from -
afterPropertiesSet
Description copied from class:AbstractDataExtractorRegisters the instance- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Overrides:
afterPropertiesSetin classAbstractDataExtractor- Throws:
Exception
-
isSupported
Description copied from interface:DataExtractorDetermines 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
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
-