|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dcm4che2.audit.message.AuditMessage org.dcm4che2.audit.message.ApplicationActivityMessage
public class ApplicationActivityMessage
This audit message describes the event of an Application Entity starting or stopping.
Field Summary | |
---|---|
static AuditEvent.TypeCode |
APPLICATION_START
Action Type code for ApplicationActivityMessage(org.dcm4che2.audit.message.AuditEvent.TypeCode) . |
static AuditEvent.TypeCode |
APPLICATION_STOP
Action Type code for ApplicationActivityMessage(org.dcm4che2.audit.message.AuditEvent.TypeCode) . |
protected java.lang.String |
name
|
Fields inherited from class org.dcm4che2.audit.message.AuditMessage |
---|
activeParticipants, auditSources, event, participantObjects |
Constructor Summary | |
---|---|
ApplicationActivityMessage(AuditEvent.TypeCode typeCode)
Constructs an Application Entity message. |
Method Summary | |
---|---|
ActiveParticipant |
addApplication(java.lang.String processID,
java.lang.String[] aets,
java.lang.String processName,
java.lang.String nodeID)
Adds ActiveParticipant identifying the Application. |
ActiveParticipant |
addApplicationLauncher(java.lang.String userID,
java.lang.String altUserID,
java.lang.String userName,
java.lang.String napID)
Adds ActiveParticipant identifying the person or process that
started/stopped the Application. |
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)
|
protected java.lang.Object |
getAttribute(java.lang.String name)
|
protected void |
outputChilds(java.io.Writer out,
java.util.List<? extends org.dcm4che2.audit.message.BaseElement> childs)
|
java.lang.String |
toString(int initialSize)
|
void |
validate()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final AuditEvent.TypeCode APPLICATION_START
ApplicationActivityMessage(org.dcm4che2.audit.message.AuditEvent.TypeCode)
.
public static final AuditEvent.TypeCode APPLICATION_STOP
ApplicationActivityMessage(org.dcm4che2.audit.message.AuditEvent.TypeCode)
.
protected final java.lang.String name
Constructor Detail |
---|
public ApplicationActivityMessage(AuditEvent.TypeCode typeCode)
typeCode
- indicator for type of action, typically
APPLICATION_START
or APPLICATION_STOP
java.lang.NullPointerException
- If typeCode=null
Method Detail |
---|
public ActiveParticipant addApplication(java.lang.String processID, java.lang.String[] aets, java.lang.String processName, java.lang.String nodeID)
ActiveParticipant
identifying the Application.
processID
- the identity of the process started or stopped. Use
AuditMessageUtils#getProcessID()
for this Java VM.aets
- if the process supports DICOM, then the AE Titles supported,
otherwise null
processName
- process namenodeID
- DNS name or IP address of the node. Use
AuditMessageUtils#getLocalHostName()
for this node.
ActiveParticipant
identifying the Application.public ActiveParticipant addApplicationLauncher(java.lang.String userID, java.lang.String altUserID, java.lang.String userName, java.lang.String napID)
ActiveParticipant
identifying the person or process that
started/stopped the Application.
userID
- unique identifier for the person used by the applicationaltUserID
- Alternative User ID, used for authentication (e.g. SSO),
- if available, otherwise null
.userName
- person's name - if available, otherwise null
napID
- identifier for the user's network access point (Machine Name,
DNS name, IP Address or Telephone Number) - if available,
otherwise null
.
ActiveParticipant
identifying the person or process.public void validate()
validate
in class AuditMessage
protected void addAttribute(java.lang.String name, java.lang.Object val, boolean optional)
protected void addAttribute(java.lang.String name, java.util.Date val, boolean optional)
protected void addAttribute(java.lang.String name, byte[] val, boolean optional)
protected java.lang.Object getAttribute(java.lang.String name)
public java.lang.String toString(int initialSize)
protected void outputChilds(java.io.Writer out, java.util.List<? extends org.dcm4che2.audit.message.BaseElement> childs) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |