comparison 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
comparison
equal deleted inserted replaced
83:c6929060c85f 84:bb547f2a3c88
176 } 176 }
177 ClaimModel consensusRoot = new ClaimModel(v); 177 ClaimModel consensusRoot = new ClaimModel(v);
178 ObjectNode resultEntity = consensusRoot.getClaimInfoTraverse(); 178 ObjectNode resultEntity = consensusRoot.getClaimInfoTraverse();
179 return ok(resultEntity); 179 return ok(resultEntity);
180 } 180 }
181
182 public static Result getClaimRevision(String id) {
183 TPGraph tpGraph = TPGraph.getInstance();
184 Object[] revision = tpGraph.getClaimRevision(id);
185 return created(Json.toJson(revision));
186 }
181 187
182 public static Result copyClaims(String id) { 188 public static Result copyClaims(String id) {
183 TPGraph tpGraph = TPGraph.getInstance(); 189 TPGraph tpGraph = TPGraph.getInstance();
184 ClaimModel claim = new ClaimModel(tpGraph.getVertex(id)); 190 ClaimModel claim = new ClaimModel(tpGraph.getVertex(id));
185 if (claim.getVertex() == null) { 191 if (claim.getVertex() == null) {