@Command public void onSynchronizeIndex() throws SearchLibException, InterruptedException { synchronized (this) { TaskFileManagerAction taskFileManagerAction = new TaskFileManagerAction(); taskFileManagerAction.setManual( null, null, TaskFileManagerAction.CommandSynchronize, getBufferSize()); onTask(taskFileManagerAction); } }
@Command public void onSetToUnfetched() throws SearchLibException, InterruptedException { synchronized (this) { FileManager fileManager = getFileManager(); if (fileManager == null) return; AbstractSearchRequest searchRequest = getSearchRequest(fileManager, SearchTemplate.fileSearch); TaskFileManagerAction taskFileManagerAction = new TaskFileManagerAction(); taskFileManagerAction.setManual(searchRequest, FetchStatus.UN_FETCHED, null, getBufferSize()); onTask(taskFileManagerAction); } }
@Command public void onDeleteSelection() throws SearchLibException, InterruptedException { synchronized (this) { FileManager fileManager = getFileManager(); if (fileManager == null) return; AbstractSearchRequest searchRequest = getSearchRequest(fileManager, SearchTemplate.fileExport); TaskFileManagerAction taskFileManagerAction = new TaskFileManagerAction(); taskFileManagerAction.setManual( searchRequest, null, TaskFileManagerAction.CommandDeleteSelection, getBufferSize()); onTask(taskFileManagerAction); } }