Package org.alfresco.opencmis
Class CMISChangeLogDataExtractor
- java.lang.Object
-
- org.alfresco.repo.audit.extractor.AbstractDataExtractor
-
- org.alfresco.opencmis.CMISChangeLogDataExtractor
-
- All Implemented Interfaces:
DataExtractor,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.InitializingBean
public class CMISChangeLogDataExtractor extends AbstractDataExtractor
An extractor that allows to filter data using the following rule: Audit records should only be created for items in the CMIS domain model.- Author:
- Stas Sokolovsky
-
-
Field Summary
Fields Modifier and Type Field Description static StringKEY_NODE_REFstatic StringKEY_OBJECT_ID-
Fields inherited from class org.alfresco.repo.audit.extractor.AbstractDataExtractor
logger
-
-
Constructor Summary
Constructors Constructor Description CMISChangeLogDataExtractor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SerializableextractData(Serializable value)Extracts relevant node refs and Ids from auditing databooleanisSupported(Serializable data)Determines if the extractor will be able to pull any data from the given value.voidsetCmisConnector(CMISConnector cmisConnector)voidsetNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)voidsetOpenCMISDictionaryService(org.alfresco.opencmis.dictionary.CMISDictionaryService cmisDictionaryService)-
Methods inherited from class org.alfresco.repo.audit.extractor.AbstractDataExtractor
afterPropertiesSet, equals, setBeanName, setRegistry
-
-
-
-
Field Detail
-
KEY_NODE_REF
public static final String KEY_NODE_REF
- See Also:
- Constant Field Values
-
KEY_OBJECT_ID
public static final String KEY_OBJECT_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
extractData
public Serializable extractData(Serializable value) throws Throwable
Extracts relevant node refs and Ids from auditing data- Parameters:
value- the source data- Returns:
- the extracted data including null
- Throws:
Throwable- All errors will be handled by the calling framework- See Also:
DataExtractor.extractData(java.io.Serializable)
-
isSupported
public boolean isSupported(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 items in the CMIS domain model
- See Also:
DataExtractor.isSupported(java.io.Serializable)
-
setNodeService
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
-
setOpenCMISDictionaryService
public void setOpenCMISDictionaryService(org.alfresco.opencmis.dictionary.CMISDictionaryService cmisDictionaryService)
-
setCmisConnector
public void setCmisConnector(CMISConnector cmisConnector)
-
-