public AuditSecurityAlertParticipantObject(ParticipantObjectTypeCodeRoleEnum role, ParticipantObjectIdTypeCodeEnum objectIdType, string participantObjectId) { Platform.CheckForNullReference(participantObjectId, "participantObjectId"); ParticipantObjectTypeCode = ParticipantObjectTypeCodeEnum.SystemObject; ParticipantObjectTypeCodeRole = role; ParticipantObjectIdTypeCode = 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) }; } }
public ParticipantObjectIdentificationContents(ParticipantObjectTypeCodeEnum?type, ParticipantObjectTypeCodeRoleEnum?role, ParticipantObjectDataLifeCycleEnum?lifeCycle, string participantObjectId, ParticipantObjectIdTypeCodeEnum typeCode) { if (type.HasValue) { ParticipantObjectTypeCode = (ParticipantObjectIdentificationContentsParticipantObjectTypeCode)type.Value; ParticipantObjectTypeCodeSpecified = true; } else { ParticipantObjectTypeCodeSpecified = false; } if (role.HasValue) { ParticipantObjectTypeCodeRole = (ParticipantObjectIdentificationContentsParticipantObjectTypeCodeRole)role.Value; ParticipantObjectTypeCodeRoleSpecified = true; } else { ParticipantObjectTypeCodeRoleSpecified = false; } if (lifeCycle.HasValue) { ParticipantObjectDataLifeCycle = (ParticipantObjectIdentificationContentsParticipantObjectDataLifeCycle)lifeCycle.Value; ParticipantObjectDataLifeCycleSpecified = true; } else { ParticipantObjectDataLifeCycleSpecified = false; } ParticipantObjectID = participantObjectId; ParticipantObjectIDTypeCode = new ParticipantObjectIDTypeCode(typeCode); }
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); }
public AuditSecurityAlertParticipantObject(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) }; } }