Skip to content

Commit

Permalink
#52: set idindatasource to be always the last property of an item to …
Browse files Browse the repository at this point in the history
…show
  • Loading branch information
FelipeFcosta committed Feb 9, 2023
1 parent db9c48e commit 8b34806
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions iped-app/src/main/java/iped/app/ui/ColumnsManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -418,11 +418,11 @@ protected void enableOnlySelectedProperties(List<String> props) {
}

protected void enableAllProperties() {
enableOnlySelectedProperties(new ArrayList<String>(allCheckBoxesState.keySet()));
allCheckBoxesState.replaceAll((name, state) -> state = true);
}

protected void disableAllProperties() {
enableOnlySelectedProperties(new ArrayList<String>());
allCheckBoxesState.replaceAll((name, state) -> state = false);
}

}
13 changes: 6 additions & 7 deletions iped-engine/src/main/java/iped/engine/task/HTMLReportTask.java
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@ private void createBookmarkPage(DateFormat dateFormat, NumberFormat longFormat,
}
}

// // Fill Basic Properties if present
// Fill Basic Properties if present
if (selectedProperties.contains(BasicProps.NAME))
fillItemProperty(it, "Name", "<b>" + reg.name + "</b>");
if (selectedProperties.contains(BasicProps.PATH))
Expand All @@ -788,17 +788,16 @@ private void createBookmarkPage(DateFormat dateFormat, NumberFormat longFormat,
fillItemProperty(it, "Carved", String.valueOf(reg.carved));
if (selectedProperties.contains(BasicProps.HASH))
fillItemProperty(it, "Hash", reg.hash);
if (selectedProperties.contains(IndexItem.ID_IN_SOURCE)) {
String export = reg.export == null ? "-" : "<b><a href=\"../" + reg.export + "\">" + reg.export + "</a></b>";
fillItemProperty(it, "Exported as", export);
}
for (String property : selectedProperties) {
if (!basicReportProps.contains(property)) {
if (!basicReportProps.contains(property)) { // filter for additional properties selected by the user
String propertyValue = ipedCase.getItemProperty(reg.evidenceId, property);
fillItemProperty(it, property, propertyValue);
}
}

if (selectedProperties.contains(IndexItem.ID_IN_SOURCE)) {
String export = reg.export == null ? "-" : "<b><a href=\"../" + reg.export + "\">" + reg.export + "</a></b>";
fillItemProperty(it, "Exported as", export);
}
items.append(it);
}

Expand Down

0 comments on commit 8b34806

Please sign in to comment.