001/** 002 * Copyright (C) 2014 Universidade de Aveiro, DETI/IEETA, Bioinformatics Group - http://bioinformatics.ua.pt/ 003 * 004 * This file is part of Dicoogle/dicoogle. 005 * 006 * Dicoogle/dicoogle is free software: you can redistribute it and/or modify 007 * it under the terms of the GNU General Public License as published by 008 * the Free Software Foundation, either version 3 of the License, or 009 * (at your option) any later version. 010 * 011 * Dicoogle/dicoogle is distributed in the hope that it will be useful, 012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 014 * GNU General Public License for more details. 015 * 016 * You should have received a copy of the GNU General Public License 017 * along with Dicoogle. If not, see <http://www.gnu.org/licenses/>. 018 */ 019package pt.ua.dicoogle.rGUI.RFileBrowser; 020 021 022import java.rmi.Remote; 023import java.rmi.RemoteException; 024 025/** 026 * This interface provides the main methods to browse a remote File System 027 * 028 * @author Samuel Campos <samuelcampos@ua.pt> 029 */ 030@Deprecated 031public interface IRemoteFileSystem extends Remote { 032 033 //File createFileObject(String path) throws RemoteException; 034 //File createFileObject(File dir, String filename) throws RemoteException; 035 //File getChild(File parent, String fileName) throws RemoteException; 036 //boolean isFloppyDrive(File dir) throws RemoteException; 037 //File createNewFolder(File containingDir) throws RemoteException, IOException; 038 //Icon getSystemIcon(File f) throws RemoteException; 039 040 041 /** 042 * get FilePath from root to actualFile (One RemoteFile for each folder) 043 * 044 * @param filePath 045 * @return 046 * @throws RemoteException 047 */ 048 RemoteFile[] getFilePath(String filePath) throws RemoteException; 049 050 RemoteFile[] getFiles(String dirPath, boolean useFileHiding) throws RemoteException; 051 052 boolean isFileSystemRoot(String dirPath) throws RemoteException; 053 054 boolean isFileSystem(String dirPath) throws RemoteException; 055 056 boolean isDrive(String dirPath) throws RemoteException; 057 058 boolean isRoot(String dirPath) throws RemoteException; 059 060 boolean isComputerNode(String dirPath) throws RemoteException; 061 062 RemoteFile getParentDirectory(String dirPath) throws RemoteException; 063 064 String getSystemDisplayName(String filePath) throws RemoteException; 065 066 String getSystemTypeDescription(String filePath) throws RemoteException; 067 068 RemoteFile getDefaultDirectory() throws RemoteException; 069 070 RemoteFile getHomeDirectory() throws RemoteException; 071 072 RemoteFile[] getRoots() throws RemoteException; 073}