1
|
package eu.dnetlib.data.claims.migration.entity;
|
2
|
|
3
|
import java.text.SimpleDateFormat;
|
4
|
|
5
|
import com.google.gson.annotations.SerializedName;
|
6
|
import eu.dnetlib.data.claims.migration.entity.OpenaireEntity;
|
7
|
|
8
|
import java.util.Date;
|
9
|
|
10
|
/**
|
11
|
* Created by kiatrop on 20/11/2015.
|
12
|
*/
|
13
|
public class Claim {
|
14
|
|
15
|
private String id;
|
16
|
private String userMail;
|
17
|
private Date date;
|
18
|
private String sourceType;
|
19
|
private String targetType;
|
20
|
private String semantics;
|
21
|
private Date curationDate;
|
22
|
private String curatedBy;
|
23
|
private boolean approved;
|
24
|
private OpenaireEntity source;
|
25
|
private OpenaireEntity target;
|
26
|
|
27
|
|
28
|
|
29
|
public OpenaireEntity getTarget() {
|
30
|
return target;
|
31
|
}
|
32
|
|
33
|
public void setTarget(OpenaireEntity target) {
|
34
|
this.target = target;
|
35
|
}
|
36
|
|
37
|
public OpenaireEntity getSource() {
|
38
|
return source;
|
39
|
}
|
40
|
|
41
|
public void setSource(OpenaireEntity source) {
|
42
|
this.source = source;
|
43
|
}
|
44
|
|
45
|
public String getId() {
|
46
|
return id;
|
47
|
}
|
48
|
|
49
|
public void setId(String id) {
|
50
|
this.id = id;
|
51
|
}
|
52
|
|
53
|
public String getUserMail() {
|
54
|
return userMail;
|
55
|
}
|
56
|
|
57
|
public void setUserMail(String userMail) {
|
58
|
this.userMail = userMail;
|
59
|
}
|
60
|
|
61
|
public Date getDate() {
|
62
|
return date;
|
63
|
}
|
64
|
|
65
|
public void setDate(Date date) {
|
66
|
this.date = date;
|
67
|
}
|
68
|
|
69
|
public String getSourceType() {
|
70
|
return sourceType;
|
71
|
}
|
72
|
|
73
|
public void setSourceType(String sourceType) {
|
74
|
this.sourceType = sourceType;
|
75
|
}
|
76
|
|
77
|
public String getTargetType() {
|
78
|
return targetType;
|
79
|
}
|
80
|
|
81
|
public void setTargetType(String targetType) {
|
82
|
this.targetType = targetType;
|
83
|
}
|
84
|
|
85
|
public String getSemantics() {
|
86
|
return semantics;
|
87
|
}
|
88
|
|
89
|
public void setSemantics(String semantics) {
|
90
|
this.semantics = semantics;
|
91
|
}
|
92
|
|
93
|
public Date getCurationDate() {
|
94
|
return curationDate;
|
95
|
}
|
96
|
|
97
|
public void setCurationDate(Date curationDate) {
|
98
|
this.curationDate = curationDate;
|
99
|
}
|
100
|
|
101
|
public String getCuratedBy() {
|
102
|
return curatedBy;
|
103
|
}
|
104
|
|
105
|
public void setCuratedBy(String curatedBy) {
|
106
|
this.curatedBy = curatedBy;
|
107
|
}
|
108
|
|
109
|
public boolean isApproved() {
|
110
|
return approved;
|
111
|
}
|
112
|
|
113
|
public void setApproved(boolean approved) {
|
114
|
this.approved = approved;
|
115
|
}
|
116
|
|
117
|
@Override
|
118
|
public String toString() {
|
119
|
return "Claim{" +
|
120
|
"\nid='" + id + '\'' +
|
121
|
",\n userMail='" + userMail + '\'' +
|
122
|
",\n date=" + date +
|
123
|
",\n sourceType='" + sourceType + '\'' +
|
124
|
",\n targetType='" + targetType + '\'' +
|
125
|
",\n semantics='" + semantics + '\'' +
|
126
|
",\n curationDate='" + curationDate + '\'' +
|
127
|
",\n curatedBy='" + curatedBy + '\'' +
|
128
|
",\n approved=" + approved +
|
129
|
",\ntarget={" + ((target==null)?"null":target.toString())+
|
130
|
"},\n source={" + ((source==null)?"null":source.toString()) +
|
131
|
'}';
|
132
|
}
|
133
|
|
134
|
}
|