Project

General

Profile

1
package eu.dnetlib.openaire.community;
2

    
3
import java.util.List;
4

    
5
import com.fasterxml.jackson.annotation.JsonAutoDetect;
6
import io.swagger.annotations.ApiModelProperty;
7

    
8
@JsonAutoDetect
9
public class CommunitySummary {
10

    
11
	@ApiModelProperty("identifies the community")
12
	protected String id;
13

    
14
	@ApiModelProperty("values for this field reflect the index field _community_ in the index, e.g. 'egi||EGI Federation'")
15
	protected String queryId;
16

    
17
	@ApiModelProperty("community name")
18
	protected String name;
19

    
20
	@ApiModelProperty("community short name")
21
	protected String shortName;
22

    
23
	@ApiModelProperty("community description")
24
	protected String description;
25

    
26
	@ApiModelProperty("list of community manager emails")
27
	protected List<String> managers;
28

    
29
	@ApiModelProperty("http url for the community logo")
30
	protected String logoUrl;
31

    
32
	public CommunitySummary() {
33
	}
34

    
35
	public CommunitySummary(final String id,
36
			final String queryId,
37
			final String name,
38
			final String shortName,
39
			final String description,
40
			final List<String> managers,
41
			final String logoUrl) {
42
		this.id = id;
43
		this.queryId = queryId;
44
		this.name = name;
45
		this.shortName = shortName;
46
		this.description = description;
47
		this.managers = managers;
48
		this.logoUrl = logoUrl;
49
	}
50

    
51
	public CommunitySummary(final CommunitySummary summary) {
52
		this(	summary.getId(),
53
				summary.getQueryId(),
54
				summary.getName(),
55
				summary.getShortName(),
56
				summary.getDescription(),
57
				summary.getManagers(),
58
				summary.getLogoUrl());
59
	}
60

    
61
	public String getId() {
62
		return id;
63
	}
64

    
65
	public void setId(final String id) {
66
		this.id = id;
67
	}
68

    
69
	public String getQueryId() {
70
		return queryId;
71
	}
72

    
73
	public void setQueryId(final String queryId) {
74
		this.queryId = queryId;
75
	}
76

    
77
	public String getName() {
78
		return name;
79
	}
80

    
81
	public void setName(final String name) {
82
		this.name = name;
83
	}
84

    
85
	public String getShortName() {
86
		return shortName;
87
	}
88

    
89
	public void setShortName(final String shortName) {
90
		this.shortName = shortName;
91
	}
92

    
93
	public String getDescription() {
94
		return description;
95
	}
96

    
97
	public void setDescription(final String description) {
98
		this.description = description;
99
	}
100

    
101
	public List<String> getManagers() {
102
		return managers;
103
	}
104

    
105
	public void setManagers(final List<String> managers) {
106
		this.managers = managers;
107
	}
108

    
109
	public String getLogoUrl() {
110
		return logoUrl;
111
	}
112

    
113
	public void setLogoUrl(final String logoUrl) {
114
		this.logoUrl = logoUrl;
115
	}
116

    
117
}
(10-10/11)