1
|
package eu.dnetlib.data.claims.migration;
|
2
|
|
3
|
import java.text.SimpleDateFormat;
|
4
|
import java.util.Date;
|
5
|
|
6
|
/**
|
7
|
* Created by kiatrop on 20/11/2015.
|
8
|
*/
|
9
|
public class Claim {
|
10
|
private OpenaireEntity target;
|
11
|
private OpenaireEntity source;
|
12
|
|
13
|
private String id;
|
14
|
private String userMail;
|
15
|
private Date date;
|
16
|
private String sourceType;
|
17
|
private String targetType;
|
18
|
|
19
|
public OpenaireEntity getTarget() {
|
20
|
return target;
|
21
|
}
|
22
|
|
23
|
public void setTarget(Result target) {
|
24
|
this.target = target;
|
25
|
}
|
26
|
|
27
|
public OpenaireEntity getSource() {
|
28
|
return source;
|
29
|
}
|
30
|
|
31
|
public void setSource(OpenaireEntity source) {
|
32
|
this.source = source;
|
33
|
}
|
34
|
|
35
|
public String getId() {
|
36
|
return id;
|
37
|
}
|
38
|
|
39
|
public void setId(String id) {
|
40
|
this.id = id;
|
41
|
}
|
42
|
|
43
|
public String getUserMail() {
|
44
|
return userMail;
|
45
|
}
|
46
|
|
47
|
public void setUserMail(String userMail) {
|
48
|
this.userMail = userMail;
|
49
|
}
|
50
|
|
51
|
public Date getDate() {
|
52
|
return date;
|
53
|
}
|
54
|
|
55
|
public void setDate(Date date) {
|
56
|
this.date = date;
|
57
|
}
|
58
|
|
59
|
public String getSourceType() {
|
60
|
return sourceType;
|
61
|
}
|
62
|
|
63
|
public void setSourceType(String sourceType) {
|
64
|
this.sourceType = sourceType;
|
65
|
}
|
66
|
|
67
|
public String getTargetType() {
|
68
|
return targetType;
|
69
|
}
|
70
|
|
71
|
public void setTargetType(String targetType) {
|
72
|
this.targetType = targetType;
|
73
|
}
|
74
|
|
75
|
|
76
|
@Override
|
77
|
public String toString() {
|
78
|
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");
|
79
|
return "Claim{" +
|
80
|
"\ntargetType=" + targetType+
|
81
|
",\nsourceType=" + sourceType +
|
82
|
",\ntarget={" + target.toString() +
|
83
|
"},\n source={" + source.toString() +
|
84
|
"},\n id='" + id + '\'' +
|
85
|
", userMail='" + userMail + '\'' +
|
86
|
", date=" + format.format(date)+
|
87
|
'}';
|
88
|
}
|
89
|
}
|