/*
* Copyright (c) 2011. Gridshore
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package nl.gridshore.nosapi.mapping;
import org.codehaus.jackson.annotate.JsonProperty;
import org.codehaus.jackson.map.annotate.JsonDeserialize;
import org.joda.time.DateTime;
import java.util.ArrayList;
/**
* @author Jettro Coenradie
*/
public class Document {
private String id;
private int score;
private String type;
private String title;
private String description;
private DateTime published;
private DateTime lastUpdate;
private String thumbnail;
private String category;
@JsonProperty("subcategory")
private String subCategory;
private String link;
private ArrayList<String> keywords = new ArrayList<String>();
public String getCategory() {
return category;
}
public void setCategory(String category) {
this.category = category;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public ArrayList<String> getKeywords() {
return keywords;
}
public void setKeywords(ArrayList<String> keywords) {
this.keywords = keywords;
}
public DateTime getLastUpdate() {
return lastUpdate;
}
@JsonDeserialize(using = JsonDateTimeDeserializer.class)
@JsonProperty("last_update")
public void setLastUpdate(DateTime lastUpdate) {
this.lastUpdate = lastUpdate;
}
public String getLink() {
return link;
}
public void setLink(String link) {
this.link = link;
}
public DateTime getPublished() {
return published;
}
@JsonDeserialize(using = JsonDateTimeDeserializer.class)
public void setPublished(DateTime published) {
this.published = published;
}
public int getScore() {
return score;
}
public void setScore(int score) {
this.score = score;
}
public String getSubCategory() {
return subCategory;
}
public void setSubCategory(String subCategory) {
this.subCategory = subCategory;
}
public String getThumbnail() {
return thumbnail;
}
public void setThumbnail(String thumbnail) {
this.thumbnail = thumbnail;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
}