Mercurial Hosting > nabble
diff src/nabble/model/export/Import.java @ 0:7ecd1a4ef557
add content
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 21 Mar 2019 19:15:52 -0600 |
parents | |
children | 72765b66e2c3 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/nabble/model/export/Import.java Thu Mar 21 19:15:52 2019 -0600 @@ -0,0 +1,20 @@ +package nabble.model.export; + +import java.rmi.Remote; +import java.rmi.RemoteException; +import java.util.Date; + + +public interface Import extends Remote { + public static final class BadLink extends Exception {} + public long getNodeId(String permalink) throws RemoteException, BadLink; + public String importNode(NodeData nodeData) throws RemoteException; + public void setMailingList(Long nodeId) throws RemoteException; + public void subscribe(long nodeId) throws RemoteException; + public void setExportOwner(long nodeId,String exportOwner) throws RemoteException; + public void addUser(String name, String email, String password, Date registrationDate, String smallAvatarUrl, String bigAvatarUrl) throws RemoteException; + public void close() throws RemoteException; + + /** FOR OLD NABBLE ONLY -- TO BE REMOVED SOON */ + public void addUser0(String name, String email, String password, long registrationDate) throws RemoteException; +}