Autopsy  4.21.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
CallLogViewData.java
Go to the documentation of this file.
1 /*
2  * Autopsy Forensic Browser
3  *
4  * Copyright 2020 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.contentviewers.artifactviewers;
20 
21 import java.util.ArrayList;
22 import java.util.Collection;
23 import java.util.Collections;
24 import java.util.HashMap;
25 import java.util.List;
26 import java.util.Map;
27 
31 final class CallLogViewData {
32 
33  private String fromAccount = null;
34  private String toAccount = null;
35 
36  private String hostName = null;
37 
38  // account identifier of the device owner, if known.
39  // will be one of the to or from account.
40  private String localAccountId = null;
41 
42  private String direction;
43  private String dateTimeStr = null;
44  private String duration = null;
45 
46  // Account identifers of other parties in the call.
47  private Collection<String> otherParties = new ArrayList<>();
48 
49  private Map<String, String> otherAttributes = new HashMap<>();
50 
51  private String dataSourceName = null;
52 
53  private List<String> toContactNameList = null;
54  private List<String> fromContactNameList = null;
55 
62  CallLogViewData(String fromAccount, String toAccount) {
63  this(fromAccount, toAccount, null);
64  }
65 
73  CallLogViewData(String fromAccount, String toAccount, String direction) {
74  this.fromAccount = fromAccount;
75  this.toAccount = toAccount;
76  this.direction = direction;
77  }
78 
79  String getFromAccount() {
80  return fromAccount;
81  }
82 
83  void setFromAccount(String fromAccount) {
84  this.fromAccount = fromAccount;
85  }
86 
87  String getToAccount() {
88  return toAccount;
89  }
90 
91  void setToAccount(String toAccount) {
92  this.toAccount = toAccount;
93  }
94 
95  String getDirection() {
96  return direction;
97  }
98 
99  void setDirection(String direction) {
100  this.direction = direction;
101  }
102 
103  String getDataSourceName() {
104  return dataSourceName;
105  }
106 
107  void setDataSourceName(String dataSourceName) {
108  this.dataSourceName = dataSourceName;
109  }
110 
111  String getDateTimeStr() {
112  return dateTimeStr;
113  }
114 
115  void setDateTimeStr(String dateTimeStr) {
116  this.dateTimeStr = dateTimeStr;
117  }
118 
119  String getDuration() {
120  return duration;
121  }
122 
123  void setDuration(String duration) {
124  this.duration = duration;
125  }
126 
127  Collection<String> getOtherParties() {
128  return Collections.unmodifiableCollection(otherParties);
129  }
130 
131  void setOtherParties(Collection<String> otherParticipants) {
132  if (otherParticipants != null) {
133  this.otherParties = new ArrayList<>(otherParticipants);
134  }
135  }
136 
137  public Map<String, String> getOtherAttributes() {
138  return Collections.unmodifiableMap(otherAttributes);
139  }
140 
141  public void setOtherAttributes(Map<String, String> otherAttributes) {
142  if (otherAttributes != null) {
143  this.otherAttributes = new HashMap<>(otherAttributes);
144  }
145  }
146 
147  public String getLocalAccountId() {
148  return localAccountId;
149  }
150 
151  public void setLocalAccountId(String localAccountId) {
152  this.localAccountId = localAccountId;
153  }
154 
155  public void setToContactNameList(List<String> contactNameList) {
156  if (contactNameList != null) {
157  this.toContactNameList = new ArrayList<>(contactNameList);
158  } else {
159  this.toContactNameList = new ArrayList<>();
160  }
161  }
162 
163  public List<String> getToContactNameList() {
164  return Collections.unmodifiableList(this.toContactNameList);
165  }
166 
167  public void setFromContactNameList(List<String> contactNameList) {
168  if (contactNameList != null) {
169  this.fromContactNameList = new ArrayList<>(contactNameList);
170  } else {
171  this.fromContactNameList = new ArrayList<>();
172  }
173  }
174 
175  public List<String> getFromContactNameList() {
176  return Collections.unmodifiableList(this.fromContactNameList);
177  }
178 
179  public String getHostName() {
180  return hostName;
181  }
182 
183  public void setHostName(String hostName) {
184  this.hostName = hostName;
185  }
186 }

Copyright © 2012-2022 Basis Technology. Generated on: Tue Feb 6 2024
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.