<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How can i audit Webscript in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-can-i-audit-webscript/m-p/297493#M250623</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks AFaust, problem solved by auditing manually, if i'm getting well the idea of using the @Auditable annotation, to audit your specific service you should create an interface which contains methods with the annotation @Auditable and then you configure the proxy interceptor bean, like that every time we call a method from classes that implement our interface, the method "invoke" of the interceptor bean will be called, the method "invoke" normally contains a test something like: "if there is an "auditable" annotation on the invoked method call the AuditComponent.recordAuditValues operation".&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Aug 2015 10:15:00 GMT</pubDate>
    <dc:creator>wajdi_ghribi</dc:creator>
    <dc:date>2015-08-20T10:15:00Z</dc:date>
    <item>
      <title>How can i audit Webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-can-i-audit-webscript/m-p/297491#M250621</link>
      <description>Hi,I would like to know how can i audit Webscripts, i implemented a webscript that extends AbstractWebScript, i added @auditable to the execute method and activated the audit :audit.enabled=trueaudit.alfresco-access.enabled=true‍‍‍ but still not getting the action audited, any help please.</description>
      <pubDate>Wed, 19 Aug 2015 14:49:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-can-i-audit-webscript/m-p/297491#M250621</guid>
      <dc:creator>wajdi_ghribi</dc:creator>
      <dc:date>2015-08-19T14:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: How can i audit Webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-can-i-audit-webscript/m-p/297492#M250622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;there currently is not support for auditing web scripts via the @Auditable annotation. The @Auditable annotation is intended to be used on service interfaces that are then configured to use a "public proxy bean" where a special AOP interceptor processes the interface and its annotations. Web scripts already are implementations and are hard to be converted into the same type of "public proxy" and "private implementation" architecture like services.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can still manually record audit data from your web script code by using the AuditComponent.recordAuditValues operation. In fact, that is the same API that the AOP interceptor handling the @Auditable annotation uses to record alfresco-api audit events. You could create a new custom base class for all your web scripts that always audits web script invocation, and use subclasses of this for your actual web scripts. That way you wouldn't need any annotation, but could still use it to configure what gets recorded. E.g. you could define what URL parameters get audited as "input" and what elements of the web script model are audited as "output". I wouldn't recommend auditing the rendered response as "output" though as this would surely explode your DB storage requirements quickly…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 16:37:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-can-i-audit-webscript/m-p/297492#M250622</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2015-08-19T16:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: How can i audit Webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-can-i-audit-webscript/m-p/297493#M250623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks AFaust, problem solved by auditing manually, if i'm getting well the idea of using the @Auditable annotation, to audit your specific service you should create an interface which contains methods with the annotation @Auditable and then you configure the proxy interceptor bean, like that every time we call a method from classes that implement our interface, the method "invoke" of the interceptor bean will be called, the method "invoke" normally contains a test something like: "if there is an "auditable" annotation on the invoked method call the AuditComponent.recordAuditValues operation".&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 10:15:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-can-i-audit-webscript/m-p/297493#M250623</guid>
      <dc:creator>wajdi_ghribi</dc:creator>
      <dc:date>2015-08-20T10:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: How can i audit Webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-can-i-audit-webscript/m-p/297494#M250624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Basically yes - but there already is such an interceptor class, the AuditMethodInterceptor.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 07:26:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-can-i-audit-webscript/m-p/297494#M250624</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2015-08-24T07:26:49Z</dc:date>
    </item>
  </channel>
</rss>

