Re: auditing with context?
- From: Lew <noone@xxxxxxxxxxxxx>
- Date: Thu, 12 Mar 2009 09:20:42 -0400
Martin Gregorie wrote:
On Thu, 12 Mar 2009 04:30:34 -0700, Elhanan wrote:
the user when getting reports would like to know more then just a listThis is a system design issue rather than anything that's Java specific.
of fields , so it would seem that a generic method which jumps up on
each buisness method being called, only get the current context (via
interfface which would implemented differently each time) is a
condradiction in terms.
Its probably best implemented by doing all database updates through stored procedures that generate the audit log while doing any auditable database operation. If you want to record context then this must must be passed as a parameter to every stored procedure that generates audit trail entries. Context can be quite bulky: the user name, a timestamp, description of the operation and the name of the implementing class are all relevant and may be merely a subset of the context required if the system contains sensitive data. I haven't mentioned tracking field-level changes to the database - that's a given of you're doing anything like this.
However, doing this will carry costs during design and implementation as well as imposing disk storage and and processing overheads. Storage overheads need to be properly sized as they may be larger than anybody can guess. Indeed, the audit trail is probably a multi-table section of the database.
I'd say that management buy-in is essential if auditing is to be properly costed and those costs approved. Its also essential if the audit trail is actually used to track down bugs and user access violations.
Is this even a database question?
The OP discussed "fields", not a relational database concept, business methods, logic operations and parent objects. This sounds like a code-coverage question.
What confuses me is the mention of what "the user ... would like to know". This kind of auditing is rarely user-space but maintenance-space, for the benefit of operations personnel and maintenance programmers.
If this is about code coverage, it sounds like
a) rather too much work for too little benefit, and
b) a job for a logging aspect to the code.
--
Lew
.
- Follow-Ups:
- Re: auditing with context?
- From: Arved Sandstrom
- Re: auditing with context?
- From: Martin Gregorie
- Re: auditing with context?
- References:
- auditing with context?
- From: Elhanan
- Re: auditing with context?
- From: Martin Gregorie
- auditing with context?
- Prev by Date: Re: auditing with context?
- Next by Date: Generate xml from java object
- Previous by thread: Re: auditing with context?
- Next by thread: Re: auditing with context?
- Index(es):
Relevant Pages
|