Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Sleuthkit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IRT
Sleuthkit
Commits
624d3cf2
"git@gitlab.liu.se:irt/sleuthkit.git" did not exist on "71986785a0a3d099fde60df0282c94e55dfcf92c"
Commit
624d3cf2
authored
4 years ago
by
apriestman
Browse files
Options
Downloads
Patches
Plain Diff
Separated saving file and updating db
parent
906e0319
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bindings/java/src/org/sleuthkit/datamodel/FileRepositoryManager.java
+6
-3
6 additions, 3 deletions
...va/src/org/sleuthkit/datamodel/FileRepositoryManager.java
with
6 additions
and
3 deletions
bindings/java/src/org/sleuthkit/datamodel/FileRepositoryManager.java
+
6
−
3
View file @
624d3cf2
...
...
@@ -50,7 +50,7 @@ public class FileRepositoryManager {
fileDownloadFolder
=
""
;
}
public
void
initializeSettings
(
FileRepositorySettings
settings
,
String
fileDownloadPath
)
{
public
synchronized
void
initializeSettings
(
FileRepositorySettings
settings
,
String
fileDownloadPath
)
{
this
.
settings
=
settings
;
this
.
fileDownloadFolder
=
fileDownloadPath
;
}
...
...
@@ -58,7 +58,7 @@ public void initializeSettings(FileRepositorySettings settings, String fileDownl
/**
* Check whether the file repository has been initialized.
*/
public
boolean
isEnabled
()
{
public
synchronized
boolean
isEnabled
()
{
return
settings
!=
null
;
}
...
...
@@ -142,7 +142,7 @@ private void downloadFileFromFileService(AbstractFile abstractFile, String downl
* @param abstractFile
* @param trans
*/
public
void
saveToFileRepository
(
AbstractFile
abstractFile
,
SleuthkitCase
.
CaseDbTransaction
trans
)
throws
TskCoreException
{
public
void
saveToFileRepository
(
AbstractFile
abstractFile
)
throws
TskCoreException
{
if
(!
isEnabled
())
{
throw
new
TskCoreException
(
"File repository is not enabled"
);
...
...
@@ -167,6 +167,9 @@ public void saveToFileRepository(AbstractFile abstractFile, SleuthkitCase.CaseDb
// Save the abstractFile data
saveLocalFileToFileService
(
filePath
);
}
public
void
updateFileToUseFileRepository
(
AbstractFile
abstractFile
,
SleuthkitCase
.
CaseDbTransaction
trans
)
throws
TskCoreException
{
// Update the file table entry
try
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment