Autopsy  4.16.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
ResultDomain.java
Go to the documentation of this file.
1 /*
2  * Autopsy
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.discovery.search;
20 
21 import org.sleuthkit.datamodel.Content;
22 import org.sleuthkit.datamodel.TskCoreException;
23 import org.sleuthkit.datamodel.TskData;
24 
28 public class ResultDomain extends Result {
29 
30  private final String domain;
31  private final Long activityStart;
32  private final Long activityEnd;
33  private final Long totalVisits;
34  private final Long visitsInLast60;
35  private final Long filesDownloaded;
36 
37  private final Content dataSource;
38  private final long dataSourceId;
39 
45  ResultDomain(String domain, Long activityStart, Long activityEnd, Long totalVisits,
46  Long visitsInLast60, Long filesDownloaded, Content dataSource) {
47  this.domain = domain;
48  this.dataSource = dataSource;
49  this.dataSourceId = dataSource.getId();
50  this.activityStart = activityStart;
51  this.activityEnd = activityEnd;
52  this.totalVisits = totalVisits;
53  this.visitsInLast60 = visitsInLast60;
54  this.filesDownloaded = filesDownloaded;
55 
57  }
58 
64  public String getDomain() {
65  return this.domain;
66  }
67 
73  public Long getActivityStart() {
74  return activityStart;
75  }
76 
82  public Long getActivityEnd() {
83  return activityEnd;
84  }
85 
91  public Long getTotalVisits() {
92  return totalVisits;
93  }
94 
101  public Long getVisitsInLast60() {
102  return visitsInLast60;
103  }
104 
110  public Long getFilesDownloaded() {
111  return filesDownloaded;
112  }
113 
114  @Override
115  public long getDataSourceObjectId() {
116  return this.dataSourceId;
117  }
118 
119  @Override
120  public Content getDataSource() throws TskCoreException {
121  return this.dataSource;
122  }
123 
124  @Override
125  public TskData.FileKnown getKnown() {
126  return TskData.FileKnown.UNKNOWN;
127  }
128 
129  @Override
131  return SearchData.Type.DOMAIN;
132  }
133 
134  @Override
135  public String toString() {
136  return "[domain=" + this.domain + ", data_source=" + this.dataSourceId + ", start="
137  + this.activityStart + ", end=" + this.activityEnd + ", totalVisits=" + this.totalVisits + ", visitsLast60="
138  + this.visitsInLast60 + ", downloads=" + this.filesDownloaded + ", frequency="
139  + this.getFrequency() + "]";
140  }
141 }
final void setFrequency(SearchData.Frequency frequency)
Definition: Result.java:64

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