示例#1
0
 public ParticipantObjectIdentificationTypeParticipantObjectIDTypeCode(CodedValueType value)
 {
     code           = value.code;
     codeSystem     = value.codeSystem;
     codeSystemName = value.codeSystemName;
     displayName    = value.displayName;
     originalText   = value.originalText;
 }
        /// <summary>
        /// Method for transforming event code enum into a CodedValueType.
        /// </summary>
        /// <param name="eventTypeCode"></param>
        /// <returns></returns>
        private static CodedValueType GetEventTypeCode(SecurityAlertEventTypeCodeEnum eventTypeCode)
        {
            CodedValueType type = null;

            if (eventTypeCode == SecurityAlertEventTypeCodeEnum.NodeAuthentication)
            {
                type = CodedValueType.NodeAuthentication;
            }
            else if (eventTypeCode == SecurityAlertEventTypeCodeEnum.EmergencyOverride)
            {
                type = CodedValueType.EmergencyOverride;
            }
            else if (eventTypeCode == SecurityAlertEventTypeCodeEnum.NetworkConfiguration)
            {
                type = CodedValueType.NetworkConfiguration;
            }
            else if (eventTypeCode == SecurityAlertEventTypeCodeEnum.SecurityConfiguration)
            {
                type = CodedValueType.SecurityConfiguration;
            }
            else if (eventTypeCode == SecurityAlertEventTypeCodeEnum.HardwareConfiguration)
            {
                type = CodedValueType.HardwareConfiguration;
            }
            else if (eventTypeCode == SecurityAlertEventTypeCodeEnum.SoftwareConfiguration)
            {
                type = CodedValueType.SoftwareConfiguration;
            }
            else if (eventTypeCode == SecurityAlertEventTypeCodeEnum.UseOfRestrictedFunction)
            {
                type = CodedValueType.UseOfRestrictedFunction;
            }
            else if (eventTypeCode == SecurityAlertEventTypeCodeEnum.AuditRecordingStopped)
            {
                type = CodedValueType.AuditRecordingStopped;
            }
            else if (eventTypeCode == SecurityAlertEventTypeCodeEnum.AuditRecordingStarted)
            {
                type = CodedValueType.AuditRecordingStarted;
            }
            else if (eventTypeCode == SecurityAlertEventTypeCodeEnum.ObjectSecurityAttributesChanged)
            {
                type = CodedValueType.ObjectSecurityAttributesChanged;
            }
            else if (eventTypeCode == SecurityAlertEventTypeCodeEnum.SecurityRolesChanged)
            {
                type = CodedValueType.SecurityRolesChanged;
            }
            else if (eventTypeCode == SecurityAlertEventTypeCodeEnum.UserSecurityAttributesChanged)
            {
                type = CodedValueType.UserSecurityAttributesChanged;
            }
            return(type);
        }
示例#3
0
        public AuditMessageActiveParticipant(CodedValueType roleId, string _userIDField, string alternateUserId, string _userNameField, string _networkAccessPointIDField, NetworkAccessPointTypeEnum?_networkAccessPointTypeCode, bool?userIsRequestor)
        {
            if (roleId != null)
            {
                RoleIDCode    = new CodedValueType[1];
                RoleIDCode[0] = roleId;
            }

            if (userIsRequestor.HasValue)
            {
                UserIsRequestor = userIsRequestor.Value;
            }

            if (_userIDField != null)
            {
                UserID = _userIDField;
            }

            if (alternateUserId != null)
            {
                AlternativeUserID = alternateUserId;
            }

            if (_userNameField != null)
            {
                UserName = _userNameField;
            }

            if (_networkAccessPointIDField != null)
            {
                NetworkAccessPointID = _networkAccessPointIDField;
            }

            if (_networkAccessPointTypeCode.HasValue)
            {
                NetworkAccessPointTypeCode          = (byte)_networkAccessPointTypeCode.Value;
                NetworkAccessPointTypeCodeSpecified = true;
            }
            else
            {
                NetworkAccessPointTypeCodeSpecified = false;
            }
        }
示例#4
0
        public AuditMessageActiveParticipant(AuditActiveParticipant participant)
        {
            if (participant.RoleIdCode != null)
            {
                RoleIDCode    = new CodedValueType[1];
                RoleIDCode[0] = participant.RoleIdCode;
            }
            if (participant.UserIsRequestor.HasValue)
            {
                UserIsRequestor = participant.UserIsRequestor.Value;
            }
            if (participant.UserId != null)
            {
                UserID = participant.UserId;
            }
            if (participant.AlternateUserId != null)
            {
                AlternativeUserID = participant.AlternateUserId;
            }
            if (participant.UserName != null)
            {
                UserName = participant.UserName;
            }

            if (participant.NetworkAccessPointId != null)
            {
                NetworkAccessPointID = participant.NetworkAccessPointId;
            }

            if (participant.NetworkAccessPointType.HasValue)
            {
                NetworkAccessPointTypeCode          = (byte)participant.NetworkAccessPointType.Value;
                NetworkAccessPointTypeCodeSpecified = true;
            }
            else
            {
                NetworkAccessPointTypeCodeSpecified = false;
            }
        }
示例#5
0
		public ParticipantObjectIdentificationTypeParticipantObjectIDTypeCode(CodedValueType value)
		{
			code = value.code;
			codeSystem = value.codeSystem;
			codeSystemName = value.codeSystemName;
			displayName = value.displayName;
			originalText = value.originalText;
		}
示例#6
0
		public AuditMessageActiveParticipant(CodedValueType roleId, string _userIDField, string alternateUserId, string _userNameField, string _networkAccessPointIDField, NetworkAccessPointTypeEnum? _networkAccessPointTypeCode, bool? userIsRequestor)
		{
			if (roleId != null)
			{
				RoleIDCode = new CodedValueType[1];
				RoleIDCode[0] = roleId;
			}

			if (userIsRequestor.HasValue)
				UserIsRequestor = userIsRequestor.Value;

			if (_userIDField != null)
				UserID = _userIDField;

			if (alternateUserId != null)
				AlternativeUserID = alternateUserId;

			if (_userNameField != null)
				UserName = _userNameField;

			if (_networkAccessPointIDField != null)
				NetworkAccessPointID = _networkAccessPointIDField;

			if (_networkAccessPointTypeCode.HasValue)
			{
				NetworkAccessPointTypeCode = (byte)_networkAccessPointTypeCode.Value;
				NetworkAccessPointTypeCodeSpecified = true;
			}
			else
				NetworkAccessPointTypeCodeSpecified = false;
		}
示例#7
0
		public AuditMessageActiveParticipant(AuditActiveParticipant participant)
		{
			if (participant.RoleIdCode != null)
			{
				RoleIDCode = new CodedValueType[1];
				RoleIDCode[0] = participant.RoleIdCode;
			}
			if (participant.UserIsRequestor.HasValue)
			{
				UserIsRequestor = participant.UserIsRequestor.Value;
			}
			if (participant.UserId != null)
			{
				UserID = participant.UserId;
			}
			if (participant.AlternateUserId != null)
			{
				AlternativeUserID = participant.AlternateUserId;
			}
			if (participant.UserName != null)
				UserName = participant.UserName;

			if (participant.NetworkAccessPointId != null)
				NetworkAccessPointID = participant.NetworkAccessPointId;

			if (participant.NetworkAccessPointType.HasValue)
			{
				NetworkAccessPointTypeCode = (byte) participant.NetworkAccessPointType.Value;
				NetworkAccessPointTypeCodeSpecified = true;
			}
			else
				NetworkAccessPointTypeCodeSpecified = false;
		}