Exemple #1
0
  private Map<Long, Long> convertArtifactAndConflicts(ExchangeDataProcessor processor)
      throws OseeCoreException {
    V0_9_2ArtifactVersionHandler handler = new V0_9_2ArtifactVersionHandler();
    processor.parse("osee.artifact.version.data.xml", handler);
    Map<Long, Long> artifactGammaToNetGammaId = handler.getArtifactGammaToNetGammaId();
    Map<Integer, Long> artIdToNetGammaId = handler.getArtIdToNetGammaId();

    processor.transform(
        ExportItem.OSEE_ARTIFACT_DATA, new V0_9_2ArtifactDataTransformer(artIdToNetGammaId));
    processor.transform(
        ExportItem.OSEE_CONFLICT_DATA, new V0_9_2ConflictTransformer(artifactGammaToNetGammaId));

    return artifactGammaToNetGammaId;
  }
Exemple #2
0
 private List<Long> convertBranchTable(ExchangeDataProcessor processor) throws OseeCoreException {
   Map<Long, Integer> branchToBaseTx = new HashMap<>(10000);
   processor.parse(ExportItem.OSEE_TX_DETAILS_DATA, new V0_9_2TxDetailsHandler(branchToBaseTx));
   processor.transform(ExportItem.OSEE_BRANCH_DATA, new V0_9_2BranchTransformer(branchToBaseTx));
   return new ArrayList<Long>(branchToBaseTx.keySet());
 }