Book a Demo

Author Topic: Load audit trail file via API  (Read 4805 times)

Knut Paulsen

  • EA User
  • **
  • Posts: 82
  • Karma: +1/-0
    • View Profile
Load audit trail file via API
« on: April 16, 2012, 04:40:14 pm »
Hi guys,

The Repository object has methods for saving and clearing the audit trail log, but as far as I can see there is no method for loading an audit trail file.

Any suggestions?

Thanks
Knut

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Load audit trail file via API
« Reply #1 on: April 16, 2012, 04:45:24 pm »
Zip it and put it back in the database?

Geert

Knut Paulsen

  • EA User
  • **
  • Posts: 82
  • Karma: +1/-0
    • View Profile
Re: Load audit trail file via API
« Reply #2 on: April 16, 2012, 06:37:43 pm »
Thanks you Geert for a prompt response :-)

I'm not sure I understand how to do it though.

It appears to me that the audit trail is stored in the t_snapshot table and when I load an audit trail xml file, the individual entries appear in the t_snapshot table.

Are you suggesting that it is possible to zip the xml file and insert it into t_snapshot?

Cheers
Knut

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Load audit trail file via API
« Reply #3 on: April 16, 2012, 07:01:34 pm »
It's just a suggestion to give it a try and see what happens.

q.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Load audit trail file via API
« Reply #4 on: April 16, 2012, 08:32:39 pm »
There might be some base64 encoding involved as well.

If you search for "t_snapshot" in the forum there should be some pointers.

Geert