vc.corba.client
Class VCClient

java.lang.Object
  |
  +--org.omg.CORBA.portable.ObjectImpl
        |
        +--vc.corba.common.intf._ProjectDBManagerCBImplBase
              |
              +--vc.corba.client.VCClient
All Implemented Interfaces:
org.omg.CORBA.portable.IDLEntity, org.omg.CORBA.portable.InvokeHandler, org.omg.CORBA.Object, ProjectDBManagerCB, ProjectDBManagerCBOperations, java.lang.Runnable, java.io.Serializable

public class VCClient
extends _ProjectDBManagerCBImplBase
implements java.lang.Runnable

VCClient is the main class of VersionControl client. It initializes the ORB and then the GUI. After the GUI is shown this goes out of picture so that the GUI classes will work with the user request processing and the communication with VersionControl server.

See Also:
Serialized Form

Field Summary
static CheckingUtility checkingUtility
          Gives the functionality for doing the checking related operations files/projects
static ClientFrame clientFrame
          Object of the GUI class that shows the main window for VersionControl client application
static java.lang.String connectionID
          connection id of the connection to the VersionControl server
static FileCheckingDialog fileCheckingDialog
          Object of the GUI class to get the options related to the file/project checking
static FileSystemHandler fileSystemHandler
          Gives the access to the native filesystem operations like changing file settings etc.
static FileVersionManager fileVersionManager
          Reference to the CORBA implementaion for the IDL interface FileVersionManager
static LabelHandlingDialog labelHandlingDialog
          Object of the GUI class to get the options related to version selection and viewing the version details of files/projects
static Logger logger
          Logger object which will be shared by all the client classes
static ProjectDBManager projectDBManager
          Reference to the CORBA implementaion for the IDL interface ProjectDBHandler
static java.lang.String properiesFile
          Property file where the properties specific to VersionClient are set
static java.lang.String userID
          user id with which the connection is made to the VersionControl server
 
Constructor Summary
VCClient()
          Constructs the VCClient object , by doing the house keeping operations like loading the properties, Initializing logger etc.
 
Method Summary
 void directoryAdded(java.lang.String parentID, Directory newDirectory)
          CORBA callback method which is invoked by VersionControl server when a new directory is created by another VersionControl client.
 void directoryDeleted(java.lang.String directoryID)
          CORBA callback method which is invoked by VersionControl server when a directory is deleted by another VersionControl client.
 void directoryUpdated(Directory newDirectory)
          CORBA callback method which is invoked by VersionControl server when a directory is modified by another VersionControl client.
 void fileAdded(java.lang.String parentID, File newFile)
          CORBA callback method which is invoked by VersionControl server when a new file is created by another VersionControl client.
 void fileCheckStatusChanged(java.lang.String fileID, boolean ckeckedOut, java.lang.String checkOutUser)
          CORBA callback method which is invoked by VersionControl server when a file's checking status is changed by another VersionControl client.
 void fileDeleted(java.lang.String fileID)
          CORBA callback method which is invoked by VersionControl server when a file is deleted by another VersionControl client.
 void fileUpdated(File newFile)
          CORBA callback method which is invoked by VersionControl server when a file is updated by another VersionControl client.
 void initializeGUI()
          Initializes the GUI for the application and shows the GUI
 void initializeORB()
          Initializes the client side ORB for the application.
static void main(java.lang.String[] a)
          Starting point for the VersionControl client application
 void multipleFileCheckStatusChanged(java.lang.String[] fileIDs, boolean ckeckedOut, java.lang.String checkOutUser)
          CORBA callback method which is invoked by VersionControl server when the checking status is changed for multiple files by another VersionControl client.
 void run()
          Starts the GUI on a new thread
 
Methods inherited from class vc.corba.common.intf._ProjectDBManagerCBImplBase
_ids, _invoke
 
Methods inherited from class org.omg.CORBA.portable.ObjectImpl
_create_request, _create_request, _duplicate, _get_delegate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_delegate, _set_policy_override, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.omg.CORBA.Object
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_override
 

Field Detail

connectionID

public static java.lang.String connectionID
connection id of the connection to the VersionControl server

userID

public static java.lang.String userID
user id with which the connection is made to the VersionControl server

properiesFile

public static java.lang.String properiesFile
Property file where the properties specific to VersionClient are set

fileCheckingDialog

public static FileCheckingDialog fileCheckingDialog
Object of the GUI class to get the options related to the file/project checking

labelHandlingDialog

public static LabelHandlingDialog labelHandlingDialog
Object of the GUI class to get the options related to version selection and viewing the version details of files/projects

logger

public static Logger logger
Logger object which will be shared by all the client classes

checkingUtility

public static CheckingUtility checkingUtility
Gives the functionality for doing the checking related operations files/projects

fileSystemHandler

public static FileSystemHandler fileSystemHandler
Gives the access to the native filesystem operations like changing file settings etc.

projectDBManager

public static ProjectDBManager projectDBManager
Reference to the CORBA implementaion for the IDL interface ProjectDBHandler

fileVersionManager

public static FileVersionManager fileVersionManager
Reference to the CORBA implementaion for the IDL interface FileVersionManager

clientFrame

public static ClientFrame clientFrame
Object of the GUI class that shows the main window for VersionControl client application
Constructor Detail

VCClient

public VCClient()
         throws java.lang.Throwable
Constructs the VCClient object , by doing the house keeping operations like loading the properties, Initializing logger etc.
Method Detail

main

public static void main(java.lang.String[] a)
Starting point for the VersionControl client application
Parameters:
a - first string in this array is the properties file name

run

public void run()
Starts the GUI on a new thread
Specified by:
run in interface java.lang.Runnable

initializeGUI

public void initializeGUI()
                   throws java.lang.Throwable
Initializes the GUI for the application and shows the GUI

initializeORB

public void initializeORB()
                   throws java.lang.Throwable
Initializes the client side ORB for the application. Most of the ORB binding information is picked from the properties file passed as the commandline parameters for this application

directoryAdded

public void directoryAdded(java.lang.String parentID,
                           Directory newDirectory)
CORBA callback method which is invoked by VersionControl server when a new directory is created by another VersionControl client. This method is helpfull in updating the GUI to refelect the changes to a project by the other clients. Hence this is used to synchronize the state of the VersionControl system among all the distributed applications
Parameters:
parentID - parentID of the directory which is newly created
newDirectory - information of the directory which is newly created

directoryUpdated

public void directoryUpdated(Directory newDirectory)
CORBA callback method which is invoked by VersionControl server when a directory is modified by another VersionControl client. This method is helpfull in updating the GUI to refelect the changes to a project by the other clients. Hence this is used to synchronize the state of the VersionControl system among all the distributed applications
Parameters:
newDirectory - information of the directory which is modified

directoryDeleted

public void directoryDeleted(java.lang.String directoryID)
CORBA callback method which is invoked by VersionControl server when a directory is deleted by another VersionControl client. This method is helpfull in updating the GUI to refelect the changes to a project by the other clients. Hence this is used to synchronize the state of the VersionControl system among all the distributed applications
Parameters:
directoryID - directoryID of the directory which is deleted

fileAdded

public void fileAdded(java.lang.String parentID,
                      File newFile)
CORBA callback method which is invoked by VersionControl server when a new file is created by another VersionControl client. This method is helpfull in updating the GUI to refelect the changes to a project by the other clients. Hence this is used to synchronize the state of the VersionControl system among all the distributed applications
Parameters:
parentID - parentID of the file which is newly created
newFile - information of the file which is newly created

fileUpdated

public void fileUpdated(File newFile)
CORBA callback method which is invoked by VersionControl server when a file is updated by another VersionControl client. This method is helpfull in updating the GUI to refelect the changes to a project by the other clients. Hence this is used to synchronize the state of the VersionControl system among all the distributed applications
Parameters:
newFile - information of the file which is updated

fileDeleted

public void fileDeleted(java.lang.String fileID)
CORBA callback method which is invoked by VersionControl server when a file is deleted by another VersionControl client. This method is helpfull in updating the GUI to refelect the changes to a project by the other clients. Hence this is used to synchronize the state of the VersionControl system among all the distributed applications
Parameters:
fileID - fileID of the file which is deleted

fileCheckStatusChanged

public void fileCheckStatusChanged(java.lang.String fileID,
                                   boolean ckeckedOut,
                                   java.lang.String checkOutUser)
CORBA callback method which is invoked by VersionControl server when a file's checking status is changed by another VersionControl client. This method is helpfull in updating the GUI to refelect the changes to a project by the other clients. Hence this is used to synchronize the state of the VersionControl system among all the distributed applications
Parameters:
fileID - fileID of the file whose checking status is changed
ckeckedOut - indicates if the file is checked out or checked in recently
checkOutUser - the user who is responsible for the change in checking status

multipleFileCheckStatusChanged

public void multipleFileCheckStatusChanged(java.lang.String[] fileIDs,
                                           boolean ckeckedOut,
                                           java.lang.String checkOutUser)
CORBA callback method which is invoked by VersionControl server when the checking status is changed for multiple files by another VersionControl client. This method is helpfull in updating the GUI to refelect the changes to a project by the other clients. Hence this is used to synchronize the state of the VersionControl system among all the distributed applications
Parameters:
fileIDs - fileIDs of the files whose checking status has changed
ckeckedOut - indicates if the file is checked out or checked in recently
checkOutUser - the user who is responsible for the change in checking status