Autopsy  4.14.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
Services.java
Go to the documentation of this file.
1 /*
2  *
3  * Autopsy Forensic Browser
4  *
5  * Copyright 2012-2019 Basis Technology Corp.
6  * Contact: carrier <at> sleuthkit <dot> org
7  * Copyright 2012 42six Solutions.
8  * Contact: aebadirad <at> 42six <dot> com
9  *
10  * Licensed under the Apache License, Version 2.0 (the "License");
11  * you may not use this file except in compliance with the License.
12  * You may obtain a copy of the License at
13  *
14  * http://www.apache.org/licenses/LICENSE-2.0
15  *
16  * Unless required by applicable law or agreed to in writing, software
17  * distributed under the License is distributed on an "AS IS" BASIS,
18  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19  * See the License for the specific language governing permissions and
20  * limitations under the License.
21  */
22 package org.sleuthkit.autopsy.casemodule.services;
23 
24 import java.io.Closeable;
25 import java.io.IOException;
26 import org.openide.util.Lookup;
29 import org.sleuthkit.datamodel.SleuthkitCase;
30 
37 public class Services implements Closeable {
38 
39  private final FileManager fileManager;
40  private final TagsManager tagsManager;
41 
48  public Services(SleuthkitCase caseDb) {
49  fileManager = new FileManager(caseDb);
50  tagsManager = new TagsManager(caseDb);
51  }
52 
59  return fileManager;
60  }
61 
68  return tagsManager;
69  }
70 
77  return Lookup.getDefault().lookup(KeywordSearchService.class);
78  }
79 
86  public org.sleuthkit.datamodel.Blackboard getArtifactsBlackboard() {
87  return Case.getCurrentCase().getSleuthkitCase().getBlackboard();
88  }
89 
98  @Deprecated
100  return new Blackboard();
101  }
102 
109  @Deprecated
110  @Override
111  public void close() throws IOException {
112  /*
113  * No-op maintained for backwards compatibility. Clients should not
114  * attempt to close case services.
115  */
116  }
117 
118 }
org.sleuthkit.datamodel.Blackboard getArtifactsBlackboard()
Definition: Services.java:86

Copyright © 2012-2020 Basis Technology. Generated on: Wed Apr 8 2020
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.