Autopsy  4.16.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
CentralRepoFileSet.java
Go to the documentation of this file.
1 /*
2  * Central Repository
3  *
4  * Copyright 2015-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.centralrepository.datamodel;
20 
21 import java.time.LocalDate;
22 import org.sleuthkit.datamodel.TskData;
23 
27 public class CentralRepoFileSet {
28 
29  private int globalSetID;
30  private int orgID;
31  private String setName;
32  private String version;
33  private TskData.FileKnown fileKnownStatus;
34  private boolean isReadOnly;
36  private LocalDate importDate;
37 
39  int globalSetID,
40  int orgID,
41  String setName,
42  String version,
43  TskData.FileKnown knownStatus,
44  boolean isReadOnly,
46  LocalDate importDate) {
47  this.globalSetID = globalSetID;
48  this.orgID = orgID;
49  this.setName = setName;
50  this.version = version;
51  this.fileKnownStatus = knownStatus;
52  this.isReadOnly = isReadOnly;
53  this.type = type;
54  this.importDate = importDate;
55  }
56 
58  int orgID,
59  String setName,
60  String version,
61  TskData.FileKnown knownStatus,
62  boolean isReadOnly,
64  LocalDate importDate) {
65  this(-1, orgID, setName, version, knownStatus, isReadOnly, type, importDate);
66  }
67 
81  int orgID,
82  String setName,
83  String version,
84  TskData.FileKnown knownStatus,
85  boolean isReadOnly,
87  this(-1, orgID, setName, version, knownStatus, isReadOnly, type, LocalDate.now());
88  }
89 
93  public int getGlobalSetID() {
94  return globalSetID;
95  }
96 
100  public void setGlobalSetID(int globalSetID) {
101  this.globalSetID = globalSetID;
102  }
103 
107  public int getOrgID() {
108  return orgID;
109  }
110 
114  public void setOrgID(int orgID) {
115  this.orgID = orgID;
116  }
117 
121  public String getSetName() {
122  return setName;
123  }
124 
128  public void setSetName(String setName) {
129  this.setName = setName;
130  }
131 
135  public String getVersion() {
136  return version;
137  }
138 
142  public void setVersion(String version) {
143  this.version = version;
144  }
145 
149  public boolean isReadOnly() {
150  return isReadOnly;
151  }
152 
156  public void setReadOnly(boolean isReadOnly) {
157  this.isReadOnly = isReadOnly;
158  }
159 
163  public TskData.FileKnown getFileKnownStatus() {
164  return fileKnownStatus;
165  }
166 
170  public void setFileKnownStatus(TskData.FileKnown fileKnownStatus) {
172  }
173 
180  return type;
181  }
182 
188  void setType(CorrelationAttributeInstance.Type type) {
189  this.type = type;
190  }
191 
195  public LocalDate getImportDate() {
196  return importDate;
197  }
198 
202  public void setImportDate(LocalDate importDate) {
203  this.importDate = importDate;
204  }
205 }
CentralRepoFileSet(int orgID, String setName, String version, TskData.FileKnown knownStatus, boolean isReadOnly, CorrelationAttributeInstance.Type type)
CentralRepoFileSet(int orgID, String setName, String version, TskData.FileKnown knownStatus, boolean isReadOnly, CorrelationAttributeInstance.Type type, LocalDate importDate)
CentralRepoFileSet(int globalSetID, int orgID, String setName, String version, TskData.FileKnown knownStatus, boolean isReadOnly, CorrelationAttributeInstance.Type type, LocalDate importDate)

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.