Autopsy  4.19.3
Graphical digital forensics platform for The Sleuth Kit and other tools.
BlackBoardArtifactTagDeletedEvent.java
Go to the documentation of this file.
1 /*
2  * Autopsy Forensic Browser
3  *
4  * Copyright 2015 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 package org.sleuthkit.autopsy.casemodule.events;
20 
21 import java.io.Serializable;
22 import javax.annotation.concurrent.Immutable;
24 import org.sleuthkit.datamodel.BlackboardArtifactTag;
25 
29 @Immutable
30 public class BlackBoardArtifactTagDeletedEvent extends TagDeletedEvent<BlackboardArtifactTag> implements Serializable {
31 
32  private static final long serialVersionUID = 1L;
33 
34  public BlackBoardArtifactTagDeletedEvent(BlackboardArtifactTag deletedTag) {
36  }
37 
43  @Override
45  return (DeletedBlackboardArtifactTagInfo) getOldValue();
46  }
47 
52  @Immutable
53  public static class DeletedBlackboardArtifactTagInfo extends DeletedTagInfo<BlackboardArtifactTag> implements Serializable {
54 
55  private static final long serialVersionUID = 1L;
56 
57  private final long contentID;
58 
59  private final long artifactID;
60 
61  DeletedBlackboardArtifactTagInfo(BlackboardArtifactTag deletedTag) {
62  super(deletedTag);
63  artifactID = deletedTag.getArtifact().getArtifactID();
64  contentID = deletedTag.getContent().getId();
65  }
66 
67  @Override
68  public long getContentID() {
69  return contentID;
70  }
71 
72  public long getArtifactID() {
73  return artifactID;
74  }
75  }
76 }

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