/// <summary> /// Instantiates the object. /// </summary> /// <param name="key">Object key.</param> /// <param name="action">Action performed.</param> /// <param name="metadata">Request metadata.</param> public AuditLogEntry(string key, AuditLogEntryType action, string metadata) { GUID = Guid.NewGuid().ToString(); CreatedUtc = DateTime.Now.ToUniversalTime(); ObjectKey = key; Action = action; Metadata = metadata; }
internal AuditLogEntry(string containerGuid, string objectGuid, AuditLogEntryType action, string metadata) { GUID = Guid.NewGuid().ToString(); ContainerGUID = containerGuid; ObjectGUID = objectGuid; CreatedUtc = DateTime.Now.ToUniversalTime(); Action = action; Metadata = metadata; }
public AuditLogEntry(AuditLogEntryType auditType, DomainEventType eventType, string userName, Guid eventStreamId, int eventId, DataAccessType?dataAccessType) { this.AuditType = auditType; this.DomainEventType = eventType; this.UserName = userName; this.EventStreamId = eventStreamId; this.EventId = eventId; this.DataAccessType = dataAccessType; this.Timestamp = DateTimeOffset.UtcNow; }
public static string GetTitleForEntryType(AuditLogEntryType entryType) { switch (entryType) { case AuditLogEntryType.eDiscoveryUserLogin: return("eDiscovery User Login"); case AuditLogEntryType.eDiscoveryUserPackageAccess: return("eDiscovery Package Access"); case AuditLogEntryType.eDiscoveryPackageCreated: return("eDiscovery Package Created"); case AuditLogEntryType.eDiscoveryRecipientAdded: return("eDiscovery Recipient Added"); case AuditLogEntryType.eDiscoveryRecipientRegenerated: return("eDiscovery Recipient Password Regenerated"); case AuditLogEntryType.eDiscoveryRecipientDeleted: return("eDiscovery Recipient Deleted"); case AuditLogEntryType.LEOUploadOfficerAdded: return("LEO Officer Added"); case AuditLogEntryType.LEOUploadOfficerDeleted: return("LEO Officer Deleted"); case AuditLogEntryType.LEOUploadOfficerRegenerated: return("LEO Officer had their Password regenerated"); case AuditLogEntryType.LEOUploadUserLogin: return("LEO Officer Logged In."); case AuditLogEntryType.LEOUploadOfficerUpload: return("LEO Officer Upload"); default: return("No Mapping for entry type"); } }