19 package org.sleuthkit.autopsy.contentviewers.artifactviewers;
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;
31 final class CallLogViewData {
33 private String fromAccount = null;
34 private String toAccount = null;
38 private String localAccountId = null;
40 private String direction;
41 private String dateTimeStr = null;
42 private String duration = null;
45 private Collection<String> otherParties =
new ArrayList<>();
47 private Map<String, String> otherAttributes =
new HashMap<>();
49 private String dataSourceName = null;
51 private List<String> toContactNameList = null;
52 private List<String> fromContactNameList = null;
60 CallLogViewData(String fromAccount, String toAccount) {
61 this(fromAccount, toAccount, null);
71 CallLogViewData(String fromAccount, String toAccount, String direction) {
72 this.fromAccount = fromAccount;
73 this.toAccount = toAccount;
74 this.direction = direction;
77 String getFromAccount() {
81 void setFromAccount(String fromAccount) {
82 this.fromAccount = fromAccount;
85 String getToAccount() {
89 void setToAccount(String toAccount) {
90 this.toAccount = toAccount;
93 String getDirection() {
97 void setDirection(String direction) {
98 this.direction = direction;
101 String getDataSourceName() {
102 return dataSourceName;
105 void setDataSourceName(String dataSourceName) {
106 this.dataSourceName = dataSourceName;
109 String getDateTimeStr() {
113 void setDateTimeStr(String dateTimeStr) {
114 this.dateTimeStr = dateTimeStr;
117 String getDuration() {
121 void setDuration(String duration) {
122 this.duration = duration;
125 Collection<String> getOtherParties() {
126 return Collections.unmodifiableCollection(otherParties);
129 void setOtherParties(Collection<String> otherParticipants) {
130 if (otherParticipants != null) {
131 this.otherParties =
new ArrayList<>(otherParticipants);
135 public Map<String, String> getOtherAttributes() {
136 return Collections.unmodifiableMap(otherAttributes);
139 public void setOtherAttributes(Map<String, String> otherAttributes) {
140 if (otherAttributes != null) {
141 this.otherAttributes =
new HashMap<>(otherAttributes);
145 public String getLocalAccountId() {
146 return localAccountId;
149 public void setLocalAccountId(String localAccountId) {
150 this.localAccountId = localAccountId;
153 public void setToContactNameList(List<String> contactNameList) {
154 if (contactNameList != null) {
155 this.toContactNameList =
new ArrayList<>(contactNameList);
157 this.toContactNameList =
new ArrayList<>();
161 public List<String> getToContactNameList() {
162 return Collections.unmodifiableList(this.toContactNameList);
165 public void setFromContactNameList(List<String> contactNameList) {
166 if (contactNameList != null) {
167 this.fromContactNameList =
new ArrayList<>(contactNameList);
169 this.fromContactNameList =
new ArrayList<>();
173 public List<String> getFromContactNameList() {
174 return Collections.unmodifiableList(this.fromContactNameList);