Autopsy  4.10.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
MultiUserCaseBrowserCustomizer.java
Go to the documentation of this file.
1 /*
2  * Autopsy Forensic Browser
3  *
4  * Copyright 2019-2019 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.casemodule.multiusercasesbrowser;
20 
21 import java.util.List;
22 import javax.swing.Action;
23 import org.openide.util.NbBundle;
25 
32 
41  List<Column> getColumns();
42 
49  List<SortColumn> getSortColumns();
50 
57  boolean allowMultiSelect();
58 
68  List<Action> getActions(CaseNodeData nodeData);
69 
79  Action getPreferredAction(CaseNodeData nodeData);
80 
85  final class SortColumn {
86 
87  private final Column column;
88  private final boolean sortAscending;
89  private final int sortRank;
90 
99  public SortColumn(Column column, boolean sortAscending, int sortRank) {
100  this.column = column;
101  this.sortAscending = sortAscending;
102  this.sortRank = sortRank;
103  }
104 
110  public Column column() {
111  return column;
112  }
113 
119  public boolean sortAscending() {
120  return sortAscending;
121  }
122 
129  public int sortRank() {
130  return sortRank;
131  }
132 
133  }
134 
140  @NbBundle.Messages({
141  "MultiUserCaseBrowserCustomizer.column.displayName=Name",
142  "MultiUserCaseBrowserCustomizer.column.createTime=Create Time",
143  "MultiUserCaseBrowserCustomizer.column.directory=Directory",
144  "MultiUserCaseBrowserCustomizer.column.lastAccessTime=Last Access Time"
145  })
146  public enum Column {
147  DISPLAY_NAME(Bundle.MultiUserCaseBrowserCustomizer_column_displayName()),
148  CREATE_DATE(Bundle.MultiUserCaseBrowserCustomizer_column_createTime()),
149  DIRECTORY(Bundle.MultiUserCaseBrowserCustomizer_column_directory()),
150  LAST_ACCESS_DATE(Bundle.MultiUserCaseBrowserCustomizer_column_lastAccessTime());
151 
152  private final String displayName;
153 
154  private Column(String displayName) {
155  this.displayName = displayName;
156  }
157 
158  public String getDisplayName() {
159  return displayName;
160  }
161  }
162 
163 }

Copyright © 2012-2018 Basis Technology. Generated on: Fri Mar 22 2019
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.