1
|
package eu.dnetlib.uoaadmintools.entities;
|
2
|
|
3
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
4
|
|
5
|
import org.springframework.data.annotation.Id;
|
6
|
|
7
|
import java.util.List;
|
8
|
import java.util.Map;
|
9
|
|
10
|
public class CommunityEntity {
|
11
|
|
12
|
@Id
|
13
|
@JsonProperty("_id")
|
14
|
private String id;
|
15
|
|
16
|
private String pid;
|
17
|
private String name;
|
18
|
private Boolean isEnabled;
|
19
|
|
20
|
public CommunityEntity() {}
|
21
|
|
22
|
public CommunityEntity(Entity entity) {
|
23
|
this.setId(entity.getId());
|
24
|
this.setPid(entity.getPid());
|
25
|
this.setName(entity.getName());
|
26
|
this.setIsEnabled(true);
|
27
|
}
|
28
|
|
29
|
public String getId() {
|
30
|
return id;
|
31
|
}
|
32
|
|
33
|
public void setId(String id) {
|
34
|
this.id = id;
|
35
|
}
|
36
|
|
37
|
public String getPid() {
|
38
|
return pid;
|
39
|
}
|
40
|
|
41
|
public void setPid(String pid) { this.pid = pid; }
|
42
|
|
43
|
public String getName() {
|
44
|
return name;
|
45
|
}
|
46
|
|
47
|
public void setName(String name) {
|
48
|
this.name = name;
|
49
|
}
|
50
|
|
51
|
public Boolean getIsEnabled() { return isEnabled; }
|
52
|
|
53
|
public void setIsEnabled(Boolean isEnabled) { this.isEnabled = isEnabled; }
|
54
|
}
|