public class MigrateVersionStorePatch extends AbstractPatch
| Modifier and Type | Class and Description |
|---|---|
static class |
MigrateVersionStorePatch.MigrateVersionStoreJob
Job to initiate the
MigrateVersionStorePatch |
| Modifier and Type | Field and Description |
|---|---|
static org.alfresco.service.namespace.QName |
LOCK |
static long |
LOCK_TTL |
applicationEventPublisher, authenticationContext, ERR_PROPERTY_NOT_SET, namespaceService, nodeService, searchService, tenantAdminService, transactionHelper, transactionService| Constructor and Description |
|---|
MigrateVersionStorePatch()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
applyInternal()
Gets a set of work to do and executes it within this transaction.
|
void |
init()
This ensures that this bean gets registered with the appropriate
service. |
void |
setBatchSize(int batchSize) |
void |
setDeleteImmediately(boolean deleteImmediately) |
void |
setImporterBootstrap(ImporterBootstrap version2ImporterBootstrap) |
void |
setJobLockService(JobLockService jobLockService) |
void |
setLimitPerJobCycle(int limitPerJobCycle) |
void |
setOnlyUseDeprecatedV1(boolean useDeprecatedV1) |
void |
setRunAsScheduledJob(boolean runAsScheduledJob)
Set whether the patch execution should just bypass any actual work i.e.
|
void |
setTenantService(org.alfresco.repo.tenant.TenantService tenantService) |
void |
setThreadCount(int threadCount) |
void |
setVersionMigrator(VersionMigrator versionMigrator) |
applies, apply, checkProperties, checkPropertyNotNull, getAlternatives, getDependsOn, getDescription, getFixesFromSchema, getFixesToSchema, getId, getTargetSchema, isForce, reportProgress, requiresTransaction, setAlternatives, setApplicationEventPublisher, setApplyToTenants, setAuthenticationContext, setDependsOn, setDescription, setFixesFromSchema, setFixesToSchema, setForce, setId, setNamespaceService, setNodeService, setPatchService, setRequiresTransaction, setSearchService, setTargetSchema, setTenantAdminService, setTransactionService, toStringpublic static final org.alfresco.service.namespace.QName LOCK
public static final long LOCK_TTL
public void setVersionMigrator(VersionMigrator versionMigrator)
public void setTenantService(org.alfresco.repo.tenant.TenantService tenantService)
public void setImporterBootstrap(ImporterBootstrap version2ImporterBootstrap)
public void setJobLockService(JobLockService jobLockService)
public void setBatchSize(int batchSize)
public void setThreadCount(int threadCount)
public void setLimitPerJobCycle(int limitPerJobCycle)
public void setDeleteImmediately(boolean deleteImmediately)
public void setRunAsScheduledJob(boolean runAsScheduledJob)
runAsScheduledJob - true to leave all work up to the scheduled jobpublic void setOnlyUseDeprecatedV1(boolean useDeprecatedV1)
public void init()
AbstractPatchservice.init in class AbstractPatchprotected java.lang.String applyInternal()
throws java.lang.Exception
applyInternal in class AbstractPatchjava.lang.Exception - anything can be thrown. This must be used for all failures.AbstractPatch.apply()Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.