Real Time Information Director User Documentation
RTID Security and Auditing
Hewlett-Packard Company 13 529618 - 002
<DOCUMENTNAME>OBSERVATIONDETAIL_R_RECORDS
</DOCUMENTNAME>
<AUDITEVENTTYPE>3</AUDITEVENTTYPE>
<CONSUMERNAME>MICHAEL JONES</CONSUMERNAME>
<AGENTNAME>ALEC GARDINER</AGENTNAME>
</AUDITHEADER>
-
<AUDITHEADER>
<AUDITID>1100</AUDITID>
<AUDITTIME>2004-05-07T09:57:12</AUDITTIME>
<AGENTID>1000</AGENTID>
<ROLENAME>CRN</ROLENAME>
<DOCUMENTNAME>OBSERVATIONSUMMARY_R_RECOR
DS</DOCUMENTNAME>
<AUDITEVENTTYPE>3</AUDITEVENTTYPE>
<CONSUMERNAME>MICHAEL JONES</CONSUMERNAME>
<AGENTNAME>ALEC GARDINER</AGENTNAME>
</AUDITHEADER>
</KEYS>
</AUDITQUERYDATE>
Retrieving Information from Audit Detail Records
The Director also supports query documents that return information from the audit detail
records. For example, the following metadata file defines a query response that includes
an audit ID, the audit document type (inbound or outbound document), and the length of
the audit detail record:
package com.hp.ehr.documents;
import com.hp.rtid.metadata.*;
import com.hp.rtid.metadata.enrichment.*;
import java.sql.SQLException;
public class AuditDetail extends NativeDocumentDefinition
{
// Metadata Constructor:
public AuditDetail() throws MetadataInconsistency, SQLException
{
super(documentRecord(), "AUDITDETAIL","INVALID");
}
private static DocumentRecord documentRecord()
throws MetadataInconsistency, SQLException
{
return new RequestRecord("AUDITID AUDITDOCTYPE",
new RelatedRecords("AUDITDETAIL", new
ColumnList("AUDITDATALENGTH")));
}
}