I want to fetch history of file elements like pdf files, doc files, etc. which are under clearcase control using Rational CM API which are provided by clearcase. I have written following code to fetch the history but it is incomplete so please help me out here.
public void fetchFileElementHistory()
{
try
{
CcFile fetchElement = provider.ccFile(provider.filePathLocation(testFile)); // file under Clearcase control
PropertyRequest wantedProps = new PropertyRequest(CcFile.DISPLAY_NAME, CcFile.CREATION_DATE,CcFile.VIEW_RELATIVE_PATH,CcFile.CLIENT_PATH,CcFile.VERSION_HISTORY,CcFile.PREDECESSOR_LIST,CcFile.ELEMENT);
fetchElement = (CcFile) fetchElement.doReadProperties(wantedProps);
VersionHistory versionHistory = fetchElement.getVersionHistory();
versionHistory = (VersionHistory) versionHistory.doReadProperties(new PropertyRequest(VersionHistory.CHILD_LIST,VersionHistory.ROOT_VERSION,
VersionHistory.CHILD_MAP,VersionHistory.PARENT_LIST,VersionHistory.PROVIDER_LIST,VersionHistory.WORKSPACE_FOLDER_LIST));
/*
* what to do here ?
*/
}
catch(Exception e){
e.printStackTrace();
}
}
Thanks in advance