1
|
package eu.dnetlib.usagestats.sushilite.domain;
|
2
|
|
3
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
4
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
5
|
|
6
|
import java.util.ArrayList;
|
7
|
import java.util.List;
|
8
|
|
9
|
/**
|
10
|
* Created by tsampikos on 31/10/2016.
|
11
|
*/
|
12
|
public class ReportItem {
|
13
|
private List<ItemIdentifier> itemIdentifiers = new ArrayList<>();
|
14
|
|
15
|
private String itemPublisher;
|
16
|
private String itemPlatform;
|
17
|
private String itemDataType;
|
18
|
private String itemName;
|
19
|
|
20
|
private List<ItemPerformance> itemPerformances = new ArrayList<>();
|
21
|
|
22
|
public ReportItem() {
|
23
|
}
|
24
|
|
25
|
public ReportItem(String itemPublisher, String itemPlatform, String itemDataType, String itemName) {
|
26
|
this.itemPublisher = itemPublisher;
|
27
|
this.itemPlatform = itemPlatform;
|
28
|
this.itemDataType = itemDataType;
|
29
|
this.itemName = itemName;
|
30
|
}
|
31
|
|
32
|
@JsonProperty("ItemIdentifier")
|
33
|
public List<ItemIdentifier> getItemIdentifiers() {
|
34
|
return itemIdentifiers;
|
35
|
}
|
36
|
|
37
|
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
38
|
@JsonProperty("ItemPublisher")
|
39
|
public String getItemPublisher() {
|
40
|
return itemPublisher;
|
41
|
}
|
42
|
|
43
|
@JsonProperty("ItemPlatform")
|
44
|
public String getItemPlatform() {
|
45
|
return itemPlatform;
|
46
|
}
|
47
|
|
48
|
@JsonProperty("ItemDataType")
|
49
|
public String getItemDataType() {
|
50
|
return itemDataType;
|
51
|
}
|
52
|
|
53
|
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
54
|
@JsonProperty("ItemName")
|
55
|
public String getItemName() {
|
56
|
return itemName;
|
57
|
}
|
58
|
|
59
|
@JsonProperty("ItemPerformance")
|
60
|
public List<ItemPerformance> getItemPerformances() {
|
61
|
return itemPerformances;
|
62
|
}
|
63
|
|
64
|
public void addIdentifier(ItemIdentifier itemIdentifier) {
|
65
|
itemIdentifiers.add(itemIdentifier);
|
66
|
}
|
67
|
|
68
|
public void addPerformance(ItemPerformance itemPerformance) {
|
69
|
itemPerformances.add(itemPerformance);
|
70
|
}
|
71
|
|
72
|
public void setItemPlatform(String itemPlatform) {
|
73
|
this.itemPlatform = itemPlatform;
|
74
|
}
|
75
|
}
|