public class MigrateVersionWorkspacesToNewStructureTask extends AbstractRepositoryTask
New structure is generated from node's uuid, level 1 node - first two letters from the first part, level 2 node - two letters from the second part and level 3 node - two letters from third part.
It might happen that versions are corrupted (when multiple nodes have same uuid across different workspaces), in that case we resolve new structure from the node where primary node type matches the versioned node node type, we also log warning so users can fix the problem.
Modifier and Type | Field and Description |
---|---|
static String |
INCONSISTENT_VERSIONS |
DO_NOTHING
Constructor and Description |
---|
MigrateVersionWorkspacesToNewStructureTask(RepositoryManager repositoryManager) |
Modifier and Type | Method and Description |
---|---|
protected void |
doExecute(InstallContext installContext) |
execute
getDescription, getName, toString
public static final String INCONSISTENT_VERSIONS
public MigrateVersionWorkspacesToNewStructureTask(RepositoryManager repositoryManager)
protected void doExecute(InstallContext installContext) throws javax.jcr.RepositoryException, TaskExecutionException
doExecute
in class AbstractRepositoryTask
javax.jcr.RepositoryException
TaskExecutionException
Copyright © 2003–2018 Magnolia International Ltd.. All rights reserved.