-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEncodedAuditLogEntry.java
More file actions
63 lines (49 loc) · 1.74 KB
/
EncodedAuditLogEntry.java
File metadata and controls
63 lines (49 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
package net.staticstudios.audit;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.time.Instant;
import java.util.UUID;
public class EncodedAuditLogEntry {
private final @NotNull String actorType;
private final @NotNull UUID actorId;
private final @Nullable UUID sessionId;
private final @NotNull String applicationGroup;
private final @NotNull String applicationId;
private final @NotNull Instant timestamp;
private final @NotNull String actionId;
private final @NotNull String encodedData;
public EncodedAuditLogEntry(@NotNull String actorType, @NotNull UUID actorId, @Nullable UUID sessionId, @NotNull String applicationGroup, @NotNull String applicationId, @NotNull Instant timestamp, @NotNull String actionId, @NotNull String encodedData) {
this.actorType = actorType;
this.actorId = actorId;
this.sessionId = sessionId;
this.applicationGroup = applicationGroup;
this.applicationId = applicationId;
this.timestamp = timestamp;
this.actionId = actionId;
this.encodedData = encodedData;
}
public @NotNull String getActorType() {
return actorType;
}
public @NotNull UUID getActorId() {
return actorId;
}
public @Nullable UUID getSessionId() {
return sessionId;
}
public @NotNull String getApplicationGroup() {
return applicationGroup;
}
public @NotNull String getApplicationId() {
return applicationId;
}
public @NotNull Instant getTimestamp() {
return timestamp;
}
public @NotNull String getActionId() {
return actionId;
}
public @NotNull String getEncodedData() {
return encodedData;
}
}