Mercurial > hg > Members > nobuyasu > Consensus
diff app/controllers/Claim.java @ 84:bb547f2a3c88 draft
create getClaimRevision methos
author | one |
---|---|
date | Sat, 09 Mar 2013 23:58:01 +0900 |
parents | cddb5ed942a6 |
children | d45f76774fd8 |
line wrap: on
line diff
--- a/app/controllers/Claim.java Sat Mar 09 21:32:00 2013 +0900 +++ b/app/controllers/Claim.java Sat Mar 09 23:58:01 2013 +0900 @@ -178,6 +178,12 @@ ObjectNode resultEntity = consensusRoot.getClaimInfoTraverse(); return ok(resultEntity); } + + public static Result getClaimRevision(String id) { + TPGraph tpGraph = TPGraph.getInstance(); + Object[] revision = tpGraph.getClaimRevision(id); + return created(Json.toJson(revision)); + } public static Result copyClaims(String id) { TPGraph tpGraph = TPGraph.getInstance();