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
122 lines (102 loc) · 3.04 KB
/
Meta.java
File metadata and controls
122 lines (102 loc) · 3.04 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
/*
* 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
*/
@JsonIgnoreProperties(ignoreUnknown=true)
@JsonSerialize(include=Inclusion.NON_NULL)
public class Meta implements Serializable {
private String author;
private String contributor;
private String created;
private String summary;
private String updated;
private String category;
private String tags;
private String uri;
private String deprecated;
private String title;
private String identifier;
private String projectTemplate;
private Integer locked;
@JsonCreator
public 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("link") String link,
@JsonProperty("projectTemplate") String projectTemplate,
@JsonProperty("locked") Integer locked) {
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.projectTemplate = projectTemplate;
this.locked = locked;
this.contributor = contributor;
}
public Meta(String title) {
this.title = title;
}
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 String getProjectTemplate() {
return projectTemplate;
}
public Integer getLocked() {
return locked;
}
}