import java.rmi.server.*; import java.rmi.*; import java.util.*; import java.io.*; import MDMSupport.*; public interface FileManagerServerInterface extends Remote { //Get a message by its ID public Vector getMsgById(String userName, String folder, String Id) throws RemoteException; //Get a message by the file id contained in this public Vector getMsgByFileName(String userName, String folder, String fileName) throws RemoteException; //Add a message for a specific user in a specific folder public void addMsg(String userName, String folder, String sender,String id,Date date,String message) throws RemoteException; public void addMsg(String userName, String folder, MDMessage msg) throws RemoteException; //Delete message with a specific Id public void deleteMsg(String userName, String folder, String id); //Interface required to create the required set of files public void createNewFiles(String userName); //Flush all the messages for the user's specific folder public void flush(String userName, String folder); }