org.alfresco.repo.version
Class VersionMigrator
java.lang.Object
org.alfresco.repo.version.VersionMigrator
public class VersionMigrator
- extends java.lang.Object
Version2 Migrator
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected static org.apache.commons.logging.Log logger
VERSION_STORE_REF_OLD
public static final StoreRef VERSION_STORE_REF_OLD
VERSION_STORE_REF_NEW
public static final StoreRef VERSION_STORE_REF_NEW
PREFIX_MIGRATED
public static final java.lang.String PREFIX_MIGRATED
- See Also:
- Constant Field Values
VersionMigrator
public VersionMigrator()
setVersion2ServiceImpl
public void setVersion2ServiceImpl(Version2ServiceImpl versionService)
setDbNodeService
public void setDbNodeService(NodeService nodeService)
setPolicyBehaviourFilter
public void setPolicyBehaviourFilter(BehaviourFilter policyBehaviourFilter)
setDictionaryService
public void setDictionaryService(DictionaryService dictionaryService)
setTransactionService
public void setTransactionService(TransactionService transactionService)
setVersionNodeService
public void setVersionNodeService(NodeService versionNodeService)
init
public void init()
migrateVersionHistory
public NodeRef migrateVersionHistory(NodeRef oldVHNodeRef,
NodeRef versionedNodeRef)
v1GetVersionedNodeRef
protected NodeRef v1GetVersionedNodeRef(NodeRef oldVersionHistoryRef)
v1DeleteVersionHistory
protected void v1DeleteVersionHistory(NodeRef oldVersionHistoryRef)
getVersionHistories
public java.util.List getVersionHistories(NodeRef rootNodeRef)
migrateVersions
public int migrateVersions(int batchSize,
boolean deleteImmediately)
executeCleanup
public void executeCleanup(int batchSize)
isMigrated
protected boolean isMigrated(ChildAssociationRef vhChildAssocRef)
reportProgress
protected void reportProgress(java.lang.String msgKey,
long estimatedTotal,
long currentInteration)
- Support to report % completion and estimated completion time.
- Parameters:
estimatedTotal
- currentInteration
-
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.