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;
30 final class CallLogViewData {
32 private String fromAccount = null;
33 private String toAccount = null;
37 private String localAccountId = null;
39 private String direction;
40 private String dateTimeStr = null;
41 private String duration = null;
44 private Collection<String> otherParties =
new ArrayList<>();
46 private Map<String, String> otherAttributes =
new HashMap<>();
48 private String dataSourceName = null;
56 CallLogViewData(String fromAccount, String toAccount) {
57 this(fromAccount, toAccount, null);
67 CallLogViewData(String fromAccount, String toAccount, String direction) {
68 this.fromAccount = fromAccount;
69 this.toAccount = toAccount;
70 this.direction = direction;
73 String getFromAccount() {
77 void setFromAccount(String fromAccount) {
78 this.fromAccount = fromAccount;
81 String getToAccount() {
85 void setToAccount(String toAccount) {
86 this.toAccount = toAccount;
89 String getDirection() {
93 void setDirection(String direction) {
94 this.direction = direction;
97 String getDataSourceName() {
98 return dataSourceName;
101 void setDataSourceName(String dataSourceName) {
102 this.dataSourceName = dataSourceName;
105 String getDateTimeStr() {
109 void setDateTimeStr(String dateTimeStr) {
110 this.dateTimeStr = dateTimeStr;
113 String getDuration() {
117 void setDuration(String duration) {
118 this.duration = duration;
121 Collection<String> getOtherParties() {
122 return Collections.unmodifiableCollection(otherParties);
125 void setOtherParties(Collection<String> otherParticipants) {
126 if (otherParticipants != null) {
127 this.otherParties =
new ArrayList<>(otherParticipants);
131 public Map<String, String> getOtherAttributes() {
132 return Collections.unmodifiableMap(otherAttributes);
135 public void setOtherAttributes(Map<String, String> otherAttributes) {
136 if (otherAttributes != null) {
137 this.otherAttributes =
new HashMap<>(otherAttributes);
141 public String getLocalAccountId() {
142 return localAccountId;
145 public void setLocalAccountId(String localAccountId) {
146 this.localAccountId = localAccountId;