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.interfaces.controllers;
020
021import java.rmi.Remote;
022import java.rmi.RemoteException;
023
024/**
025 * Directory Settings interface
026 *
027 * @author Samuel Campos <samuelcampos@ua.pt>
028 */
029@Deprecated
030public interface IDirectory extends Remote {
031
032    /**
033     *
034     * @param path
035     * @return  0 - Ok
036     *          1 - Not a directory
037     *          2 - Can't read
038     *          3 - Can't write
039     * @throws RemoteException
040     */
041    public int setStoragePath(String path) throws RemoteException;
042    public String getStoragePath() throws RemoteException;
043
044    /**
045     *
046     * @param path
047     * @return  0 - Ok
048     *          1 - Not a directory
049     *          2 - Can't read
050     *          3 - Can't write
051     * @throws RemoteException
052     */
053    public int setDicoogleDir(String path) throws RemoteException;
054    public String getDicoogleDir() throws RemoteException;
055
056    /**
057     *
058     * @param effort
059     * @return  true - OK
060     *          false - wrong effort 0 <= effort <= 100
061     * @throws RemoteException
062     */
063    public boolean setIndexerEffort(int effort) throws RemoteException;
064    public int getIndexerEffort() throws RemoteException;
065
066    public void setSaveThumbnails(boolean value) throws RemoteException;
067    public boolean getSaveThumbnails() throws RemoteException;
068
069    public void setThumbnailsMatrix(String ThumbnailsMatrix) throws RemoteException;
070    public String getThumbnailsMatrix() throws RemoteException;
071
072    /**
073     *
074     * @return  0 - OK
075     *          1 - Defined storage path is invalid
076     *          2 - Server running
077     * @throws RemoteException
078     */
079    public int rebuildIndex() throws RemoteException;
080
081    /**
082     *
083     * @return  0 - OK
084     *          1 - Defined storage path is invalid
085     *          2 - Server running
086     * @throws RemoteException
087     */
088    public int rebuildDICOMDir() throws RemoteException;
089
090
091    public boolean isIndexZip() throws RemoteException;
092
093    public void setIndexZip(boolean value) throws RemoteException;
094    
095    
096    public boolean isGZipStorage() throws RemoteException;
097
098    public void setGZipStorage(boolean value) throws RemoteException;
099    
100    public boolean isIndexAnonymous() throws RemoteException;
101
102    public void setIndexAnonymous(boolean value) throws RemoteException;
103    
104    
105    
106    
107    public void setMonitorWatcher(boolean monitorWatcher) throws RemoteException;
108    
109    public boolean isMonitorWatcher() throws RemoteException;
110
111
112}