You are on page 1of 4

FUFInterface

___________________________________________
 public void register(String name, String pass) throws RemoteException;

Return Type: void


Parameters: username and password
Description: Takes the username and password from the input field and checks if the username
already exists in the database. If there is no such existing username in the database, the username
and password are placed on the database.

 public ArrayList<String>logIn(CallbackInterface mc) throws RemoteException;

Return Type: ArrayList<String>


Parameter: CallbackInterface
Description:

 public ArrayList<ArrayList<String>> contacts(String u) throws RemoteException;

Return Type: ArrayList<ArrayList<String>>


Parameter: String user
Description: By the time the user logs into his/her account, this method automatically executes
and returns an arraylist of the user’s contacts taken from the database.

 public void broadcast (CallbackInterface mc, String msg) throws


RemoteException,NotLoggedInException;

Return Type: void


Parameter: CallbackInterface mc, String msg
Description:

 public void addContact (String u, String name) throws RemoteException;

Return Type: void


Parameter: username, and the username of the person to be added
Description: adds a user to the logged in user’s contact list.

 public void deleteContact (String user, String friend) throws RemoteException;

Return Type: void


Parameters: String user, String friend
Description: Deletes the contact of the logged in user

 public String getStatus (String name) throws RemoteException;

Return Type: String


Parameter: String name
Description: Returns the current status of the User.

 public String getShout (String name) throws RemoteException;

Return Type: String


Parameter: String name
Description: Returns the current shout message of the User.

 public Boolean searchUser(String n) throws RemoteException;

Return Type: boolean


Parameter: String n
Description: returns true if the searched user exists in the database, otherwise false.

 public void sendMsg (String rcpt, String msg) throws RemoteException;

Return Type:
Parameter:
Description:

 public void createConfe() throws RemoteException;

Return Type:
Parameter:
Description:

 public void confirmConfe() throws RemoteException;

Return Type:
Parameter:
Description:

 public void sendConfeMsg () throws RemoteException;

Return Type:
Parameter:
Description:

 public void changeShout (String shout, String name) throws RemoteException;

Return Type:
Parameter: String shout, String name
Description: Changes the shout message of the current user.

 public void deleteConfe () throws RemoteException;


Return Type:
Parameter:
Description:

 public void ViewMembers () throws RemoteException;

Return Type:
Parameter:
Description:

 public void addContactConfe () throws RemoteException;

Return Type:
Parameter:
Description:

 public void logOutUser (CallbackInterface mc) throws RemoteException,


NotLoggedInException;

Return Type: void


Parameter: CallbackInterface mc
Description: logs out the user and removes him/her in the arraylist of logged in users.

Callback_Interface___________________________________
 public User getUser() throws RemoteException;

Return Type: User


Parameter: none
Description: Returns the User of the Callback Session.

 public void shoutNotif(String user, String shout) throws RemoteException;

Return Type: void


Parameters: String user, String shout
Description: called by the server to notify online users stored in the hashtable that the user has
changed his/her shout message.

 public void receiveMsg(String sender, String msg) throws RemoteException;

Return Type: void


Parameters: String sender, String msg
Description:

 public void receiveBroadcast(User u, String msg)throws RemoteException;

Return Type: void


Parameters: User u, String msg
Description: called by the server to send broadcast message to all online contacts, stored in a
hashtable, by the user.

 public void receiveConfeMsg(String sender, String msg) throws RemoteException;

Return Type: void


Parameters: String sender, String msg
Description: receives a conference message sent by the members of the conference????

 public void receiveConfeInvite(String confename) throws RemoteException;

Return Type: void


Parameters: String
Description: notifies a user that he/she has been invited to join a conference.

 public void loginNotif(User u) throws RemoteException;

Return Type: void


parameter: current user
Description : Creates a notification box to all the users in the current user’s contacts that the user
has already logged in.

 public void logoutNotif(User u) throws RemoteException;

Return Type: void


Parameters: User u, String msg
Description: Creates a notification box to all the users in the current user’s contacts that the user
has already logged out.

You might also like