org.alfresco.repo.version
Class VersionMigrator
java.lang.Object
org.alfresco.repo.version.VersionMigrator
- All Implemented Interfaces:
- org.springframework.context.ApplicationEventPublisherAware
public class VersionMigrator
- extends java.lang.Object
- implements org.springframework.context.ApplicationEventPublisherAware
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 org.alfresco.service.cmr.repository.StoreRef VERSION_STORE_REF_OLD
VERSION_STORE_REF_NEW
public static final org.alfresco.service.cmr.repository.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(org.alfresco.service.cmr.repository.NodeService nodeService)
setPolicyBehaviourFilter
public void setPolicyBehaviourFilter(BehaviourFilter policyBehaviourFilter)
setDictionaryService
public void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
setTransactionService
public void setTransactionService(TransactionService transactionService)
setVersionNodeService
public void setVersionNodeService(org.alfresco.service.cmr.repository.NodeService versionNodeService)
setRuleService
public void setRuleService(RuleService ruleService)
setJobLockService
public void setJobLockService(JobLockService jobLockService)
setLoggingInterval
public void setLoggingInterval(int loggingInterval)
setApplicationEventPublisher
public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
- Specified by:
setApplicationEventPublisher
in interface org.springframework.context.ApplicationEventPublisherAware
init
public void init()
migrateVersionHistory
public org.alfresco.service.cmr.repository.NodeRef migrateVersionHistory(org.alfresco.service.cmr.repository.NodeRef oldVHNodeRef,
org.alfresco.service.cmr.repository.NodeRef versionedNodeRef)
v1CheckForVersionedWorkingCopy
protected boolean v1CheckForVersionedWorkingCopy(org.alfresco.service.cmr.repository.NodeRef oldVersionHistoryRef)
- Check whether the V1 history represented by oldVersionHistoryRef represents
a versioned working copy node (Alfresco V2.1.7 can create these)
- Parameters:
oldVersionHistoryRef
-
- Returns:
v1GetVersionedNodeRef
protected org.alfresco.service.cmr.repository.NodeRef v1GetVersionedNodeRef(org.alfresco.service.cmr.repository.NodeRef oldVersionHistoryRef)
v1DeleteVersionHistory
protected void v1DeleteVersionHistory(org.alfresco.service.cmr.repository.NodeRef oldVersionHistoryRef)
getVersionHistories
public java.util.List getVersionHistories(org.alfresco.service.cmr.repository.NodeRef rootNodeRef)
migrateVersion
protected void migrateVersion(org.alfresco.service.cmr.repository.NodeRef oldVHNodeRef,
boolean deleteImmediately)
throws java.lang.Throwable
- Throws:
java.lang.Throwable
isMigrationComplete
public boolean isMigrationComplete()
migrateVersions
public java.lang.Boolean migrateVersions(int batchSize,
int threadCount,
int limit,
boolean deleteImmediately,
java.lang.String lockToken,
boolean isRunningAsJob)
- Do the Version migration work
- Returns:
- Returns null if no work to do, true if the work is done, false is incomplete (or in progress)
executeCleanup
public void executeCleanup(int batchSize,
int threadCount)
isMigrated
protected boolean isMigrated(org.alfresco.service.cmr.repository.ChildAssociationRef vhChildAssocRef)
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.