Class NodeTypeDataExtractor
- java.lang.Object
-
- org.alfresco.repo.audit.extractor.AbstractDataExtractor
-
- org.alfresco.repo.audit.extractor.NodeTypeDataExtractor
-
- All Implemented Interfaces:
DataExtractor,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.InitializingBean
public class NodeTypeDataExtractor extends AbstractDataExtractor
An extractor that pulls out the type of a node.- Since:
- 3.2
- Author:
- Derek Hulley
-
-
Field Summary
-
Fields inherited from class org.alfresco.repo.audit.extractor.AbstractDataExtractor
logger
-
-
Constructor Summary
Constructors Constructor Description NodeTypeDataExtractor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()Registers the instancejava.io.SerializableextractData(java.io.Serializable in)Gets the cm:name property from the nodebooleanisSupported(java.io.Serializable data)Determines if the extractor will be able to pull any data from the given value.voidsetNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)Set the service to get the property from-
Methods inherited from class org.alfresco.repo.audit.extractor.AbstractDataExtractor
equals, setBeanName, setRegistry
-
-
-
-
Method Detail
-
setNodeService
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
Set the service to get the property from
-
afterPropertiesSet
public void afterPropertiesSet() throws java.lang.ExceptionDescription copied from class:AbstractDataExtractorRegisters the instance- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Overrides:
afterPropertiesSetin classAbstractDataExtractor- Throws:
java.lang.Exception
-
isSupported
public boolean isSupported(java.io.Serializable data)
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
public java.io.Serializable extractData(java.io.Serializable in) throws java.lang.ThrowableGets 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
-
-