All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface mypackage.iServer

public interface iServer
extends Remote
This class is the Remote interface for the Server Class .It defines the 
interface for the remote functions

Version:
1.0
Author:
Vicky Shiv

Method Index

 o addCourses(String, String)
to Add a new Courses to a student
 o addMarks(String, String, String)
to Add a new marks for a particular student and for a particular course
 o addStudent(String, String)
to Add a new Student
 o deleteCourses(String, String)
to Delete a Course for a particular studentid
 o deleteMarks(String, String, String)
to delete marks for a particular student and for a particular course
 o deleteStudent(String)
to Delete a existing Student
 o modifyMarks(String, String, String, String)
to modify a mark for a particular student and for a particular course
 o registerClient(String, iClient)
this will keep track for all the register client currently active It add the active client in to the hashtable and update the client with its current data
 o removeClient(iClient)
Remove the vanishing client
 o setPassword(String, String)
To set the password of the Student
 o updateClient()
update all the Existing ,active Client.this function is called at the destroy event of the administrator.
 o validateAdministrator(String, String)
to Validate the authentic administrator
 o validateUser(String, String)
to Validate the authentic student

Methods

 o registerClient
 public abstract void registerClient(String s,
                                     iClient client) throws RemoteException
this will keep track for all the register client currently active It add the active client in to the hashtable and update the client with its current data

Parameters:
String - the Studentid which want to get registered
iClient - the reference to the Remote Client
 o removeClient
 public abstract void removeClient(iClient client) throws RemoteException
Remove the vanishing client

Parameters:
iClient - reference to the Client
 o updateClient
 public abstract void updateClient() throws RemoteException
update all the Existing ,active Client.this function is called at the destroy event of the administrator. It will update all the active client with the latest information

 o validateUser
 public abstract boolean validateUser(String userid,
                                      String password) throws RemoteException
to Validate the authentic student

Parameters:
String - the student id
String - the password
Returns:
boolean True if an authentic user else false
 o setPassword
 public abstract boolean setPassword(String userid,
                                     String password) throws RemoteException
To set the password of the Student

Parameters:
String - the student id whose password is to be changed
String - the new password
Returns:
boolean True if changes sucessfully else false
 o addStudent
 public abstract boolean addStudent(String userid,
                                    String password) throws RemoteException
to Add a new Student

Parameters:
String - the student id that is to be added
String - the password of the student
Returns:
boolean True if added sucessfully else false
 o addCourses
 public abstract boolean addCourses(String userid,
                                    String courseid) throws RemoteException
to Add a new Courses to a student

Parameters:
String - the studentID in which new course to be added
String - the Course id
Returns:
boolean True if added sucessfully else false
 o deleteCourses
 public abstract boolean deleteCourses(String userid,
                                       String courseid) throws RemoteException
to Delete a Course for a particular studentid

Parameters:
String - the student id from which course is to be deleted
String - the courseid to be deleted
Returns:
boolean True if deleted sucessfully else false
 o addMarks
 public abstract boolean addMarks(String userid,
                                  String courseid,
                                  String marks) throws RemoteException
to Add a new marks for a particular student and for a particular course

Parameters:
String - the student id for which new mark is to be added
String - the course id for which new marks is to be added
String - the new testid and marks to be added
Returns:
boolean True if added sucessfully else false
 o deleteMarks
 public abstract boolean deleteMarks(String userid,
                                     String courseid,
                                     String marks) throws RemoteException
to delete marks for a particular student and for a particular course

Parameters:
String - the student id for which mark is to be deleted
String - the course id for which marks is to be deleted
String - the testid and marks to be deleted
Returns:
boolean True if deleted sucessfully else false
 o modifyMarks
 public abstract boolean modifyMarks(String userid,
                                     String courseid,
                                     String marks,
                                     String newMarks) throws RemoteException
to modify a mark for a particular student and for a particular course

Parameters:
String - the student id for which mark is to be modified
String - the course id for which marks is to be modified
String - the testid and marks to be modified
String - the new testid and marks
Returns:
boolean True if modified sucessfully else false
 o validateAdministrator
 public abstract boolean validateAdministrator(String userid,
                                               String password) throws RemoteException
to Validate the authentic administrator

Parameters:
String - the Administrator id
String - the password
Returns:
boolean True if an authentic administrator else false
 o deleteStudent
 public abstract boolean deleteStudent(String userid) throws RemoteException
to Delete a existing Student

Parameters:
String - the student id which is to be delete
Returns:
boolean True if deleted sucessfully else false

All Packages  Class Hierarchy  This Package  Previous  Next  Index
1