Autopsy  4.19.1
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  // account identifier of the device owner, if known.
37  // will be one of the to or from account.
38  private String localAccountId = null;
39 
40  private String direction;
41  private String dateTimeStr = null;
42  private String duration = null;
43 
44  // Account identifers of other parties in the call.
45  private Collection<String> otherParties = new ArrayList<>();
46 
47  private Map<String, String> otherAttributes = new HashMap<>();
48 
49  private String dataSourceName = null;
50 
51  private List<String> toContactNameList = null;
52  private List<String> fromContactNameList = null;
53 
60  CallLogViewData(String fromAccount, String toAccount) {
61  this(fromAccount, toAccount, null);
62  }
63 
71  CallLogViewData(String fromAccount, String toAccount, String direction) {
72  this.fromAccount = fromAccount;
73  this.toAccount = toAccount;
74  this.direction = direction;
75  }
76 
77  String getFromAccount() {
78  return fromAccount;
79  }
80 
81  void setFromAccount(String fromAccount) {
82  this.fromAccount = fromAccount;
83  }
84 
85  String getToAccount() {
86  return toAccount;
87  }
88 
89  void setToAccount(String toAccount) {
90  this.toAccount = toAccount;
91  }
92 
93  String getDirection() {
94  return direction;
95  }
96 
97  void setDirection(String direction) {
98  this.direction = direction;
99  }
100 
101  String getDataSourceName() {
102  return dataSourceName;
103  }
104 
105  void setDataSourceName(String dataSourceName) {
106  this.dataSourceName = dataSourceName;
107  }
108 
109  String getDateTimeStr() {
110  return dateTimeStr;
111  }
112 
113  void setDateTimeStr(String dateTimeStr) {
114  this.dateTimeStr = dateTimeStr;
115  }
116 
117  String getDuration() {
118  return duration;
119  }
120 
121  void setDuration(String duration) {
122  this.duration = duration;
123  }
124 
125  Collection<String> getOtherParties() {
126  return Collections.unmodifiableCollection(otherParties);
127  }
128 
129  void setOtherParties(Collection<String> otherParticipants) {
130  if (otherParticipants != null) {
131  this.otherParties = new ArrayList<>(otherParticipants);
132  }
133  }
134 
135  public Map<String, String> getOtherAttributes() {
136  return Collections.unmodifiableMap(otherAttributes);
137  }
138 
139  public void setOtherAttributes(Map<String, String> otherAttributes) {
140  if (otherAttributes != null) {
141  this.otherAttributes = new HashMap<>(otherAttributes);
142  }
143  }
144 
145  public String getLocalAccountId() {
146  return localAccountId;
147  }
148 
149  public void setLocalAccountId(String localAccountId) {
150  this.localAccountId = localAccountId;
151  }
152 
153  public void setToContactNameList(List<String> contactNameList) {
154  if (contactNameList != null) {
155  this.toContactNameList = new ArrayList<>(contactNameList);
156  } else {
157  this.toContactNameList = new ArrayList<>();
158  }
159  }
160 
161  public List<String> getToContactNameList() {
162  return Collections.unmodifiableList(this.toContactNameList);
163  }
164 
165  public void setFromContactNameList(List<String> contactNameList) {
166  if (contactNameList != null) {
167  this.fromContactNameList = new ArrayList<>(contactNameList);
168  } else {
169  this.fromContactNameList = new ArrayList<>();
170  }
171  }
172 
173  public List<String> getFromContactNameList() {
174  return Collections.unmodifiableList(this.fromContactNameList);
175  }
176 
177 }

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