Exemplo n.º 1
0
 @Override
 public Action getAction(long id, String ver, int projectId) {
   CheckIn check = workspaceDao.getVersion(projectId, ver);
   Gson gson = new Gson();
   Project p = gson.fromJson(check.getProjectData(), Project.class);
   return p.findAction(id);
 }
Exemplo n.º 2
0
  @Override
  public Project getProject(int id, String ver) {
    CheckIn check = workspaceDao.getVersion(id, ver);
    String projectData = check.getProjectData();

    Gson gson = new Gson();
    Project p = gson.fromJson(projectData, Project.class);
    p.setVersion(check.getVersion());
    return p;
  }