1
|
package eu.dnetlib.openaire.user.pojos;
|
2
|
|
3
|
import java.io.Serializable;
|
4
|
import java.sql.Timestamp;
|
5
|
import java.util.Date;
|
6
|
|
7
|
public class RegisteredService implements Serializable {
|
8
|
private String id;
|
9
|
private String client_id;
|
10
|
private String name;
|
11
|
private String owner;
|
12
|
private Timestamp date;
|
13
|
private String registration_access_token;
|
14
|
private String keyType;
|
15
|
|
16
|
public RegisteredService() {
|
17
|
}
|
18
|
|
19
|
public RegisteredService(String client_id, String owner, String name, String registration_access_token) {
|
20
|
this.client_id = client_id;
|
21
|
this.owner = owner;
|
22
|
this.name = name;
|
23
|
this.date = new Timestamp(new Date().getTime());
|
24
|
this.registration_access_token = registration_access_token;
|
25
|
this.keyType = null;
|
26
|
}
|
27
|
|
28
|
public RegisteredService(String client_id, String owner, String name, String registration_access_token, String keyType) {
|
29
|
this.client_id = client_id;
|
30
|
this.owner = owner;
|
31
|
this.name = name;
|
32
|
this.date = new Timestamp(new Date().getTime());
|
33
|
this.registration_access_token = registration_access_token;
|
34
|
this.keyType = keyType;
|
35
|
}
|
36
|
|
37
|
public String getId() {
|
38
|
return id;
|
39
|
}
|
40
|
|
41
|
public void setId(String id) {
|
42
|
this.id = id;
|
43
|
}
|
44
|
|
45
|
public String getClientId() {
|
46
|
return client_id;
|
47
|
}
|
48
|
|
49
|
public void setClientId(String client_id) {
|
50
|
this.client_id = client_id;
|
51
|
}
|
52
|
|
53
|
public String getName() {
|
54
|
return name;
|
55
|
}
|
56
|
|
57
|
public void setName(String name) {
|
58
|
this.name = name;
|
59
|
}
|
60
|
|
61
|
public String getOwner() {
|
62
|
return owner;
|
63
|
}
|
64
|
|
65
|
public void setOwner(String owner) {
|
66
|
this.owner = owner;
|
67
|
}
|
68
|
|
69
|
public Timestamp getDate() {
|
70
|
return date;
|
71
|
}
|
72
|
|
73
|
public void setDate(Timestamp date) {
|
74
|
this.date = date;
|
75
|
}
|
76
|
|
77
|
public String getRegistrationAccessToken() {
|
78
|
return registration_access_token;
|
79
|
}
|
80
|
|
81
|
public void setRegistrationAccessToken(String registration_access_token) {
|
82
|
this.registration_access_token = registration_access_token;
|
83
|
}
|
84
|
|
85
|
public String getKeyType() {
|
86
|
return keyType;
|
87
|
}
|
88
|
|
89
|
public void setKeyType(String keyType) {
|
90
|
this.keyType = keyType;
|
91
|
}
|
92
|
}
|