19 package org.sleuthkit.autopsy.casemodule.events;
21 import java.io.Serializable;
22 import javax.annotation.concurrent.Immutable;
31 abstract class TagDeletedEvent<T
extends Tag> extends AutopsyEvent implements Serializable {
33 private static final long serialVersionUID = 1L;
35 TagDeletedEvent(String propertyName, DeletedTagInfo<T> deletedTagInfo) {
36 super(propertyName, deletedTagInfo, null);
47 @SuppressWarnings(
"unchecked")
48 abstract public DeletedTagInfo<T> getDeletedTagInfo();
59 abstract static class DeletedTagInfo<T extends Tag> implements Serializable {
61 private static final long serialVersionUID = 1L;
63 private final String comment;
64 private final long tagID;
65 private final TagName name;
67 DeletedTagInfo(T deletedTag) {
68 comment = deletedTag.getComment();
69 tagID = deletedTag.getId();
70 name = deletedTag.getName();
73 abstract public long getContentID();
75 public String getComment() {
79 public long getTagID() {
83 public TagName getName() {