use of com.enonic.xp.repo.impl.dump.upgrade.obsoletemodel.pre2.Pre2BranchDumpEntryJson in project xp by enonic.
the class VersionIdDumpUpgrader method upgradeBranchEntry.
@Override
protected byte[] upgradeBranchEntry(final RepositoryId repositoryId, final String entryContent) {
final Pre2BranchDumpEntryJson sourceEntry = deserializeValue(entryContent, Pre2BranchDumpEntryJson.class);
final Pre4BranchDumpEntryJson upgradedEntry = Pre4BranchDumpEntryJson.create().nodeId(sourceEntry.getNodeId()).meta(upgradeVersion(sourceEntry.getMeta())).binaries(sourceEntry.getBinaries()).build();
return serialize(upgradedEntry);
}
Aggregations