-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathOperationModel.java
More file actions
25 lines (22 loc) · 934 Bytes
/
OperationModel.java
File metadata and controls
25 lines (22 loc) · 934 Bytes
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
package com.uid2.shared.audit;
/**
* Store the type of data, action that occurred, and any extra information necessary to know about the operation.
* Also stores the itemKey representing the operation. itemKey should be designed such that all read/writes
* affecting the same row(s) in the same table share the same value. It should be hashed in case the row identifier
* itself is sensitive information.
*/
public class OperationModel {
public final Type itemType;
public final String itemKey;
public final Actions actionTaken;
public final String itemHash;
public final String summary;
public OperationModel(Type itemType, String itemKey, Actions actionTaken,
String itemHash, String summary){
this.itemType = itemType;
this.itemKey = itemKey;
this.actionTaken = actionTaken;
this.itemHash = itemHash;
this.summary = summary;
}
}