/** * Resolve and transfer values from ScmArtifact to R4EFileVersion * * @param aTargetFileVer R4EFileVersion * @param aSourceFileVer R4EFileVersion */ public static void copyFileVersionData( R4EFileVersion aTargetFileVer, R4EFileVersion aSourceFileVer) { if ((null != aTargetFileVer) && (null != aSourceFileVer)) { aTargetFileVer.setName(aSourceFileVer.getName()); aTargetFileVer.setVersionID(aSourceFileVer.getVersionID()); aTargetFileVer.setRepositoryPath(aSourceFileVer.getRepositoryPath()); aTargetFileVer.setLocalVersionID(aSourceFileVer.getLocalVersionID()); aTargetFileVer.setPlatformURI(aSourceFileVer.getPlatformURI()); aTargetFileVer.setResource(aSourceFileVer.getResource()); } }
/** * Method isSameFileVersion. * * @param aFile1 R4EFileVersion * @param aFile2 R4EFileVersion * @return boolean */ public static boolean isSameFileVersion(R4EFileVersion aFile1, R4EFileVersion aFile2) { return (compareStrings(aFile1.getPlatformURI(), aFile2.getPlatformURI()) && compareStrings(aFile1.getRepositoryPath(), aFile2.getRepositoryPath()) && compareStrings(aFile1.getVersionID(), aFile2.getVersionID())); }