|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--vc.corba.client.CheckingUtility
CheckingUtility is the class that encapsulates the client side functionality for the checking related activities like CheckIn, CheckOut etc. for the files and directories/projects. It is also a mediator between the CORBA server throught the IDL interfaces and the client side GUI classes.
Constructor Summary | |
CheckingUtility(ProjectDBManager projectDBManager,
FileVersionManager fileVersionManager,
FileSystemHandler fileSystemHandler)
Constructs the CheckingUtility object |
Method Summary | |
void |
checkInFiles(File[] currentFileList,
boolean removeLocalCopy,
boolean keepCheckedOut,
java.lang.String versionName,
java.lang.String comment)
Checks In the files in the following manner. |
void |
checkInProject(Directory currentDirectory,
boolean ifPopupNode,
boolean recursive,
boolean overrideWorkingCopy,
boolean removeLocalCopy,
boolean keepCheckedOut,
java.lang.String versionName,
java.lang.String comment)
Checks In the project recursively (if needed) in the following manner. |
void |
checkOutFiles(File[] currentFileList,
java.lang.String checkOutDir,
boolean dontGetLocalCopy,
java.lang.String replaceWritable,
java.lang.String setFileTime)
Checks Out the files in the following manner. |
void |
checkOutProject(Directory currentDirectory,
java.lang.String checkOutDir,
boolean ifPopupNode,
boolean recursive,
boolean overrideWorkingCopy,
boolean dontGetLocalCopy,
java.lang.String replaceWritable,
java.lang.String setFileTime)
Checks Out the project recursively (if needed) in the following manner. |
void |
getLatestFiles(File[] currentFileList,
java.lang.String checkOutDir,
boolean dontGetLocalCopy,
boolean makeWritable,
java.lang.String replaceWritable,
java.lang.String setFileTime)
Gets latest version of the files in the following manner. |
void |
getLatestProject(Directory currentDirectory,
java.lang.String checkOutDir,
boolean ifPopupNode,
boolean recursive,
boolean overrideWorkingCopy,
boolean dontGetLocalCopy,
boolean makeWritable,
java.lang.String replaceWritable,
java.lang.String setFileTime)
Gets the latest versions of the files in the project recursively (if needed) in the following manner. |
void |
undoCheckOutFiles(File[] currentFileList,
java.lang.String localCopyOption)
Undos Check In the files in the following manner. |
void |
undoCheckOutProject(Directory currentDirectory,
boolean ifPopupNode,
boolean recursive,
boolean overrideWorkingCopy,
java.lang.String localCopyOption)
Undo the previous Check Out operation on the project recursively (if needed) in the following manner. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CheckingUtility(ProjectDBManager projectDBManager, FileVersionManager fileVersionManager, FileSystemHandler fileSystemHandler)
projectDBManager
- To initialize the object's memeber projectDBManagerfileVersionManager
- To initialize the object's memeber fileVersionManagerfileSystemHandler
- To initialize the object's memeber fileSystemHandlerMethod Detail |
public void checkInProject(Directory currentDirectory, boolean ifPopupNode, boolean recursive, boolean overrideWorkingCopy, boolean removeLocalCopy, boolean keepCheckedOut, java.lang.String versionName, java.lang.String comment) throws java.lang.Throwable
currentDirectory
- the directory that is to be checked InifPopupNode
- it will be true if the project is being showed on GUI, if it
is true then GUI classes will be updated with latest project status.recursive
- if true then the same method will be called for all the child projects/directoriesoverrideWorkingCopy
- if true then Checkin the source files from a location different from
where they are checked in.removeLocalCopy
- if true then remove the checked in files where ever they arekeepCheckedOut
- if true then keep the files checkeout even after the checkinversionName
- name of the version to be set for the source files that are checked incomment
- comments that are to be set for the version added for the source filespublic void undoCheckOutProject(Directory currentDirectory, boolean ifPopupNode, boolean recursive, boolean overrideWorkingCopy, java.lang.String localCopyOption) throws java.lang.Throwable
currentDirectory
- the directory check out operation is to be cancelledifPopupNode
- it will be true if the project is being showed on GUI, if it
is true then GUI classes will be updated with latest project status.recursive
- if true then the same method will be called for all the child projects/directoriesoverrideWorkingCopy
- if true then undo checkout the source files from a location different from
where they are checked out.localCopyOption
- this is to decide if the files are to be removed,
or repaced or ignored once the undo operation is done.public void checkOutProject(Directory currentDirectory, java.lang.String checkOutDir, boolean ifPopupNode, boolean recursive, boolean overrideWorkingCopy, boolean dontGetLocalCopy, java.lang.String replaceWritable, java.lang.String setFileTime) throws java.lang.Throwable
currentDirectory
- the directory that is to be checked OutcheckOutDir
- the directory to where the files are to be checked outifPopupNode
- it will be true if the project is being showed on GUI, if it
is true then GUI classes will be updated with latest project status.recursive
- if true then the same method will be called for all the child projects/directoriesoverrideWorkingCopy
- if true then Checksout the source files to a location different from
where they are mapped to.dontGetLocalCopy
- if true then the project files will be checked out
but those files wont be created in the intended directory.replaceWritable
- if this is true and if the source files already exist then
the source files will be overwritten with the new copies of checkedout files.setFileTime
- this is to choose the timestamp to be set for the newly created files.
Options include current time, checked in time of the file etc.public void getLatestProject(Directory currentDirectory, java.lang.String checkOutDir, boolean ifPopupNode, boolean recursive, boolean overrideWorkingCopy, boolean dontGetLocalCopy, boolean makeWritable, java.lang.String replaceWritable, java.lang.String setFileTime) throws java.lang.Throwable
currentDirectory
- the directory whose latest version is to be obtainedcheckOutDir
- the directory to where the files are to be copiedifPopupNode
- it will be true if the project is being showed on GUI, if it
is true then GUI classes will be updated with latest project status.recursive
- if true then the same method will be called for all the child projects/directoriesoverrideWorkingCopy
- if true then gets the source files to a location different from
where they are mapped to.dontGetLocalCopy
- if true then the latest version of the project files will obtained
but those files wont be created in the intended directory.makeWritable
- if this is true then the copied files will be made writable or read-write.replaceWritable
- if this is true and if the source files already exist then
the source files will be overwritten with the new copies of files.setFileTime
- this is to choose the timestamp to be set for the newly created files.
Options include current time, checked in time of the file etc.public void checkInFiles(File[] currentFileList, boolean removeLocalCopy, boolean keepCheckedOut, java.lang.String versionName, java.lang.String comment) throws java.lang.Throwable
currentFileList
- array of the file objects that are to be checked inremoveLocalCopy
- if true then remove the checked in files where ever they arekeepCheckedOut
- if true then keep the files checkeout even after the checkinversionName
- name of the version to be set for the source files that are checked incomment
- comments that are to be set for the version added for the source filespublic void undoCheckOutFiles(File[] currentFileList, java.lang.String localCopyOption) throws java.lang.Throwable
currentFileList
- array of the file objects for whom the check in
operation is to be cancelled.localCopyOption
- this is to decide if the files are to be removed,
or repaced or ignored once the undo operation is done.public void checkOutFiles(File[] currentFileList, java.lang.String checkOutDir, boolean dontGetLocalCopy, java.lang.String replaceWritable, java.lang.String setFileTime) throws java.lang.Throwable
currentFileList
- array of the file objects that are to be checked outcheckOutDir
- the directory to where the files are to be checked outdontGetLocalCopy
- if true then the project files will be checked out
but those files wont be created in the intended directory.replaceWritable
- if this is true and if the source files already exist then
the source files will be overwritten with the new copies of checkedout files.setFileTime
- this is to choose the timestamp to be set for the newly created files.
Options include current time, checked in time of the file etc.public void getLatestFiles(File[] currentFileList, java.lang.String checkOutDir, boolean dontGetLocalCopy, boolean makeWritable, java.lang.String replaceWritable, java.lang.String setFileTime) throws java.lang.Throwable
currentFileList
- array of the file objects that are to be checked outcheckOutDir
- the directory to where the files are to be copieddontGetLocalCopy
- if true then the latest version of the project files will be obtained
but those files wont be created in the intended directory.makeWritable
- if this is true then the copied files will be made writable or read-write.replaceWritable
- if this is true and if the source files already exist then
the source files will be overwritten with the new copies of files.setFileTime
- this is to choose the timestamp to be set for the newly created files.
Options include current time, checked in time of the file etc.
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |