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 */ 019 020package pt.ua.dicoogle.rGUI.interfaces; 021 022import java.rmi.Remote; 023import java.rmi.RemoteException; 024import pt.ua.dicoogle.rGUI.interfaces.controllers.IDicomSend; 025import pt.ua.dicoogle.rGUI.interfaces.controllers.IPluginControllerUser; 026import pt.ua.dicoogle.rGUI.interfaces.controllers.ISearch; 027 028/** 029 * This interface contains methods that are features to normal users 030 * 031 * @author Samuel Campos <samuelcampos@ua.pt> 032 */ 033@Deprecated 034public interface IUser extends Remote { 035 036 public String getUsername() throws RemoteException; 037 038 public boolean changePassword(String oldPassHash, String newPassHash) throws RemoteException; 039 040 public ISearch getSearch() throws RemoteException; 041 042 public IDicomSend getDicomSend() throws RemoteException; 043 044 public void logout() throws RemoteException; 045 046 public void KeepAlive() throws RemoteException; 047 048 public IPluginControllerUser getPluginController() throws RemoteException; 049 /** 050 * If the number is equal to the number randomly generated 051 * in Main class, the timetout stops. 052 * 053 * @param number 054 * @return if the number is equal or not 055 * @throws RemoteException 056 */ 057 public boolean shtudownTimeout(int number) throws RemoteException; 058}