Mercurial > hg > Members > nobuyasu > Consensus
view app/models/ClaimModel.java @ 14:792fdb0c10bf
add ClaimModel.java
author | one |
---|---|
date | Tue, 02 Oct 2012 11:40:20 +0900 |
parents | |
children | 7cdc9d19834f |
line wrap: on
line source
package models; import org.codehaus.jackson.node.ObjectNode; import play.libs.Json; import com.tinkerpop.blueprints.Vertex; public class ClaimModel extends NodeModel { public ClaimModel(Vertex vertex) { super(vertex); } public void setClaimProperties(String author, String title, String contents, String q, String d, String w, String b, String r, String users, String type) { ObjectNode toulmin = Json.newObject(); toulmin.put(TITLE, title); toulmin.put(CONTENTS, contents); toulmin.put(QUALIFIER, q); toulmin.put(DATA, d); toulmin.put(WARRANT, w); toulmin.put(BACKING, b); toulmin.put(REBUTTLE, r); setProperty(AUTHOR,author); setProperty(USERS, users); setProperty(TYPE, type); setProperty(MENTIONS, null); setProperty(STATUS, FAIL); setProperty(TOULMIN, toulmin); } }