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

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