Project

General

Profile

1
package eu.dnetlib.data.claims.migration;
2

    
3
import java.util.Date;
4

    
5
/**
6
 * Created by kiatrop on 20/11/2015.
7
 */
8
public class Claim {
9
    private OpenaireEntity target;
10
    private OpenaireEntity source;
11

    
12
    private String id;
13
    private String userMail;
14
    private Date date;
15
    private String sourceType;
16
    private String targetType;
17
    private boolean claimStatus;
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 void getClaimFromDB() {
60
        //query rel2action
61
        //parse to get ids;
62
    }
63
    public String getSourceType() {
64
        return sourceType;
65
    }
66

    
67
    public void setSourceType(String sourceType) {
68
        this.sourceType = sourceType;
69
    }
70

    
71
    public String getTargetType() {
72
        return targetType;
73
    }
74

    
75
    public void setTargetType(String targetType) {
76
        this.targetType = targetType;
77
    }
78

    
79

    
80
    @Override
81
    public String toString() {
82
        return "Claim{" +
83
                "\ntarget={" + target.toString() +
84
                "},\n source={" + source.toString() +
85
                "},\n id='" + id + '\'' +
86
                ", userMail='" + userMail + '\'' +
87
                ", date=" + date.toString() +
88
                '}';
89
    }
90
}
(1-1/9)