Skip to content

Commit

Permalink
Move KB write/read to separate classes. Removed unused code.
Browse files Browse the repository at this point in the history
  • Loading branch information
hvarg committed Nov 8, 2023
1 parent d77f6f2 commit 9eadbd3
Show file tree
Hide file tree
Showing 23 changed files with 1,149 additions and 1,222 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
import org.diskproject.server.repository.DiskRepository;
import org.diskproject.shared.api.DiskService;
import org.diskproject.shared.classes.adapters.MethodAdapter.FileAndMeta;
import org.diskproject.shared.classes.common.TreeItem;
import org.diskproject.shared.classes.hypothesis.Hypothesis;
import org.diskproject.shared.classes.loi.LineOfInquiry;
import org.diskproject.shared.classes.loi.TriggeredLOI;
Expand Down Expand Up @@ -264,7 +263,7 @@ public LineOfInquiry addLOI(
@GET
@Path("lois")
@Override
public List<TreeItem> listLOIs() {
public List<LineOfInquiry> listLOIs() {
return this.repo.listLOIs(USERNAME);
}

Expand Down Expand Up @@ -318,7 +317,7 @@ public TriggeredLOI updateTLOI(
if (username != null) {
tloi.setAuthor(username);
}
return this.repo.updateTLOINotes(USERNAME, id, tloi);
return this.repo.updateTriggeredLOI(USERNAME, id, tloi);
}

@GET
Expand Down Expand Up @@ -534,14 +533,6 @@ public Boolean runHypotheses() {
return null;
}

@GET
@Path("tloi/{tloiId}/narratives")
@Override
public Map<String, String> getNarratives(
@PathParam("tloiId") String tloiId) {
return this.repo.getNarratives(USERNAME, tloiId);
}

@POST
@Path("getData")
@Override
Expand Down
Loading

0 comments on commit 9eadbd3

Please sign in to comment.