Autopsy  4.8.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
CVTEvents.java
Go to the documentation of this file.
1 /*
2  * Autopsy Forensic Browser
3  *
4  * Copyright 2017-18 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.communications;
20 
21 import com.google.common.collect.ImmutableSet;
22 import com.google.common.eventbus.EventBus;
23 import java.util.Collection;
24 import org.sleuthkit.datamodel.CommunicationsFilter;
25 
29 final class CVTEvents {
30 
31  private final static EventBus cvtEventBus = new EventBus();
32 
33  static EventBus getCVTEventBus() {
34  return cvtEventBus;
35  }
36 
37  private CVTEvents() {
38  }
39 
40  static final class FilterChangeEvent {
41 
42  private final CommunicationsFilter newFilter;
43 
44  CommunicationsFilter getNewFilter() {
45  return newFilter;
46  }
47 
48  FilterChangeEvent(CommunicationsFilter newFilter) {
49  this.newFilter = newFilter;
50  }
51 
52  }
53 
54  static final class PinAccountsEvent {
55 
56  private final ImmutableSet<AccountDeviceInstanceKey> accountDeviceInstances;
57  private final boolean replace;
58 
59  public boolean isReplace() {
60  return replace;
61  }
62 
63  ImmutableSet<AccountDeviceInstanceKey> getAccountDeviceInstances() {
64  return accountDeviceInstances;
65  }
66 
67  PinAccountsEvent(Collection<? extends AccountDeviceInstanceKey> accountDeviceInstances, boolean replace) {
68  this.accountDeviceInstances = ImmutableSet.copyOf(accountDeviceInstances);
69  this.replace = replace;
70  }
71  }
72 
73  static final class UnpinAccountsEvent {
74 
75  private final ImmutableSet<AccountDeviceInstanceKey> accountDeviceInstances;
76 
77  public ImmutableSet<AccountDeviceInstanceKey> getAccountDeviceInstances() {
78  return accountDeviceInstances;
79  }
80 
81  UnpinAccountsEvent(Collection<? extends AccountDeviceInstanceKey> accountDeviceInstances) {
82  this.accountDeviceInstances = ImmutableSet.copyOf(accountDeviceInstances);
83  }
84  }
85 }

Copyright © 2012-2018 Basis Technology. Generated on: Thu Oct 4 2018
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.