Ejemplo n.º 1
0
		/// <summary>
		/// Constructor
		/// </summary>
		/// <param name="auditSource">The source of the audit</param>
		/// <param name="outcome">The outcome</param>
		/// <param name="uriOfAuditLog">Add the Identity of the Audit Log.  </param>
		public AuditLogUsedAuditHelper(DicomAuditSource auditSource, EventIdentificationTypeEventOutcomeIndicator outcome,
			string uriOfAuditLog)
			: base("AuditLogUsed")
		{
			AuditMessage.EventIdentification = new EventIdentificationType();
			AuditMessage.EventIdentification.EventID = CodedValueType.AuditLogUsed;
			AuditMessage.EventIdentification.EventActionCode = EventIdentificationTypeEventActionCode.R;
			AuditMessage.EventIdentification.EventActionCodeSpecified = true;
			AuditMessage.EventIdentification.EventDateTime = Platform.Time.ToUniversalTime();
			AuditMessage.EventIdentification.EventOutcomeIndicator = outcome;

			InternalAddAuditSource(auditSource);

			AuditSecurityAlertParticipantObject o =
				new AuditSecurityAlertParticipantObject(ParticipantObjectTypeCodeRoleEnum.SecurityResource,
														ParticipantObjectIdTypeCodeEnum.URI, uriOfAuditLog,
														"Security Audit Log");
			// Only one can be included.
			_participantObjectList.Clear();
			_participantObjectList.Add(uriOfAuditLog, o);
		}
Ejemplo n.º 2
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="auditSource">The source of the audit</param>
        /// <param name="outcome">The outcome</param>
        /// <param name="uriOfAuditLog">Add the Identity of the Audit Log.  </param>
        public AuditLogUsedAuditHelper(DicomAuditSource auditSource, EventIdentificationTypeEventOutcomeIndicator outcome,
                                       string uriOfAuditLog)
            : base("AuditLogUsed")
        {
            AuditMessage.EventIdentification                          = new EventIdentificationType();
            AuditMessage.EventIdentification.EventID                  = CodedValueType.AuditLogUsed;
            AuditMessage.EventIdentification.EventActionCode          = EventIdentificationTypeEventActionCode.R;
            AuditMessage.EventIdentification.EventActionCodeSpecified = true;
            AuditMessage.EventIdentification.EventDateTime            = Platform.Time.ToUniversalTime();
            AuditMessage.EventIdentification.EventOutcomeIndicator    = outcome;

            InternalAddAuditSource(auditSource);

            AuditSecurityAlertParticipantObject o =
                new AuditSecurityAlertParticipantObject(ParticipantObjectTypeCodeRoleEnum.SecurityResource,
                                                        ParticipantObjectIdTypeCodeEnum.URI, uriOfAuditLog,
                                                        "Security Audit Log");

            // Only one can be included.
            _participantObjectList.Clear();
            _participantObjectList.Add(uriOfAuditLog, o);
        }
 /// <summary>
 /// Add details of a SecurityAlert Participant.
 /// </summary>
 /// <param name="o"></param>
 public void AddSecurityAlertParticipant(AuditSecurityAlertParticipantObject o)
 {
     _participantObjectList.Add(o.ParticipantObjectId, o);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Add details of a SecurityAlert Participant.
 /// </summary>
 /// <param name="o"></param>
 public void AddSecurityAlertParticipant(AuditSecurityAlertParticipantObject o)
 {
     _participantObjectList.Add(o.ParticipantObjectId, o);
 }