Autopsy  4.15.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.Map;
26 
30 final class CallLogViewData {
31 
32  private String fromAccount = null;
33  private String toAccount = null;
34 
35  // account identifier of the device owner, if known.
36  // will be one of the to or from account.
37  private String localAccountId = null;
38 
39  private String direction;
40  private String dateTimeStr = null;
41  private String duration = null;
42 
43  // Account identifers of other parties in the call.
44  private Collection<String> otherParties = new ArrayList<>();
45 
46  private Map<String, String> otherAttributes = new HashMap<>();
47 
48  private String dataSourceName = null;
49 
56  CallLogViewData(String fromAccount, String toAccount) {
57  this(fromAccount, toAccount, null);
58  }
59 
67  CallLogViewData(String fromAccount, String toAccount, String direction) {
68  this.fromAccount = fromAccount;
69  this.toAccount = toAccount;
70  this.direction = direction;
71  }
72 
73  String getFromAccount() {
74  return fromAccount;
75  }
76 
77  void setFromAccount(String fromAccount) {
78  this.fromAccount = fromAccount;
79  }
80 
81  String getToAccount() {
82  return toAccount;
83  }
84 
85  void setToAccount(String toAccount) {
86  this.toAccount = toAccount;
87  }
88 
89  String getDirection() {
90  return direction;
91  }
92 
93  void setDirection(String direction) {
94  this.direction = direction;
95  }
96 
97  String getDataSourceName() {
98  return dataSourceName;
99  }
100 
101  void setDataSourceName(String dataSourceName) {
102  this.dataSourceName = dataSourceName;
103  }
104 
105  String getDateTimeStr() {
106  return dateTimeStr;
107  }
108 
109  void setDateTimeStr(String dateTimeStr) {
110  this.dateTimeStr = dateTimeStr;
111  }
112 
113  String getDuration() {
114  return duration;
115  }
116 
117  void setDuration(String duration) {
118  this.duration = duration;
119  }
120 
121  Collection<String> getOtherParties() {
122  return Collections.unmodifiableCollection(otherParties);
123  }
124 
125  void setOtherParties(Collection<String> otherParticipants) {
126  if (otherParticipants != null) {
127  this.otherParties = new ArrayList<>(otherParticipants);
128  }
129  }
130 
131  public Map<String, String> getOtherAttributes() {
132  return Collections.unmodifiableMap(otherAttributes);
133  }
134 
135  public void setOtherAttributes(Map<String, String> otherAttributes) {
136  if (otherAttributes != null) {
137  this.otherAttributes = new HashMap<>(otherAttributes);
138  }
139  }
140 
141  public String getLocalAccountId() {
142  return localAccountId;
143  }
144 
145  public void setLocalAccountId(String localAccountId) {
146  this.localAccountId = localAccountId;
147  }
148 
149 }

Copyright © 2012-2020 Basis Technology. Generated on: Mon Jul 6 2020
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.