Autopsy  4.16.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
DomainSearchArtifactsRequest.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.discovery.search;
20 
21 import java.util.Objects;
22 import org.sleuthkit.datamodel.SleuthkitCase;
23 import org.sleuthkit.datamodel.BlackboardArtifact.ARTIFACT_TYPE;
24 
29 
30  private final SleuthkitCase sleuthkitCase;
31  private final String domain;
32  private final ARTIFACT_TYPE artifactType;
33 
41  public DomainSearchArtifactsRequest(SleuthkitCase sleuthkitCase,
42  String domain, ARTIFACT_TYPE artifactType) {
43  this.sleuthkitCase = sleuthkitCase;
44  this.domain = domain;
45  this.artifactType = artifactType;
46  }
47 
53  public SleuthkitCase getSleuthkitCase() {
54  return sleuthkitCase;
55  }
56 
62  public String getDomain() {
63  return domain;
64  }
65 
71  public ARTIFACT_TYPE getArtifactType() {
72  return artifactType;
73  }
74 
75  @Override
76  public boolean equals(Object other) {
77  if (other == this) {
78  return true;
79  }
80  if (!(other instanceof DomainSearchArtifactsRequest)) {
81  return false;
82  }
83  DomainSearchArtifactsRequest otherRequest = (DomainSearchArtifactsRequest) other;
84  return this.sleuthkitCase == otherRequest.getSleuthkitCase()
85  && this.domain.equals(otherRequest.getDomain())
86  && this.artifactType == otherRequest.getArtifactType();
87  }
88 
89  @Override
90  public int hashCode() {
91  return 79 * 5 + Objects.hash(this.domain, this.artifactType);
92  }
93 }
DomainSearchArtifactsRequest(SleuthkitCase sleuthkitCase, String domain, ARTIFACT_TYPE artifactType)

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.