/*
 * Autopsy Forensic Browser
 *
 * Copyright 2015-2019 Basis Technology Corp.
 * Contact: carrier <at> sleuthkit <dot> org
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.sleuthkit.autopsy.casemodule.events;

import java.io.Serializable;
import java.util.logging.Level;
import org.sleuthkit.autopsy.casemodule.Case;
import org.sleuthkit.autopsy.casemodule.NoCurrentCaseException;
import org.sleuthkit.autopsy.coreutils.Logger;
import org.sleuthkit.autopsy.events.AutopsyEvent;
import org.sleuthkit.datamodel.Content;
import org.sleuthkit.datamodel.TskCoreException;

public class DataSourceDeletedEvent extends AutopsyEvent implements Serializable {

    /**
     * Constructs an event published when a data source is added to a case.
     *
     * @param dataSource   The data source that was added.
     * @param newName      The new name of the data source
     */
    public DataSourceDeletedEvent() {
        
        super(Case.Events.DATA_SOURCE_DELETED.toString(), null, null);

    }    
}

@@ -764,40 +764,8 @@
 le;%0A
-import java.util.logging.Level;%0A
 impo
@@ -839,313 +839,208 @@
 psy.
-casemodule.NoCurrentCaseException;%0Aimport org.sleuthkit.autopsy.coreutils.Logger;%0Aimport org.sleuthkit.autopsy.events.AutopsyEvent;%0Aimport org.sleuthkit.datamodel.Content;%0Aimport org.sleuthkit.datamodel.TskCoreException;%0A%0Apublic class DataSourceDeletedEvent extends AutopsyEvent implements Serializable %7B%0A
+events.AutopsyEvent;%0A%0Apublic class DataSourceDeletedEvent extends AutopsyEvent implements Serializable %7B%0A%0A    private static final long serialVersionUID = 1L;%0A    private final long dataSourceId;%0A    
 %0A   
@@ -1151,16 +1151,18 @@
 taSource
+Id
    The d
@@ -1185,73 +1185,16 @@
 was 
-added.%0A     * @param newName      The new name of the data source
+deleted.
 %0A   
@@ -1232,16 +1232,33 @@
 edEvent(
+Long dataSourceId
 ) %7B%0A    
@@ -1330,21 +1330,261 @@
 ll, 
-null);%0A
+dataSourceId);%0A        this.dataSourceId = dataSourceId;%0A    %7D    %0A    %0A    /**%0A     * Gets the data source id that is being deleted%0A     *%0A     * @return The data source id.%0A     */%0A    public long getDataSourced() %7B%0A        return dataSourceId;
 %0A    %7D
+%0A
     

Update DataSourceDeletedEvent.java