AnsweredAssumed Answered

Problems auditing nodes and own methods

Question asked by saruqui on Mar 8, 2012
Latest reply on Mar 20, 2012 by saruqui

I have 2 questions about AuditService in Alfresco 4.
1. I don't have any problem auditing Alfresco's services but when I try to audit my own methods in my module I don't get any data about it.

My code is:
<?xml version='1.0' encoding='UTF-8'?>

<Audit xmlns=""
        xsi:schemaLocation=" alfresco-audit-3.2.xsd">

                <DataExtractor name="simpleValue" registeredName="auditModel.extractor.simpleValue" />              

      <PathMap source="/alfresco-api/pre/ExtractorService/updateMetadata"  target="/Extractor" />
                <PathMap source="/alfresco-api/post/ExtractorService/updateMetadata"  target="/Extractor" />

      <Application name="Extractor" key="Extractor">
      <AuditPath key="update">
            <AuditPath key="in">
                <RecordValue key="nodeRef" dataExtractor="simpleValue" dataSource="/Extractor/args/nodeRef" dataTrigger="/Extractor/no-error"/>                    
            <AuditPath key="out">
                <RecordValue key="result" dataExtractor="simpleValue" dataSource="/Extractor/result" dataTrigger="/Extractor/no-error"/>            

public interface ExtractorService {

   public ContentReader getContent(NodeRef nodeRef) throws ServiceException, IOException;

Any idea?

2. I have the following doubt. If I'm auditing nodeService, CheckoutCheckinService, permissionService, alfresco-access… and I want to know everything about a node. Are there any query,

service or anything for resolving it or do I need to create a query for everyone and then a merge about the results?

Thx in advance  :D