19 package org.sleuthkit.autopsy.casemodule.events;
21 import java.io.Serializable;
22 import java.util.logging.Level;
31 abstract class TagAddedEvent<T
extends Tag> extends AutopsyEvent implements Serializable {
33 private static final long serialVersionUID = 1L;
39 private transient T tag;
45 private final Long tagID;
47 TagAddedEvent(String propertyName, T addedTag) {
48 super(propertyName, null, null);
50 tagID = addedTag.getId();
67 public T getAddedTag() {
72 public T getNewValue() {
87 }
catch (IllegalStateException | TskCoreException ex) {
88 Logger.getLogger(TagAddedEvent.class.getName()).log(Level.SEVERE,
"Error doing lazy load for remote event", ex);
104 abstract T getTagByID() throws IllegalStateException, TskCoreException;