/// <summary> /// Method for transforming event code enum into a CodedValueType. /// </summary> /// <param name="eventTypeCode"></param> /// <returns></returns> private static EventTypeCode GetEventTypeCode(SecurityAlertEventTypeCodeEnum eventTypeCode) { EventTypeCode type = null; if (eventTypeCode == SecurityAlertEventTypeCodeEnum.NodeAuthentication) { type = EventTypeCode.NodeAuthentication; } else if (eventTypeCode == SecurityAlertEventTypeCodeEnum.EmergencyOverride) { type = EventTypeCode.EmergencyOverride; } else if (eventTypeCode == SecurityAlertEventTypeCodeEnum.NetworkConfiguration) { type = EventTypeCode.NetworkConfiguration; } else if (eventTypeCode == SecurityAlertEventTypeCodeEnum.SecurityConfiguration) { type = EventTypeCode.SecurityConfiguration; } else if (eventTypeCode == SecurityAlertEventTypeCodeEnum.HardwareConfiguration) { type = EventTypeCode.HardwareConfiguration; } else if (eventTypeCode == SecurityAlertEventTypeCodeEnum.SoftwareConfiguration) { type = EventTypeCode.SoftwareConfiguration; } else if (eventTypeCode == SecurityAlertEventTypeCodeEnum.UseOfRestrictedFunction) { type = EventTypeCode.UseOfRestrictedFunction; } else if (eventTypeCode == SecurityAlertEventTypeCodeEnum.AuditRecordingStopped) { type = EventTypeCode.AuditRecordingStopped; } else if (eventTypeCode == SecurityAlertEventTypeCodeEnum.AuditRecordingStarted) { type = EventTypeCode.AuditRecordingStarted; } else if (eventTypeCode == SecurityAlertEventTypeCodeEnum.ObjectSecurityAttributesChanged) { type = EventTypeCode.ObjectSecurityAttributesChanged; } else if (eventTypeCode == SecurityAlertEventTypeCodeEnum.SecurityRolesChanged) { type = EventTypeCode.SecurityRolesChanged; } else if (eventTypeCode == SecurityAlertEventTypeCodeEnum.UserSecurityAttributesChanged) { type = EventTypeCode.UserSecurityAttributesChanged; } return(type); }
/// <summary> /// Constructor. /// </summary> public DicomInstancesAccessedAuditHelper(DicomAuditSource auditSource, EventIdentificationContentsEventOutcomeIndicator outcome, EventIdentificationContentsEventActionCode action, EventTypeCode type) : base("DicomInstancesAccessed") { AuditMessage.EventIdentification = new EventIdentificationContents { EventID = EventID.DICOMInstancesAccessed, EventActionCode = action, EventActionCodeSpecified = true, EventTypeCode = new[] {type}, EventDateTime = Platform.Time.ToUniversalTime(), EventOutcomeIndicator = outcome }; InternalAddAuditSource(auditSource); }
/// <summary> /// Constructor. /// </summary> public DicomInstancesAccessedAuditHelper(DicomAuditSource auditSource, EventIdentificationContentsEventOutcomeIndicator outcome, EventIdentificationContentsEventActionCode action, EventTypeCode type) : base("DicomInstancesAccessed") { AuditMessage.EventIdentification = new EventIdentificationContents { EventID = EventID.DICOMInstancesAccessed, EventActionCode = action, EventActionCodeSpecified = true, EventTypeCode = new[] { type }, EventDateTime = Platform.Time.ToUniversalTime(), EventOutcomeIndicator = outcome }; InternalAddAuditSource(auditSource); }