Search in sources :

Example 1 with Pre2BranchDumpEntryJson

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);
}
Also used : Pre4BranchDumpEntryJson(com.enonic.xp.repo.impl.dump.upgrade.obsoletemodel.pre4.Pre4BranchDumpEntryJson) Pre2BranchDumpEntryJson(com.enonic.xp.repo.impl.dump.upgrade.obsoletemodel.pre2.Pre2BranchDumpEntryJson)

Aggregations

Pre2BranchDumpEntryJson (com.enonic.xp.repo.impl.dump.upgrade.obsoletemodel.pre2.Pre2BranchDumpEntryJson)1 Pre4BranchDumpEntryJson (com.enonic.xp.repo.impl.dump.upgrade.obsoletemodel.pre4.Pre4BranchDumpEntryJson)1