Class NetworkEntryBuilder
java.lang.Object
org.openehealth.ipf.commons.audit.event.BaseAuditMessageBuilder<NetworkEntryBuilder>
org.openehealth.ipf.commons.audit.event.NetworkEntryBuilder
- All Implemented Interfaces:
AuditMessageBuilder<NetworkEntryBuilder>
,Validateable
- Direct Known Subclasses:
NetworkEntryBuilder.EnteringNetwork
,NetworkEntryBuilder.LeavingNetwork
Builds an Audit Event representing a Network Entry event as specified in
http://dicom.nema.org/medical/dicom/current/output/html/part15.html#sect_A.5.3.9
This message describes the event of a system, such as a mobile device, intentionally entering or leaving the network.
- Since:
- 3.5
- Author:
- Christian Ohr
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Constructor Summary
ConstructorDescriptionNetworkEntryBuilder
(EventOutcomeIndicator outcome, String eventOutcomeDescription, EventTypeCode eventTypeCode) -
Method Summary
Modifier and TypeMethodDescriptionsetSystemParticipant
(String userId, String altUserId, String userName, ActiveParticipantRoleIdCode roleId, String networkId) Sets the Active Participant of the Node or System entering or leaving the networkvoid
validate()
Validates the constructed audit message against the specification, because API does not completely prevent constructing incomplete or inconsistent messages.Methods inherited from class org.openehealth.ipf.commons.audit.event.BaseAuditMessageBuilder
addActiveParticipant, addActiveParticipant, addActiveParticipant, addDestinationActiveParticipant, addParticipantObjectIdentification, addParticipantObjectIdentification, addParticipantObjectIdentification, addPatientParticipantObject, addSourceActiveParticipant, addStudyParticipantObject, getMessage, getNetworkAccessPointCodeFromAddress, setAuditSource, setAuditSource, setAuditSource, setAuditSource, setAuditSourceIdentification, setAuditSourceIdentification, setAuditSourceIdentification, setEventIdentification, setEventIdentification
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.openehealth.ipf.commons.audit.event.AuditMessageBuilder
getMessages, getTypeValuePair, getTypeValuePair, getTypeValuePair, getTypeValuePair, self
-
Constructor Details
-
NetworkEntryBuilder
public NetworkEntryBuilder(EventOutcomeIndicator outcome, String eventOutcomeDescription, EventTypeCode eventTypeCode)
-
-
Method Details
-
setSystemParticipant
public NetworkEntryBuilder setSystemParticipant(String userId, String altUserId, String userName, ActiveParticipantRoleIdCode roleId, String networkId) Sets the Active Participant of the Node or System entering or leaving the network- Parameters:
userId
- The person or process accessing the audit trail. If both are known, then two active participants shall be included (both the person and the process).altUserId
- Alternate UserIDuserName
- UserNamenetworkId
- Network Access Point ID
-
validate
public void validate()Description copied from interface:Validateable
Validates the constructed audit message against the specification, because API does not completely prevent constructing incomplete or inconsistent messages.- Specified by:
validate
in interfaceValidateable
- Overrides:
validate
in classBaseAuditMessageBuilder<NetworkEntryBuilder>
-