org.dcm4che2.audit.message
Class AuditEvent

java.lang.Object
  extended by org.dcm4che2.audit.message.AuditEvent

public class AuditEvent
extends java.lang.Object

Event Identification. Identifies the name, action type, time, and disposition of the audited event.

Since:
Nov 17, 2006
Version:
$Revision: 14557 $ $Date: 2010-12-16 13:10:55 +0100 (Thu, 16 Dec 2010) $
Author:
Gunter Zeilinger

Nested Class Summary
static class AuditEvent.ActionCode
          Enumeration of types of action performed during the event that generated the audit.
static class AuditEvent.ID
          Identifier for a specific audited event, e.g., a menu item, program, rule, policy, function code, application name, or URL.
static class AuditEvent.OutcomeIndicator
          Enumeration of values to indicate whether the event succeeded or failed.
static class AuditEvent.TypeCode
          Identifier for the category of event.
 
Field Summary
protected  java.lang.String name
           
 
Constructor Summary
AuditEvent(AuditEvent.ID eventID, AuditEvent.ActionCode action)
           
 
Method Summary
protected  void addAttribute(java.lang.String name, byte[] val, boolean optional)
           
protected  void addAttribute(java.lang.String name, java.util.Date val, boolean optional)
           
protected  void addAttribute(java.lang.String name, java.lang.Object val, boolean optional)
           
 AuditEvent addEventTypeCode(AuditEvent.TypeCode code)
           
protected  java.lang.Object getAttribute(java.lang.String name)
           
 AuditEvent.ActionCode getEventActionCode()
           
 java.util.Date getEventDateTime()
           
 AuditEvent.ID getEventID()
           
 AuditEvent.OutcomeIndicator getEventOutcomeIndicator()
           
 java.util.List<AuditEvent.TypeCode> getEventTypeCodes()
           
protected  boolean isEmpty()
           
 void output(java.io.Writer out)
           
protected  void outputChilds(java.io.Writer out, java.util.List<? extends org.dcm4che2.audit.message.BaseElement> childs)
           
protected  void outputContent(java.io.Writer out)
          Allows subclasses to write content to the output.
 AuditEvent setEventDateTime(java.util.Date datetime)
           
 AuditEvent setOutcomeIndicator(AuditEvent.OutcomeIndicator outcome)
           
 java.lang.String toString()
           
 java.lang.String toString(int initialSize)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected final java.lang.String name
Constructor Detail

AuditEvent

public AuditEvent(AuditEvent.ID eventID,
                  AuditEvent.ActionCode action)
Method Detail

getEventID

public AuditEvent.ID getEventID()

getEventActionCode

public AuditEvent.ActionCode getEventActionCode()

getEventDateTime

public java.util.Date getEventDateTime()

setEventDateTime

public AuditEvent setEventDateTime(java.util.Date datetime)

getEventOutcomeIndicator

public AuditEvent.OutcomeIndicator getEventOutcomeIndicator()

setOutcomeIndicator

public AuditEvent setOutcomeIndicator(AuditEvent.OutcomeIndicator outcome)

getEventTypeCodes

public java.util.List<AuditEvent.TypeCode> getEventTypeCodes()

addEventTypeCode

public AuditEvent addEventTypeCode(AuditEvent.TypeCode code)

isEmpty

protected boolean isEmpty()

outputContent

protected void outputContent(java.io.Writer out)
                      throws java.io.IOException
Allows subclasses to write content to the output. Note to implementers: isEmpty() should also be overridden to return false, otherwise this method will not be called.

Parameters:
out - the writer to write the output to.
Throws:
java.io.IOException - thrown by derived classes if an error occurs.

addAttribute

protected void addAttribute(java.lang.String name,
                            java.lang.Object val,
                            boolean optional)

addAttribute

protected void addAttribute(java.lang.String name,
                            java.util.Date val,
                            boolean optional)

addAttribute

protected void addAttribute(java.lang.String name,
                            byte[] val,
                            boolean optional)

getAttribute

protected java.lang.Object getAttribute(java.lang.String name)

output

public void output(java.io.Writer out)
            throws java.io.IOException
Throws:
java.io.IOException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toString

public java.lang.String toString(int initialSize)

outputChilds

protected void outputChilds(java.io.Writer out,
                            java.util.List<? extends org.dcm4che2.audit.message.BaseElement> childs)
                     throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2011 dcm4che. All Rights Reserved.