org.dcm4che2.audit.message
Class AuditSource

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

public class AuditSource
extends java.lang.Object

Identifies the system that detected the auditable event and created the audit message.

Since:
Nov 17, 2006
Version:
$Revision: 5685 $ $Date: 2008-01-15 21:05:18 +0100 (Tue, 15 Jan 2008) $
Author:
Gunter Zeilinger

Nested Class Summary
static class AuditSource.TypeCode
           
 
Field Summary
protected  java.lang.String name
           
 
Constructor Summary
AuditSource(java.lang.String id)
           
 
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)
           
 AuditSource addAuditSourceTypeCode(AuditSource.TypeCode code)
           
 AuditSource clearAuditSourceTypeCodes()
           
protected  java.lang.Object getAttribute(java.lang.String name)
           
 java.lang.String getAuditEnterpriseSiteID()
           
 java.lang.String getAuditSourceID()
           
 java.util.List<AuditSource.TypeCode> getAuditSourceTypeCodes()
           
static AuditSource getDefaultAuditSource()
           
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.
 AuditSource setAuditEnterpriseSiteID(java.lang.String id)
           
 void setAuditSourceID(java.lang.String id)
           
static void setDefaultAuditSource(AuditSource defAuditSource)
           
 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

AuditSource

public AuditSource(java.lang.String id)
Method Detail

setAuditSourceID

public final void setAuditSourceID(java.lang.String id)

getAuditSourceID

public final java.lang.String getAuditSourceID()

getAuditEnterpriseSiteID

public final java.lang.String getAuditEnterpriseSiteID()

setAuditEnterpriseSiteID

public final AuditSource setAuditEnterpriseSiteID(java.lang.String id)

getAuditSourceTypeCodes

public final java.util.List<AuditSource.TypeCode> getAuditSourceTypeCodes()

addAuditSourceTypeCode

public AuditSource addAuditSourceTypeCode(AuditSource.TypeCode code)

clearAuditSourceTypeCodes

public AuditSource clearAuditSourceTypeCodes()

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.

getDefaultAuditSource

public static AuditSource getDefaultAuditSource()

setDefaultAuditSource

public static void setDefaultAuditSource(AuditSource defAuditSource)

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.