http://www.openvpms.org/documentation/csh/1.7/reference/audit

I think this page might need tweaking but it depends on what we do with the producion version of 1.7 TimG....at the moment auditing is enabled by default...but it is done in :- openvpms-authetication.xml ...mind you I just looked at my audit table...its big....plan?

Ben

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Re: ...

Ben - sorry for the delay in responding.  This topic is one of those that I included in the CSH text as part of my "scan all the other stuff in the forums and see if there is stuff that should be included in the CSH text" program.

I confess that I have not played with the Audit facility or looked at how it works - I just grabbed the text.

Tim A - any comment?

Regards, Tim G

Re: ...

The audit service is not particularly useful in its present form.

In 1.7, most of the calls won't be logged as the service doesn't intercept them. This was true in 1.6, but to a lesser extent.

I'm inclined to disable it.

-Tim A

Re: ...

Disable it - otherwise databases are going to grow exponentially daily.  making backups logs and massive.  

Regards
 
Ben 
OpenVPMS Installer and Helper 
Ph: +61423044823 
Email: info[at]charltonit.com[dot]au

Re: ...

Ben - I just checked my version (and I use the standard applicationContext.xml) - there is no entry at all for the audit facility.  Hence it would appear to be disabled in the current 1.7 Beta 2 software.

Regards, Tim G

Re: ...

Its configured in WEB-INF/openvpms-framework.xml:

    <bean id="auditDao"
          class="org.openvpms.component.business.dao.hibernate.im.audit.AuditDAOHibernate">
        <property name="sessionFactory" ref="sessionFactory"/>
    </bean>

    <bean id="auditService"
          class="org.openvpms.component.business.service.audit.AuditService">
        <constructor-arg ref="auditDao"/>
    </bean>

    <!--  Create a proxy for the ArchetypeService bean -->
    <bean id="autoProxyCreator"
          class="org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator">
        <property name="beanNames">
            <list>
                <value>archetypeService</value>
            </list>
        </property>
        <property name="interceptorNames">
            <list>
                <value>auditServiceAdvisor</value>
            </list>
        </property>
    </bean>

    <bean id="auditServiceAdvisor"
          class="org.springframework.aop.support.RegexpMethodPointcutAdvisor">
        <property name="advice" ref="auditService"/>
        <property name="patterns">
            <list>
                <value>.*ArchetypeService\.save</value>
                <value>.*ArchetypeService\.remove</value>
            </list>
        </property>
    </bean> 
Syndicate content