org.dcm4che2.audit.message
Class AuditMessage
java.lang.Object
org.dcm4che2.audit.message.AuditMessage
- Direct Known Subclasses:
- ApplicationActivityMessage, AuditLogUsedMessage, AuditMessageSupport, BeginTransferringMessage, DataExportMessage, DataImportMessage, InstancesTransferredMessage, NetworkEntryMessage, QueryMessage, SecurityAlertMessage, StudyDeletedMessage, UserAuthenticationMessage
public class AuditMessage
- extends java.lang.Object
Generic Audit Message according RFC 3881. Typically an event type specific
sub-class will be initiated.
- Since:
- Nov 17, 2006
- Version:
- $Revision: 10568 $ $Date: 2009-03-31 15:36:47 +0200 (Tue, 31 Mar 2009) $
- Author:
- Gunter Zeilinger
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
event
protected final AuditEvent event
activeParticipants
protected final java.util.ArrayList<ActiveParticipant> activeParticipants
auditSources
protected final java.util.ArrayList<AuditSource> auditSources
participantObjects
protected final java.util.ArrayList<ParticipantObject> participantObjects
name
protected final java.lang.String name
AuditMessage
public AuditMessage(AuditEvent event)
getAuditEvent
public final AuditEvent getAuditEvent()
setEventDateTime
public void setEventDateTime(java.util.Date datetime)
setOutcomeIndicator
public void setOutcomeIndicator(AuditEvent.OutcomeIndicator outcome)
getAuditSources
public java.util.List<AuditSource> getAuditSources()
addAuditSource
public AuditSource addAuditSource(AuditSource sourceId)
getActiveParticipants
public java.util.List<ActiveParticipant> getActiveParticipants()
getRequestingActiveParticipants
public ActiveParticipant getRequestingActiveParticipants()
addActiveParticipant
public ActiveParticipant addActiveParticipant(ActiveParticipant apart)
getParticipantObjects
public java.util.List<ParticipantObject> getParticipantObjects()
addParticipantObject
public ParticipantObject addParticipantObject(ParticipantObject obj)
isEmpty
protected boolean isEmpty()
toString
public java.lang.String toString()
output
public void output(java.io.Writer out)
throws java.io.IOException
- Throws:
java.io.IOException
validate
public void validate()
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.
isIncludeXMLDeclaration
public static final boolean isIncludeXMLDeclaration()
setIncludeXMLDeclaration
public static final void setIncludeXMLDeclaration(boolean incXMLDecl)
isTimezonedDateTime
public static final boolean isTimezonedDateTime()
setTimezonedDateTime
public static final void setTimezonedDateTime(boolean timezonedDateTime)
isUtcDateTime
public static final boolean isUtcDateTime()
setUtcDateTime
public static final void setUtcDateTime(boolean utcDateTime)
isQualifyHostname
public static final boolean isQualifyHostname()
setQualifyHostname
public static final void setQualifyHostname(boolean qualifyHostname)
getProcessID
public static java.lang.String getProcessID()
getProcessName
public static java.lang.String getProcessName()
setProcessName
public static void setProcessName(java.lang.String processName)
getLocalAETitles
public static java.lang.String[] getLocalAETitles()
setLocalAETitles
public static void setLocalAETitles(java.lang.String[] aets)
isEnableDNSLookups
public static boolean isEnableDNSLookups()
setEnableDNSLookups
public static void setEnableDNSLookups(boolean enableDNSLookups)
hostNameOf
public static java.lang.String hostNameOf(java.net.InetAddress node)
nodeIDOf
public static java.lang.String nodeIDOf(java.net.InetAddress node)
getLocalHost
public static java.net.InetAddress getLocalHost()
getLocalHostName
public static java.lang.String getLocalHostName()
getLocalNodeID
public static java.lang.String getLocalNodeID()
aetToAltUserID
public static java.lang.String aetToAltUserID(java.lang.String aet)
aetsToAltUserID
public static java.lang.String aetsToAltUserID(java.lang.String[] aets)
altUserIDToAETs
public static java.lang.String[] altUserIDToAETs(java.lang.String altUserID)
toDateTimeStr
public static java.lang.String toDateTimeStr(java.util.Date date)
setAllowMultipleRequestors
public static void setAllowMultipleRequestors(boolean allowMultipleRequestors)
isAllowMultipleRequestors
public static boolean isAllowMultipleRequestors()
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)
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.