/* * 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; } }