Autopsy  4.21.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  "MultiUserCaseBrowserCustomizer.column.manifestFileZNodesDeleteStatus=Manifest Znodes Deleted",
146  "MultiUserCaseBrowserCustomizer.column.dataSourcesDeleteStatus=Data Sources Deleted",
147  "MultiUserCaseBrowserCustomizer.column.textIndexDeleteStatus=Text Index Deleted",
148  "MultiUserCaseBrowserCustomizer.column.caseDbDeleteStatus=Case Database Deleted",
149  "MultiUserCaseBrowserCustomizer.column.caseDirDeleteStatus=Case Directory Deleted"
150  })
151  public enum Column {
152  DISPLAY_NAME(Bundle.MultiUserCaseBrowserCustomizer_column_displayName()),
153  CREATE_DATE(Bundle.MultiUserCaseBrowserCustomizer_column_createTime()),
154  DIRECTORY(Bundle.MultiUserCaseBrowserCustomizer_column_directory()),
155  LAST_ACCESS_DATE(Bundle.MultiUserCaseBrowserCustomizer_column_lastAccessTime()),
156  MANIFEST_FILE_ZNODES_DELETE_STATUS(Bundle.MultiUserCaseBrowserCustomizer_column_manifestFileZNodesDeleteStatus()),
157  DATA_SOURCES_DELETE_STATUS(Bundle.MultiUserCaseBrowserCustomizer_column_dataSourcesDeleteStatus()),
158  TEXT_INDEX_DELETE_STATUS(Bundle.MultiUserCaseBrowserCustomizer_column_textIndexDeleteStatus()),
159  CASE_DB_DELETE_STATUS(Bundle.MultiUserCaseBrowserCustomizer_column_caseDbDeleteStatus()),
160  CASE_DIR_DELETE_STATUS(Bundle.MultiUserCaseBrowserCustomizer_column_caseDirDeleteStatus());
161 
162  private final String displayName;
163 
164  private Column(String displayName) {
165  this.displayName = displayName;
166  }
167 
168  public String getDisplayName() {
169  return displayName;
170  }
171  }
172 
173 }

Copyright © 2012-2022 Basis Technology. Generated on: Tue Feb 6 2024
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.