org.alfresco.repo.version
Class VersionMigrator

java.lang.Object
  extended by org.alfresco.repo.version.VersionMigrator

public class VersionMigrator
extends java.lang.Object

Version2 Migrator


Field Summary
protected static org.apache.commons.logging.Log logger
           
static java.lang.String PREFIX_MIGRATED
           
static StoreRef VERSION_STORE_REF_NEW
           
static StoreRef VERSION_STORE_REF_OLD
           
 
Constructor Summary
VersionMigrator()
           
 
Method Summary
 void executeCleanup(int batchSize)
           
 java.util.List getVersionHistories(NodeRef rootNodeRef)
           
 void init()
           
protected  boolean isMigrated(ChildAssociationRef vhChildAssocRef)
           
 NodeRef migrateVersionHistory(NodeRef oldVHNodeRef, NodeRef versionedNodeRef)
           
 int migrateVersions(int batchSize, boolean deleteImmediately)
           
protected  void reportProgress(java.lang.String msgKey, long estimatedTotal, long currentInteration)
          Support to report % completion and estimated completion time.
 void setDbNodeService(NodeService nodeService)
           
 void setDictionaryService(DictionaryService dictionaryService)
           
 void setPolicyBehaviourFilter(BehaviourFilter policyBehaviourFilter)
           
 void setTransactionService(TransactionService transactionService)
           
 void setVersion2ServiceImpl(Version2ServiceImpl versionService)
           
 void setVersionNodeService(NodeService versionNodeService)
           
protected  void v1DeleteVersionHistory(NodeRef oldVersionHistoryRef)
           
protected  NodeRef v1GetVersionedNodeRef(NodeRef oldVersionHistoryRef)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

VersionMigrator

public VersionMigrator()
Method Detail

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.