|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.omg.CORBA.portable.ObjectImpl | +--vc.corba.common.intf._FileVersionManagerImplBase | +--vc.corba.server.FileVersionManagerImpl
FileVersionManagerImpl is the CORBA implementation for the IDL interface FileVersionManager. This is the facade(pattern) for the subsystem which deals with the management of the file versions. This provides the file versioning functionality for VersionControl/CORBA sesrver. This delegeates most of the processing to ProjectDB and other objects.
Constructor Summary | |
FileVersionManagerImpl(ProjectDB projectDB,
ProjectDBManagerImpl projectDBManager)
Constructs FileVersionManagerImpl object out of the parameters passed to it. |
Method Summary | |
void |
addFileVersion(java.lang.String connectionID,
boolean keepCheckedOut,
VersionData newVersionData,
java.lang.String dirMappedTo,
boolean unitOperation)
Creates a new version for the existing file in the Project database . |
void |
addLabelForDirectories(java.lang.String connectionID,
java.lang.String labelName,
boolean recursive,
java.lang.String[] directoryIDs,
boolean unitOperation)
Creates a new label for the existing directories in the Project database . |
void |
addLabelForFiles(java.lang.String connectionID,
java.lang.String labelName,
java.lang.String[] fileIDs,
boolean unitOperation)
Creates a new label for the existing files in the Project database . |
void |
checkInFile(java.lang.String connectionID,
java.lang.String fileID,
boolean unitOperation)
Checks in the existing file in the Project database . |
void |
checkInMultipleFiles(java.lang.String connectionID,
java.lang.String[] fileIDs,
boolean unitOperation)
Checks in the multiple existing files in the Project database . |
void |
checkOutFile(java.lang.String connectionID,
java.lang.String fileID,
java.lang.String checkOutDir,
boolean unitOperation)
Checks out the existing file in the Project database . |
void |
checkOutMultipleFiles(java.lang.String connectionID,
java.lang.String[] fileIDs,
java.lang.String checkOutDir,
boolean unitOperation)
Checks out the multiple existing files in the Project database . |
void |
createFile(java.lang.String connectionID,
java.lang.String directoryID,
java.lang.String fileName,
boolean keepCheckedOut,
VersionData newVersionData,
java.lang.String dirMappedTo,
boolean unitOperation)
Creates the file in the Project database . |
void |
deleteFileVersion(java.lang.String connectionID,
java.lang.String fileID,
java.lang.String versionName,
boolean unitOperation)
Deletes the existing version of a file in the Project database . |
VersionData |
getFileVersion(java.lang.String connectionID,
java.lang.String fileID,
java.lang.String versionName)
Gets the contents of a particular version of a file |
HistoryElement[] |
getLabelsForFiles(java.lang.String connectionID,
java.lang.String[] fileIDs,
java.lang.String user,
java.lang.String startTime,
java.lang.String endTime,
boolean getLabels,
boolean getVersions)
This methos is to query and get all the labels and versions on the files that meet the criteria specified by the parameters. |
HistoryElement[] |
getLabelsOfDirectories(java.lang.String connectionID,
java.lang.String[] directoryIDs,
java.lang.String user,
java.lang.String startTime,
java.lang.String endTime,
boolean getLabels,
boolean getVersions,
boolean recursive,
boolean getFiles,
boolean getSubDirectories)
This methos is to query and get all the labels and versions on the directories and files that meet the criteria specified by the parameters. |
VersionData[] |
getMultipleFileVersions(java.lang.String connectionID,
java.lang.String fileID,
java.lang.String[] versionNames)
Gets the contents of the particular versions of a file |
void |
removeLabelOfDirectories(java.lang.String connectionID,
java.lang.String labelName,
boolean recursive,
boolean removeLatest,
java.lang.String[] directoryIDs,
boolean unitOperation)
Removes an existing label of the directories(and inturn files) . |
void |
removeLabelOfFiles(java.lang.String connectionID,
java.lang.String labelName,
java.lang.String versionName,
boolean removeLatest,
java.lang.String[] fileIDs,
boolean unitOperation)
Removes an existing label of the files . |
void |
revertToLabelOfDirectories(java.lang.String connectionID,
java.lang.String labelName,
boolean recursive,
boolean removeLatest,
java.lang.String[] directoryIDs,
boolean unitOperation)
Makes an existing label of the directories(and inturn files) as the latest version. |
void |
revertToLabelOfFiles(java.lang.String connectionID,
java.lang.String labelName,
java.lang.String versionName,
boolean removeLatest,
java.lang.String[] fileIDs,
boolean unitOperation)
Makes an existing label of the files as the latest version. |
void |
run()
A method for futuristic usage to trigger a task in a different thread |
void |
saveChanges()
Saves the changes mede to the project database |
void |
undoCheckOutFile(java.lang.String connectionID,
java.lang.String fileID,
boolean unitOperation)
Undoes Check out of the existing file in the Project database . |
void |
undoCheckOutMultipleFiles(java.lang.String connectionID,
java.lang.String[] fileIDs,
boolean unitOperation)
Undoes Check out of the multiple existing file in the Project database . |
Methods inherited from class vc.corba.common.intf._FileVersionManagerImplBase |
_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 |
Constructor Detail |
public FileVersionManagerImpl(ProjectDB projectDB, ProjectDBManagerImpl projectDBManager) throws java.lang.Throwable
projectDB
- to initialize the field projectDBprojectDBManager
- to initialize the field projectDBManagerMethod Detail |
public void saveChanges()
public VersionData getFileVersion(java.lang.String connectionID, java.lang.String fileID, java.lang.String versionName) throws VCException
connectionID
- to identify the client who made this requestfileID
- ID of the file whose content is requestedversionName
- Name of the version whose content 9s requestedThrows
- VCException which is a CORBA enabled exceptionpublic VersionData[] getMultipleFileVersions(java.lang.String connectionID, java.lang.String fileID, java.lang.String[] versionNames) throws VCException
connectionID
- to identify the client who made this requestfileID
- ID of the file whose content is requestedversionNames
- Names of the versions whose content is requestedThrows
- VCException which is a CORBA enabled exceptionpublic void createFile(java.lang.String connectionID, java.lang.String directoryID, java.lang.String fileName, boolean keepCheckedOut, VersionData newVersionData, java.lang.String dirMappedTo, boolean unitOperation) throws VCException
connectionID
- to identify the client who made this requestdirectoryID
- ID of the directory in which the file is createdfileName
- Name of the file being createdkeepCheckedOut
- if true then the file will be in checked out state
after it is creatednewVersionData
- contents of the file in its initial versiondirMappedTo
- Filesystem directory to which this file is mapped tounitOperation
- if this is true then the changes to PorjectDB will
be saved immediatly. Helpfull for reducing the number of times
PoojectDB is saved. If this is false client will make an
explicit request to sace ProjectDBThrows
- VCException which is a CORBA enabled exceptionpublic void addFileVersion(java.lang.String connectionID, boolean keepCheckedOut, VersionData newVersionData, java.lang.String dirMappedTo, boolean unitOperation) throws VCException
connectionID
- to identify the client who made this requestkeepCheckedOut
- if true then the file will be in checked out state
after it is creatednewVersionData
- contents of the file in its initial versiondirMappedTo
- Filesystem directory to which this file is mapped tounitOperation
- if this is true then the changes to PorjectDB will
be saved immediatly. Helpfull for reducing the number of times
PoojectDB is saved. If this is false client will make an
explicit request to sace ProjectDBThrows
- VCException which is a CORBA enabled exceptionpublic void deleteFileVersion(java.lang.String connectionID, java.lang.String fileID, java.lang.String versionName, boolean unitOperation) throws VCException
connectionID
- to identify the client who made this requestfileID
- ID of the file whose version is being deletedversionName
- Name of the file version that is being deletedunitOperation
- if this is true then the changes to PorjectDB will
be saved immediatly. Helpfull for reducing the number of times
PoojectDB is saved. If this is false client will make an
explicit request to sace ProjectDBThrows
- VCException which is a CORBA enabled exceptionpublic void checkInFile(java.lang.String connectionID, java.lang.String fileID, boolean unitOperation) throws VCException
connectionID
- to identify the client who made this requestfileID
- ID of the file which is being checked inunitOperation
- if this is true then the changes to PorjectDB will
be saved immediatly. Helpfull for reducing the number of times
PoojectDB is saved. If this is false client will make an
explicit request to sace ProjectDBThrows
- VCException which is a CORBA enabled exceptionpublic void checkOutFile(java.lang.String connectionID, java.lang.String fileID, java.lang.String checkOutDir, boolean unitOperation) throws VCException
connectionID
- to identify the client who made this requestfileID
- ID of the file which is being checked outcheckOutDir
- Directory to where the file is checked outunitOperation
- if this is true then the changes to PorjectDB will
be saved immediatly. Helpfull for reducing the number of times
PoojectDB is saved. If this is false client will make an
explicit request to sace ProjectDBThrows
- VCException which is a CORBA enabled exceptionpublic void undoCheckOutFile(java.lang.String connectionID, java.lang.String fileID, boolean unitOperation) throws VCException
connectionID
- to identify the client who made this requestfileID
- ID of the file which is being cancelled from check outunitOperation
- if this is true then the changes to PorjectDB will
be saved immediatly. Helpfull for reducing the number of times
PoojectDB is saved. If this is false client will make an
explicit request to sace ProjectDBThrows
- VCException which is a CORBA enabled exceptionpublic void checkInMultipleFiles(java.lang.String connectionID, java.lang.String[] fileIDs, boolean unitOperation) throws VCException
connectionID
- to identify the client who made this requestfileIDs
- IDs of the files which are being checked inunitOperation
- if this is true then the changes to PorjectDB will
be saved immediatly. Helpfull for reducing the number of times
PoojectDB is saved. If this is false client will make an
explicit request to sace ProjectDBThrows
- VCException which is a CORBA enabled exceptionpublic void checkOutMultipleFiles(java.lang.String connectionID, java.lang.String[] fileIDs, java.lang.String checkOutDir, boolean unitOperation) throws VCException
connectionID
- to identify the client who made this requestfileIDs
- IDs of the files which are being checked outcheckOutDir
- Directory to where the file is checked outunitOperation
- if this is true then the changes to PorjectDB will
be saved immediatly. Helpfull for reducing the number of times
PoojectDB is saved. If this is false client will make an
explicit request to sace ProjectDBThrows
- VCException which is a CORBA enabled exceptionpublic void undoCheckOutMultipleFiles(java.lang.String connectionID, java.lang.String[] fileIDs, boolean unitOperation) throws VCException
connectionID
- to identify the client who made this requestfileIDs
- IDs of the files which are being cancelled from check outunitOperation
- if this is true then the changes to PorjectDB will
be saved immediatly. Helpfull for reducing the number of times
PoojectDB is saved. If this is false client will make an
explicit request to sace ProjectDBThrows
- VCException which is a CORBA enabled exceptionpublic HistoryElement[] getLabelsOfDirectories(java.lang.String connectionID, java.lang.String[] directoryIDs, java.lang.String user, java.lang.String startTime, java.lang.String endTime, boolean getLabels, boolean getVersions, boolean recursive, boolean getFiles, boolean getSubDirectories) throws VCException
connectionID
- to identify the client who made this requestdirectoryIDs
- IDs of the directories whose labels are to be extracteduser
- Is to select the labels created by user same as this parameterstartTime
- if this is a non empty string then the labels created
on or after this will be selectedendTime
- if this is a non empty string then the labels created
on or before this will be selectedgetLabels
- if this is true then the labels meeting the criteria will be selectedgetVersions
- if this is true then the versions meeting the criteria will be selectedrecursive
- if this is true then labels and versions will be selected
recursively from sub directories alsogetFiles
- if this is true then labels and versions will be selected for files alsogetSubDirectories
- if this is true then labels and versions will be selected for getSubDirectories alsoThrows
- VCException which is a CORBA enabled exceptionpublic HistoryElement[] getLabelsForFiles(java.lang.String connectionID, java.lang.String[] fileIDs, java.lang.String user, java.lang.String startTime, java.lang.String endTime, boolean getLabels, boolean getVersions) throws VCException
connectionID
- to identify the client who made this requestfileIDs
- IDs of the files whose labels/versions are to be extracteduser
- Is to select the labels created by user same as this parameterstartTime
- if this is a non empty string then the labels created
on or after this will be selectedendTime
- if this is a non empty string then the labels created
on or before this will be selectedgetLabels
- if this is true then the labels meeting the criteria will be selectedgetVersions
- if this is true then the versions meeting the criteria will be selectedThrows
- VCException which is a CORBA enabled exceptionpublic void addLabelForDirectories(java.lang.String connectionID, java.lang.String labelName, boolean recursive, java.lang.String[] directoryIDs, boolean unitOperation) throws VCException
connectionID
- to identify the client who made this requestlabelName
- Name of the label being created for the directoriesrecursive
- if this is true then the label is added recursively to the
subdirectories and files of each directorydirectoryIDs
- IDs of the directories to whom the label is being addedunitOperation
- if this is true then the changes to PorjectDB will
be saved immediatly. Helpfull for reducing the number of times
PoojectDB is saved. If this is false client will make an
explicit request to sace ProjectDBThrows
- VCException which is a CORBA enabled exceptionpublic void addLabelForFiles(java.lang.String connectionID, java.lang.String labelName, java.lang.String[] fileIDs, boolean unitOperation) throws VCException
connectionID
- to identify the client who made this requestlabelName
- Name of the label being created for the filesfileIDs
- IDs of the files to whom the label is being addedunitOperation
- if this is true then the changes to PorjectDB will
be saved immediatly. Helpfull for reducing the number of times
PoojectDB is saved. If this is false client will make an
explicit request to sace ProjectDBThrows
- VCException which is a CORBA enabled exceptionpublic void revertToLabelOfDirectories(java.lang.String connectionID, java.lang.String labelName, boolean recursive, boolean removeLatest, java.lang.String[] directoryIDs, boolean unitOperation) throws VCException
connectionID
- to identify the client who made this requestlabelName
- Name of the label being reverted to for the directoriesrecursive
- if this is true then the label is reverted recursively to the
subdirectories and files of each directoryremoveLatest
- Remove the labels that are old labelsdirectoryIDs
- IDs of the directories whose old label is being made the latestunitOperation
- if this is true then the changes to PorjectDB will
be saved immediatly. Helpfull for reducing the number of times
PoojectDB is saved. If this is false client will make an
explicit request to sace ProjectDBThrows
- VCException which is a CORBA enabled exceptionpublic void revertToLabelOfFiles(java.lang.String connectionID, java.lang.String labelName, java.lang.String versionName, boolean removeLatest, java.lang.String[] fileIDs, boolean unitOperation) throws VCException
connectionID
- to identify the client who made this requestlabelName
- Name of the label being reverted to for the filesversionName
- Name of the version being reverted to for the filesremoveLatest
- Remove the labels that are old labelsfileIDs
- IDs of the files whose old label is being made the latestunitOperation
- if this is true then the changes to PorjectDB will
be saved immediatly. Helpfull for reducing the number of times
PoojectDB is saved. If this is false client will make an
explicit request to sace ProjectDBThrows
- VCException which is a CORBA enabled exceptionpublic void removeLabelOfDirectories(java.lang.String connectionID, java.lang.String labelName, boolean recursive, boolean removeLatest, java.lang.String[] directoryIDs, boolean unitOperation) throws VCException
connectionID
- to identify the client who made this requestlabelName
- Name of the label being deleted for the directoriesrecursive
- if this is true then the label is deleted recursively to the
subdirectories and files of each directoryremoveLatest
- Remove the labels that are old labelsdirectoryIDs
- IDs of the directories whose label is deletedunitOperation
- if this is true then the changes to PorjectDB will
be saved immediatly. Helpfull for reducing the number of times
PoojectDB is saved. If this is false client will make an
explicit request to sace ProjectDBThrows
- VCException which is a CORBA enabled exceptionpublic void removeLabelOfFiles(java.lang.String connectionID, java.lang.String labelName, java.lang.String versionName, boolean removeLatest, java.lang.String[] fileIDs, boolean unitOperation) throws VCException
connectionID
- to identify the client who made this requestlabelName
- Name of the label being removed for the filesversionName
- Name of the version being removed for the filesremoveLatest
- Remove the labels that are old labelsfileIDs
- IDs of the files whose old label is being made the latestunitOperation
- if this is true then the changes to PorjectDB will
be saved immediatly. Helpfull for reducing the number of times
PoojectDB is saved. If this is false client will make an
explicit request to sace ProjectDBThrows
- VCException which is a CORBA enabled exceptionpublic void run()
run
in interface java.lang.Runnable
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |