Autopsy  4.1
Graphical digital forensics platform for The Sleuth Kit and other tools.
RecentFiles.java
Go to the documentation of this file.
1 /*
2  * Autopsy Forensic Browser
3  *
4  * Copyright 2011 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.datamodel.accounts;
20 
23 import org.openide.util.NbBundle;
24 import org.sleuthkit.datamodel.SleuthkitCase;
25 
30 public class RecentFiles implements AutopsyVisitableItem {
31 
32  SleuthkitCase skCase;
33 
34  public enum RecentFilesFilter implements AutopsyVisitableItem {
35 
36  AUT_0DAY_FILTER(0, "AUT_0DAY_FILTER", //NON-NLS
37  NbBundle.getMessage(RecentFiles.class, "RecentFiles.aut0DayFilter.displayName.text"), 0),
38  AUT_1DAY_FILTER(0, "AUT_1DAY_FILTER", //NON-NLS
39  NbBundle.getMessage(RecentFiles.class, "RecentFiles.aut1dayFilter.displayName.text"), 1),
40  AUT_2DAY_FILTER(0, "AUT_2DAY_FILTER", //NON-NLS
41  NbBundle.getMessage(RecentFiles.class, "RecentFiles.aut2dayFilter.displayName.text"), 2),
42  AUT_3DAY_FILTER(0, "AUT_3DAY_FILTER", //NON-NLS
43  NbBundle.getMessage(RecentFiles.class, "RecentFiles.aut3dayFilter.displayName.text"), 3),
44  AUT_4DAY_FILTER(0, "AUT_4DAY_FILTER", //NON-NLS
45  NbBundle.getMessage(RecentFiles.class, "RecentFiles.aut4dayFilter.displayName.text"), 4),
46  AUT_5DAY_FILTER(0, "AUT_5DAY_FILTER", //NON-NLS
47  NbBundle.getMessage(RecentFiles.class, "RecentFiles.aut5dayFilter.displayName.text"), 5),
48  AUT_6DAY_FILTER(0, "AUT_6DAY_FILTER", //NON-NLS
49  NbBundle.getMessage(RecentFiles.class, "RecentFiles.aut6dayFilter.displayName.text"), 6);
50 
51  private int id;
52  private String name;
53  private String displayName;
54  private int durationDays;
55 
56  private RecentFilesFilter(int id, String name, String displayName, int durationDays) {
57  this.id = id;
58  this.name = name;
59  this.displayName = displayName;
60  this.durationDays = durationDays;
61  }
62 
63  public String getName() {
64  return this.name;
65  }
66 
67  public int getId() {
68  return this.id;
69  }
70 
71  public String getDisplayName() {
72  return this.displayName;
73  }
74 
75  public int getDurationDays() {
76  return this.durationDays;
77  }
78 
79  @Override
80  public <T> T accept(AutopsyItemVisitor<T> v) {
81  return v.visit(this);
82  }
83 
84  }
85 
86  public RecentFiles(SleuthkitCase skCase) {
87  this.skCase = skCase;
88  }
89 
90  @Override
91  public <T> T accept(AutopsyItemVisitor<T> v) {
92  return v.visit(this);
93  }
94 
95  public SleuthkitCase getSleuthkitCase() {
96  return this.skCase;
97  }
98 
99 }
RecentFilesFilter(int id, String name, String displayName, int durationDays)

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