Autopsy  4.20.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-2021 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, "", null);
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  @Override
121  public void close() throws IOException {
122  /*
123  * No-op maintained for backwards compatibility. Clients should not
124  * attempt to close case services.
125  */
126  }
127 
134  @Deprecated
135  public static final class BlackboardException extends Exception {
136 
137  private static final long serialVersionUID = 1L;
138 
146  @Deprecated
147  public BlackboardException(String message) {
148  super(message);
149  }
150 
160  @Deprecated
161  public BlackboardException(String message, Throwable cause) {
162  super(message, cause);
163  }
164  }
165 
166 }
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-2022 Basis Technology. Generated on: Tue Aug 1 2023
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.