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
public class NetworkEntryBuilder extends BaseAuditMessageBuilder<NetworkEntryBuilder>
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.9This 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
Nested Classes Modifier and Type Class Description static class
NetworkEntryBuilder.EnteringNetwork
static class
NetworkEntryBuilder.LeavingNetwork
-
Constructor Summary
Constructors Constructor Description NetworkEntryBuilder(EventOutcomeIndicator outcome, String eventOutcomeDescription, EventTypeCode eventTypeCode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 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 Detail
-
NetworkEntryBuilder
public NetworkEntryBuilder(EventOutcomeIndicator outcome, String eventOutcomeDescription, EventTypeCode eventTypeCode)
-
-
Method Detail
-
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>
-
-