예제 #1
0
        public AuditSecurityAlertParticipantObject(ParticipantObjectTypeCodeRoleEnum role, ParticipantObjectIDTypeCode objectIdType, string participantObjectId)
        {
            Platform.CheckForNullReference(participantObjectId, "participantObjectId");

            ParticipantObjectTypeCode         = ParticipantObjectTypeCodeEnum.SystemObject;
            ParticipantObjectTypeCodeRole     = role;
            ParticipantObjectIdTypeCodedValue = objectIdType;
            _participantObjectId = participantObjectId;
        }
예제 #2
0
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="role">Code representing the functional application role of Participant Object being audited</param>
        /// <param name="objectIdType">Describes the identifier that is contained in Participant Object ID.</param>
        /// <param name="participantObjectId">The Identifier for the participant object.</param>
        /// <param name="participantObjectName">The name (type) of object</param>
        public HealthcareDataParticipantObject(ParticipantObjectTypeCodeRoleEnum role,
                                               ParticipantObjectIdTypeCodeEnum objectIdType, string participantObjectId, string participantObjectName)
        {
            Platform.CheckForNullReference(participantObjectId, "participantObjectId");

            ParticipantObjectTypeCode     = ParticipantObjectTypeCodeEnum.SystemObject;
            ParticipantObjectTypeCodeRole = role;
            ParticipantObjectIdTypeCode   = objectIdType;
            _participantObjectId          = participantObjectId;
            _participantObjectName        = participantObjectName;
        }
예제 #3
0
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="role">Code representing the functional application role of Participant Object being audited</param>
        /// <param name="objectIdType">Describes the identifier that is contained in Participant Object ID.</param>
        /// <param name="participantObjectId">The Identifier for the participant object.</param>
        /// <param name="participantObjectName">The name (type) of object</param>
        /// <param name="participantObjectDetailType">The type of object encoded in <paramref name="participantObjectDetailString"/>.</param>
        /// <param name="participantObjectDetailString">A detailed string describing the object</param>
        public HealthcareDataParticipantObject(ParticipantObjectTypeCodeRoleEnum role,
                                               ParticipantObjectIdTypeCodeEnum objectIdType, string participantObjectId, string participantObjectName, string participantObjectDetailType, string participantObjectDetailString)
        {
            Platform.CheckForNullReference(participantObjectId, "participantObjectId");

            ParticipantObjectTypeCode     = ParticipantObjectTypeCodeEnum.SystemObject;
            ParticipantObjectTypeCodeRole = role;
            ParticipantObjectIdTypeCode   = objectIdType;
            _participantObjectId          = participantObjectId;
            _participantObjectName        = participantObjectName;
            if (!string.IsNullOrEmpty(participantObjectDetailType) && !string.IsNullOrEmpty(participantObjectDetailString))
            {
                var encoding = new ASCIIEncoding();
                ParticipantObjectDetail = new ParticipantObjectDetail()
                {
                    type  = participantObjectDetailType,
                    value = encoding.GetBytes(participantObjectDetailString)
                };
            }
        }
예제 #4
0
		public ParticipantObjectIdentificationType(ParticipantObjectTypeCodeEnum? type, 
			ParticipantObjectTypeCodeRoleEnum? role,
			ParticipantObjectDataLifeCycleEnum? lifeCycle, 
			string participantObjectId, 
			ParticipantObjectIdTypeCodeEnum typeCode)
		{
			if (type.HasValue)
			{
				ParticipantObjectTypeCode = (byte)type.Value;
				ParticipantObjectTypeCodeSpecified = true;
			}
			else ParticipantObjectTypeCodeSpecified = false;

			if (role.HasValue)
			{
				ParticipantObjectTypeCodeRole = (byte)role.Value;
				ParticipantObjectTypeCodeRoleSpecified = true;
			}
			else
				ParticipantObjectTypeCodeRoleSpecified = false;

			if (lifeCycle.HasValue)
			{
				ParticipantObjectDataLifeCycle = (byte)lifeCycle.Value;
				ParticipantObjectDataLifeCycleSpecified = true;
			}
			else
				ParticipantObjectDataLifeCycleSpecified = false;

			ParticipantObjectID = participantObjectId;

			ParticipantObjectIDTypeCode = new ParticipantObjectIdentificationTypeParticipantObjectIDTypeCode(typeCode);
		}
예제 #5
0
        public AuditSecurityAlertParticipantObject(ParticipantObjectTypeCodeRoleEnum role, ParticipantObjectIDTypeCode objectIdType, string participantObjectId)
        {
            Platform.CheckForNullReference(participantObjectId, "participantObjectId");

            ParticipantObjectTypeCode = ParticipantObjectTypeCodeEnum.SystemObject;
            ParticipantObjectTypeCodeRole = role;
            ParticipantObjectIdTypeCodedValue = objectIdType;
            _participantObjectId = participantObjectId;
        }
		/// <summary>
		/// Constructor.
		/// </summary>
		/// <param name="role">Code representing the functional application role of Participant Object being audited</param>
		/// <param name="objectIdType">Describes the identifier that is contained in Participant Object ID.</param>
		/// <param name="participantObjectId">The Identifier for the participant object.</param>
		/// <param name="participantObjectName">The name (type) of object</param>
		public HealthcareDataParticipantObject(ParticipantObjectTypeCodeRoleEnum role,
			ParticipantObjectIdTypeCodeEnum objectIdType, string participantObjectId, string participantObjectName)
		{
			Platform.CheckForNullReference(participantObjectId, "participantObjectId");

			ParticipantObjectTypeCode = ParticipantObjectTypeCodeEnum.SystemObject;
			ParticipantObjectTypeCodeRole = role;
			ParticipantObjectIdTypeCode = objectIdType;
			_participantObjectId = participantObjectId;
			_participantObjectName = participantObjectName;
		}
		/// <summary>
		/// Constructor.
		/// </summary>
		/// <param name="role">Code representing the functional application role of Participant Object being audited</param>
		/// <param name="objectIdType">Describes the identifier that is contained in Participant Object ID.</param>
		/// <param name="participantObjectId">The Identifier for the participant object.</param>
		/// <param name="participantObjectName">The name (type) of object</param>
		/// <param name="participantObjectDetailType">The type of object encoded in <paramref name="participantObjectDetailString"/>.</param>
		/// <param name="participantObjectDetailString">A detailed string describing the object</param>
		public HealthcareDataParticipantObject(ParticipantObjectTypeCodeRoleEnum role, 
			ParticipantObjectIdTypeCodeEnum objectIdType, string participantObjectId, string participantObjectName, string participantObjectDetailType, string participantObjectDetailString)
		{
			Platform.CheckForNullReference(participantObjectId, "participantObjectId");

			ParticipantObjectTypeCode = ParticipantObjectTypeCodeEnum.SystemObject;
			ParticipantObjectTypeCodeRole = role;
			ParticipantObjectIdTypeCode = objectIdType;
			_participantObjectId = participantObjectId;
			_participantObjectName = participantObjectName;
			if (!string.IsNullOrEmpty(participantObjectDetailType) && !string.IsNullOrEmpty(participantObjectDetailString))
			{
				var encoding = new ASCIIEncoding();
				ParticipantObjectDetail = new ParticipantObjectDetail()
					{
						type = participantObjectDetailType,
						value = encoding.GetBytes(participantObjectDetailString)
					};
			}
		}