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;
 
   36     private String hostName = null;
 
   40     private String localAccountId = null;
 
   42     private String direction;
 
   43     private String dateTimeStr = null;
 
   44     private String duration = null;
 
   47     private Collection<String> otherParties = 
new ArrayList<>();
 
   49     private Map<String, String> otherAttributes = 
new HashMap<>();
 
   51     private String dataSourceName = null;
 
   53     private List<String> toContactNameList = null;
 
   54     private List<String> fromContactNameList = null;
 
   62     CallLogViewData(String fromAccount, String toAccount) {
 
   63         this(fromAccount, toAccount, null);
 
   73     CallLogViewData(String fromAccount, String toAccount, String direction) {
 
   74         this.fromAccount = fromAccount;
 
   75         this.toAccount = toAccount;
 
   76         this.direction = direction;
 
   79     String getFromAccount() {
 
   83     void setFromAccount(String fromAccount) {
 
   84         this.fromAccount = fromAccount;
 
   87     String getToAccount() {
 
   91     void setToAccount(String toAccount) {
 
   92         this.toAccount = toAccount;
 
   95     String getDirection() {
 
   99     void setDirection(String direction) {
 
  100         this.direction = direction;
 
  103     String getDataSourceName() {
 
  104         return dataSourceName;
 
  107     void setDataSourceName(String dataSourceName) {
 
  108         this.dataSourceName = dataSourceName;
 
  111     String getDateTimeStr() {
 
  115     void setDateTimeStr(String dateTimeStr) {
 
  116         this.dateTimeStr = dateTimeStr;
 
  119     String getDuration() {
 
  123     void setDuration(String duration) {
 
  124         this.duration = duration;
 
  127     Collection<String> getOtherParties() {
 
  128         return Collections.unmodifiableCollection(otherParties);
 
  131     void setOtherParties(Collection<String> otherParticipants) {
 
  132         if (otherParticipants != null) {
 
  133             this.otherParties = 
new ArrayList<>(otherParticipants);
 
  137     public Map<String, String> getOtherAttributes() {
 
  138         return Collections.unmodifiableMap(otherAttributes);
 
  141     public void setOtherAttributes(Map<String, String> otherAttributes) {
 
  142         if (otherAttributes != null) {
 
  143             this.otherAttributes = 
new HashMap<>(otherAttributes);
 
  147     public String getLocalAccountId() {
 
  148         return localAccountId;
 
  151     public void setLocalAccountId(String localAccountId) {
 
  152         this.localAccountId = localAccountId;
 
  155     public void setToContactNameList(List<String> contactNameList) {
 
  156         if (contactNameList != null) {
 
  157             this.toContactNameList = 
new ArrayList<>(contactNameList);
 
  159             this.toContactNameList = 
new ArrayList<>();
 
  163     public List<String> getToContactNameList() {
 
  164         return Collections.unmodifiableList(this.toContactNameList);
 
  167     public void setFromContactNameList(List<String> contactNameList) {
 
  168         if (contactNameList != null) {
 
  169             this.fromContactNameList = 
new ArrayList<>(contactNameList);
 
  171             this.fromContactNameList = 
new ArrayList<>();
 
  175     public List<String> getFromContactNameList() {
 
  176         return Collections.unmodifiableList(this.fromContactNameList);
 
  179     public String getHostName() {
 
  183     public void setHostName(String hostName) {
 
  184         this.hostName = hostName;