forked from gooddata/gooddata-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMeta.java
More file actions
126 lines (105 loc) · 3.28 KB
/
Meta.java
File metadata and controls
126 lines (105 loc) · 3.28 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
/*
* Copyright (C) 2007-2014, GoodData(R) Corporation. All rights reserved.
*/
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;
import org.codehaus.jackson.map.annotate.JsonSerialize.Inclusion;
import java.io.Serializable;
/**
* Metadata meta information (meant just for internal SDK usage)
*/
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonSerialize(include = Inclusion.NON_NULL)
public class Meta implements Serializable {
private String author;
private String contributor;
private String created; //TODO date time
private String updated; //TODO date time
private String summary;
private String category;
private String tags; //TODO collection
private String uri;
private String deprecated; //TODO boolean
private String title;
private String identifier;
private Integer locked; //TODO boolean
private Integer unlisted; //TODO boolean
@JsonCreator
protected Meta(@JsonProperty("author") String author,
@JsonProperty("contributor") String contributor,
@JsonProperty("created") String created,
@JsonProperty("updated") String updated,
@JsonProperty("summary") String summary,
@JsonProperty("title") String title,
@JsonProperty("category") String category,
@JsonProperty("tags") String tags,
@JsonProperty("uri") String uri,
@JsonProperty("deprecated") String deprecated,
@JsonProperty("identifier") String identifier,
@JsonProperty("locked") Integer locked,
@JsonProperty("unlisted") Integer unlisted) {
super();
this.author = author;
this.uri = uri;
this.tags = tags;
this.created = created;
this.summary = summary;
this.title = title;
this.updated = updated;
this.category = category;
this.deprecated = deprecated;
this.identifier = identifier;
this.contributor = contributor;
this.locked = locked;
this.unlisted = unlisted;
}
public Meta(String title) {
this.title = title;
}
public Meta(String title, String summary) {
this.title = title;
this.summary = summary;
}
public String getAuthor() {
return author;
}
public String getContributor() {
return contributor;
}
public String getCreated() {
return created;
}
public String getSummary() {
return summary;
}
public String getTitle() {
return title;
}
public String getUpdated() {
return updated;
}
public String getCategory() {
return category;
}
public String getTags() {
return tags;
}
public String getUri() {
return uri;
}
public String getDeprecated() {
return deprecated;
}
public String getIdentifier() {
return identifier;
}
public Integer getLocked() {
return locked;
}
public Integer getUnlisted() {
return unlisted;
}
}