Autopsy  4.16.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
Blackboard.java
Go to the documentation of this file.
1 /*
2  * Autopsy Forensic Browser
3  *
4  * Copyright 2015-2019 Basis Technology Corp.
5  * Contact: carrier <at> sleuthkit <dot> org
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  *
19  * TODO (AUT-2158): This class should not extend Closeable.
20  */
21 package org.sleuthkit.autopsy.casemodule.services;
22 
23 import java.io.Closeable;
24 import java.io.IOException;
26 import org.sleuthkit.datamodel.BlackboardArtifact;
27 import org.sleuthkit.datamodel.BlackboardAttribute;
28 
35 @Deprecated
36 public final class Blackboard implements Closeable {
37 
44  @Deprecated
45  Blackboard() {
46  }
47 
56  @Deprecated
57  public synchronized void indexArtifact(BlackboardArtifact artifact) throws BlackboardException {
58  try {
59  Case.getCurrentCase().getSleuthkitCase().getBlackboard().postArtifact(artifact, "");
60  } catch (org.sleuthkit.datamodel.Blackboard.BlackboardException ex) {
61  throw new BlackboardException(ex.getMessage(), ex);
62  }
63  }
64 
79  @Deprecated
80  public synchronized BlackboardArtifact.Type getOrAddArtifactType(String typeName, String displayName) throws BlackboardException {
81  try {
82  return Case.getCurrentCase().getSleuthkitCase().getBlackboard().getOrAddArtifactType(typeName, displayName);
83  } catch (org.sleuthkit.datamodel.Blackboard.BlackboardException ex) {
84  throw new BlackboardException(ex.getMessage(), ex);
85  }
86  }
87 
103  @Deprecated
104  public synchronized BlackboardAttribute.Type getOrAddAttributeType(String typeName, BlackboardAttribute.TSK_BLACKBOARD_ATTRIBUTE_VALUE_TYPE valueType, String displayName) throws BlackboardException {
105  try {
106  return Case.getCurrentCase().getSleuthkitCase().getBlackboard().getOrAddAttributeType(typeName, valueType, displayName);
107  } catch (org.sleuthkit.datamodel.Blackboard.BlackboardException ex) {
108  throw new BlackboardException(ex.getMessage(), ex);
109  }
110  }
111 
119  @Deprecated
120  public void close() throws IOException {
121  /*
122  * No-op maintained for backwards compatibility. Clients should not
123  * attempt to close case services.
124  */
125  }
126 
133  @Deprecated
134  public static final class BlackboardException extends Exception {
135 
136  private static final long serialVersionUID = 1L;
137 
145  @Deprecated
146  public BlackboardException(String message) {
147  super(message);
148  }
149 
159  @Deprecated
160  public BlackboardException(String message, Throwable cause) {
161  super(message, cause);
162  }
163  }
164 
165 }
synchronized BlackboardAttribute.Type getOrAddAttributeType(String typeName, BlackboardAttribute.TSK_BLACKBOARD_ATTRIBUTE_VALUE_TYPE valueType, String displayName)
synchronized BlackboardArtifact.Type getOrAddArtifactType(String typeName, String displayName)
Definition: Blackboard.java:80
synchronized void indexArtifact(BlackboardArtifact artifact)
Definition: Blackboard.java:57

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