forked from gooddata/gooddata-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEntry.java
More file actions
109 lines (92 loc) · 2.95 KB
/
Entry.java
File metadata and controls
109 lines (92 loc) · 2.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
package com.gooddata.md;
import org.codehaus.jackson.annotate.JsonCreator;
import org.codehaus.jackson.annotate.JsonIgnoreProperties;
import org.codehaus.jackson.annotate.JsonProperty;
import org.codehaus.jackson.map.annotate.JsonSerialize;
/**
* Metadata entry (can be named "LINK" in some API docs)
*/
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
public class Entry {
private final String link;
private final String title;
private final String summary;
private final String category;
private final String author;
private final String contributor;
private final String deprecated; //TODO boolean
private final String identifier;
private final String tags; //TODO collection
private final String created; //TODO date time
private final String updated; //TODO date time
private final Integer locked; //TODO boolean
private final Integer unlisted; //TODO boolean
@JsonCreator
public Entry(@JsonProperty("link") String link,
@JsonProperty("title") String title,
@JsonProperty("summary") String summary,
@JsonProperty("category") String category,
@JsonProperty("author") String author,
@JsonProperty("contributor") String contributor,
@JsonProperty("deprecated") String deprecated,
@JsonProperty("identifier") String identifier,
@JsonProperty("tags") String tags,
@JsonProperty("created") String created,
@JsonProperty("updated") String updated,
@JsonProperty("locked") Integer locked,
@JsonProperty("unlisted") Integer unlisted) {
this.link = link;
this.title = title;
this.summary = summary;
this.category = category;
this.author = author;
this.contributor = contributor;
this.deprecated = deprecated;
this.identifier = identifier;
this.tags = tags;
this.created = created;
this.updated = updated;
this.locked = locked;
this.unlisted = unlisted;
}
public String getLink() {
return link;
}
public String getTitle() {
return title;
}
public String getSummary() {
return summary;
}
public String getCategory() {
return category;
}
public String getAuthor() {
return author;
}
public String getContributor() {
return contributor;
}
public String getDeprecated() {
return deprecated;
}
public String getIdentifier() {
return identifier;
}
public String getTags() {
return tags;
}
public String getCreated() {
return created;
}
public String getUpdated() {
return updated;
}
public Integer getLocked() {
return locked;
}
public Integer getUnlisted() {
return unlisted;
}
}