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.server.controllers;
020
021import java.rmi.RemoteException;
022import java.util.ArrayList;
023import java.util.HashMap;
024import java.util.List;
025
026import pt.ua.dicoogle.plugins.PluginController;
027import pt.ua.dicoogle.rGUI.interfaces.controllers.IPluginControllerAdmin;
028
029/**
030 *
031 * @author Carlos Ferreira
032 */
033@Deprecated
034public class PluginController4Admin implements IPluginControllerAdmin
035{
036    private static PluginController4Admin instance = null;
037
038    private PluginController4Admin()
039    {
040    }
041
042    public static PluginController4Admin getInstance()
043    {
044        if(PluginController4Admin.instance == null)
045        {
046            PluginController4Admin.instance = new PluginController4Admin();
047        }
048        return PluginController4Admin.instance;
049    }
050
051    @Override
052    public synchronized List<String> getPluginNames() throws RemoteException
053    {
054        //ok, this desperatly needs fixing...
055        //return null;
056        return new ArrayList();
057        //TODO DELETED
058        //return PluginController.getInstance().getPluginsNames();
059    }
060
061    @Override
062    public synchronized void setSettings(HashMap<String, ArrayList> settings) throws RemoteException
063    {
064
065        return ;
066        //TODO DELETED
067        //PluginController.getInstance().setSettings(settings);
068    }
069
070    @Override
071    public void InitiatePlugin(String PluginName) throws RemoteException
072    {
073
074        return ;
075        //TODO DELETED
076        //PluginController.getInstance().initializePlugin(PluginName);
077    }
078
079    @Override
080    public void StopPlugin(String PluginName) throws RemoteException
081    {
082        PluginController.getInstance().stopPlugin(PluginName);
083    }
084
085    @Override
086    public boolean isRunning(String PluginName) throws RemoteException
087    {
088
089        return false;
090        //TODO DELETED
091        //return PluginController.getInstance().isPluginRunning(PluginName);
092    }
093
094    @Override
095    public boolean isLocalPlugin(String PluginName) throws RemoteException
096    {
097
098        return false;
099        //TODO DELETED
100       // return PluginController.getInstance().isLocalPlugin(PluginName);
101    }
102
103    @Override
104    public HashMap<String, ArrayList> getInitializeParams() throws RemoteException
105    {
106
107        return null;
108        //TODO DELETED
109       // return PluginController.getInstance().getPanelInitialParams();
110    }
111
112    @Override
113    public byte[] getJarFile(String PluginName) throws RemoteException
114    {
115        return null;
116        //TODO DELETED
117        //return PluginController.getInstance().getJarFile(PluginName);
118    }
119
120    @Override
121    public void saveSettings() throws RemoteException
122    {
123
124        return ;
125        //TODO DELETED
126       //PluginController.getInstance().saveSettings();
127    }
128
129}