org.dcm4che2.audit.message
Class AuditSource
java.lang.Object
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
Field Summary |
protected java.lang.String |
name
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
name
protected final java.lang.String name
AuditSource
public AuditSource(java.lang.String id)
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.