org.alfresco.opencmis
Class CMISChangeLogDataExtractor

java.lang.Object
  extended by org.alfresco.repo.audit.extractor.AbstractDataExtractor
      extended by org.alfresco.opencmis.CMISChangeLogDataExtractor
All Implemented Interfaces:
DataExtractor, 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.


Field Summary
static java.lang.String KEY_NODE_REF
           
static java.lang.String KEY_OBJECT_ID
           
 
Fields inherited from class org.alfresco.repo.audit.extractor.AbstractDataExtractor
logger
 
Constructor Summary
CMISChangeLogDataExtractor()
           
 
Method Summary
 java.io.Serializable extractData(java.io.Serializable value)
          Extracts relevant node refs and Ids from auditing data
 boolean isSupported(java.io.Serializable data)
          Determines if the extractor will be able to pull any data from the given value.
 void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
           
 void setOpenCMISDictionaryService(org.alfresco.opencmis.dictionary.CMISDictionaryService cmisDictionaryService)
           
 
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
 

Field Detail

KEY_NODE_REF

public static final java.lang.String KEY_NODE_REF
See Also:
Constant Field Values

KEY_OBJECT_ID

public static final java.lang.String KEY_OBJECT_ID
See Also:
Constant Field Values
Constructor Detail

CMISChangeLogDataExtractor

public CMISChangeLogDataExtractor()
Method Detail

extractData

public java.io.Serializable extractData(java.io.Serializable value)
                                 throws java.lang.Throwable
Extracts relevant node refs and Ids from auditing data

Parameters:
value - the source data
Returns:
the extracted data including null
Throws:
java.lang.Throwable - All errors will be handled by the calling framework
See Also:
org.alfresco.repo.audit.extractor.DataExtractor.extractData(java.io. Serializable)

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 if items in the CMIS domain model
See Also:
org.alfresco.repo.audit.extractor.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)


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