

Public Member Functions | |
| void | disconnectClient (String usr, String pswd) throws java.rmi.RemoteException |
| Interfaccia del metodo che disconnette un client dal server cancellandolo dal DBMS. More... | |
| boolean | serverOn () throws java.rmi.RemoteException |
| Interfaccia della funzione che ritorna true se il server e' attivo. More... | |
| boolean | clientAlive (String usr, String pswd) throws java.rmi.RemoteException |
| Interfaccia che verifica se il client e' connesso al server, cioe' se e' presente nel DBMS. More... | |
| String | getAccessStringDelete (String usr, String pswd, String owner_file, String id_file) throws java.rmi.RemoteException |
| Interfaccia del metodo che costruisce la stringa di autenticazione che permette ad un client registrato di cancellare un file (se i diritti lo permettono) di un altro client. More... | |
| String | getAccessStringRead (String usr, String pswd, String owner_file, String id_file) throws java.rmi.RemoteException |
| Interfaccia del metodo che costruisce la stringa di autenticazione che permette ad un client registrato di scaricare un file (se i diritti lo permettono) di un altro client. More... | |
| String | getAccessStringUpload (String usr, String pswd, String id_client2, String id_file) throws java.rmi.RemoteException |
| Interfaccia del metodo che costruisce la stringa di autenticazione che permette ad un client registrato di inviare un file (se i diritti lo permettono) di un altro client. More... | |
| ArrayList | getList (String usr, String pswd, String where) throws java.rmi.RemoteException |
| Interfaccia del metodo che restituisce la lista dei file presenti sul DBMS del server, in base alla clausola WHERE specificabile in input. More... | |
| ArrayList | getUserList (String usr, String pswd, String where) throws java.rmi.RemoteException |
| Interfaccia del metodo che restituisce la lista degli utenti presenti sul DBMS del server, in base alla clausola WHERE specificabile in input. More... | |
| boolean | removeFile (String usr, String pswd, String name, String Path, int State) throws java.rmi.RemoteException |
| Interfaccia del metodo che cancella i file presenti sul DBMS del server, in base alla clausola WHERE specificabile in input. More... | |
| boolean | sendList (String usr, String pswd, ArrayList list) throws java.rmi.RemoteException |
| Interfaccia del metodo che invia una lista di file al DBMS del server. More... | |
| int | registerToServer (String user, String pswd) throws java.rmi.RemoteException |
| Interfaccia del metodo che inserisce un utente autorizzato (si veda p2putility.Util.login) nella lista utenti del DBMS del server. More... | |
Definition at line 12 of file RMIFuncConstructor.java.
| boolean p2pclient.RMIFuncConstructor.clientAlive | ( | String | usr, |
| String | pswd | ||
| ) | throws java.rmi.RemoteException |
Interfaccia che verifica se il client e' connesso al server, cioe' se e' presente nel DBMS.
| usr | username |
| pswd | password |
| java.rmi.RemoteException |
Implemented in p2pserver.ServerRMI.
Referenced by p2pclient.clientRMI.main().

| void p2pclient.RMIFuncConstructor.disconnectClient | ( | String | usr, |
| String | pswd | ||
| ) | throws java.rmi.RemoteException |
Interfaccia del metodo che disconnette un client dal server cancellandolo dal DBMS.
| usr | username |
| pswd | password |
| java.rmi.RemoteException |
Implemented in p2pserver.ServerRMI.
Referenced by p2pclient.clientRMI.main().

| String p2pclient.RMIFuncConstructor.getAccessStringDelete | ( | String | usr, |
| String | pswd, | ||
| String | owner_file, | ||
| String | id_file | ||
| ) | throws java.rmi.RemoteException |
Interfaccia del metodo che costruisce la stringa di autenticazione che permette ad un client registrato di cancellare un file (se i diritti lo permettono) di un altro client.
| usr | username |
| pswd | password |
| owner_file | username del possessore |
| id_file | id univoco del file |
| java.rmi.RemoteException |
Implemented in p2pserver.ServerRMI.
Referenced by p2pclient.clientRMI.main().

| String p2pclient.RMIFuncConstructor.getAccessStringRead | ( | String | usr, |
| String | pswd, | ||
| String | owner_file, | ||
| String | id_file | ||
| ) | throws java.rmi.RemoteException |
Interfaccia del metodo che costruisce la stringa di autenticazione che permette ad un client registrato di scaricare un file (se i diritti lo permettono) di un altro client.
| usr | username |
| pswd | password |
| owner_file | username del possessore |
| id_file | id univoco del file |
| java.rmi.RemoteException |
Implemented in p2pserver.ServerRMI.
Referenced by p2pclient.clientRMI.main().

| String p2pclient.RMIFuncConstructor.getAccessStringUpload | ( | String | usr, |
| String | pswd, | ||
| String | id_client2, | ||
| String | id_file | ||
| ) | throws java.rmi.RemoteException |
Interfaccia del metodo che costruisce la stringa di autenticazione che permette ad un client registrato di inviare un file (se i diritti lo permettono) di un altro client.
| usr | username |
| pswd | password |
| id_client2 | username del possessore |
| id_file | id univoco del file |
| java.rmi.RemoteException |
Implemented in p2pserver.ServerRMI.
Referenced by p2pclient.clientRMI.main().

| ArrayList p2pclient.RMIFuncConstructor.getList | ( | String | usr, |
| String | pswd, | ||
| String | where | ||
| ) | throws java.rmi.RemoteException |
Interfaccia del metodo che restituisce la lista dei file presenti sul DBMS del server, in base alla clausola WHERE specificabile in input.
| usr | username |
| pswd | password |
| where | (e' possiblie inserire codice SQL *) |
| java.rmi.RemoteException |
Implemented in p2pserver.ServerRMI.
Referenced by p2pclient.clientRMI.main().

| ArrayList p2pclient.RMIFuncConstructor.getUserList | ( | String | usr, |
| String | pswd, | ||
| String | where | ||
| ) | throws java.rmi.RemoteException |
Interfaccia del metodo che restituisce la lista degli utenti presenti sul DBMS del server, in base alla clausola WHERE specificabile in input.
| usr | username |
| pswd | password |
| where | (e' possiblie inserire codice SQL *) |
| java.rmi.RemoteException |
Implemented in p2pserver.ServerRMI.
Referenced by p2pclient.clientRMI.main().

| int p2pclient.RMIFuncConstructor.registerToServer | ( | String | user, |
| String | pswd | ||
| ) | throws java.rmi.RemoteException |
Interfaccia del metodo che inserisce un utente autorizzato (si veda p2putility.Util.login) nella lista utenti del DBMS del server.
| user | username |
| pswd | password |
| java.rmi.RemoteException |
Implemented in p2pserver.ServerRMI.
Referenced by p2pclient.clientRMI.main().

| boolean p2pclient.RMIFuncConstructor.removeFile | ( | String | usr, |
| String | pswd, | ||
| String | name, | ||
| String | Path, | ||
| int | State | ||
| ) | throws java.rmi.RemoteException |
Interfaccia del metodo che cancella i file presenti sul DBMS del server, in base alla clausola WHERE specificabile in input.
| usr | username |
| pswd | password |
| name | nome file |
| Path | path del file |
| State | stato del file |
| java.rmi.RemoteException |
Implemented in p2pserver.ServerRMI.
Referenced by p2pclient.clientRMI.main().

| boolean p2pclient.RMIFuncConstructor.sendList | ( | String | usr, |
| String | pswd, | ||
| ArrayList | list | ||
| ) | throws java.rmi.RemoteException |
Interfaccia del metodo che invia una lista di file al DBMS del server.
| usr | username |
| pswd | password |
| list | (ArrayList di ArrayList) che contiene i dati dei file da inviare |
| java.rmi.RemoteException |
Implemented in p2pserver.ServerRMI.
Referenced by p2pclient.clientRMI.main().

| boolean p2pclient.RMIFuncConstructor.serverOn | ( | ) | throws java.rmi.RemoteException |
Interfaccia della funzione che ritorna true se il server e' attivo.
| java.rmi.RemoteException |
Implemented in p2pserver.ServerRMI.
Referenced by p2pclient.clientRMI.main().
