Class SharedFolderPatch
- java.lang.Object
-
- org.alfresco.repo.admin.patch.AbstractPatch
-
- org.alfresco.repo.admin.patch.impl.GenericBootstrapPatch
-
- org.alfresco.repo.admin.patch.impl.SharedFolderPatch
-
- All Implemented Interfaces:
Patch,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationEventPublisherAware
public class SharedFolderPatch extends GenericBootstrapPatch
The SharedFolderPatch is a Generic Bootstrap Patch with the extra ability to rename an existing folder that is in the way (in a different namespace).The first use-case is when there is a child called cm:shared and we want to patch a folder with app:shared
- Author:
- mrogers
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSharedFolderPatch.SharedFolderPatchJobJob to initiate theSharedFolderPatchif it has been deferred
-
Field Summary
-
Fields inherited from class org.alfresco.repo.admin.patch.impl.GenericBootstrapPatch
bootstrapView, checkPath, ERR_MULTIPLE_FOUND, importerBootstrap, MSG_CREATED, MSG_DEFERRED, MSG_EXISTS
-
Fields inherited from class org.alfresco.repo.admin.patch.AbstractPatch
applicationEventPublisher, authenticationContext, ERR_PROPERTY_NOT_SET, namespaceService, nodeService, patchService, searchService, tenantAdminService, transactionHelper, transactionService
-
-
Constructor Summary
Constructors Constructor Description SharedFolderPatch()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringapplyInternal()This method does the work.voidexecuteAsync()Run the Shared Folder Patch asynchronously after bootstrap.JobLockServicegetJobLockService()java.lang.StringgetRenamePath()voidsetJobLockService(JobLockService jobLockService)voidsetRenamePath(java.lang.String renamePath)-
Methods inherited from class org.alfresco.repo.admin.patch.impl.GenericBootstrapPatch
checkProperties, setBootstrapView, setCheckPath, setImporterBootstrap
-
Methods inherited from class org.alfresco.repo.admin.patch.AbstractPatch
applies, apply, applyAsync, checkPropertyNotNull, getAlternatives, getDependsOn, getDescription, getFixesFromSchema, getFixesToSchema, getId, getTargetSchema, init, isDeferred, isForce, isIgnored, reportProgress, requiresTransaction, setAlternatives, setApplicationEventPublisher, setApplyToTenants, setAuthenticationContext, setDeferred, setDependsOn, setDescription, setFixesFromSchema, setFixesToSchema, setForce, setId, setIgnored, setNamespaceService, setNodeService, setPatchService, setRequiresTransaction, setSearchService, setTargetSchema, setTenantAdminService, setTransactionService, toString
-
-
-
-
Method Detail
-
executeAsync
public void executeAsync()
Run the Shared Folder Patch asynchronously after bootstrap.
-
applyInternal
protected java.lang.String applyInternal() throws java.lang.ExceptionDescription copied from class:AbstractPatchThis method does the work. All transactions and thread-safety will be taken care of by this class. Any exception will result in the transaction being rolled back. Integrity checks are downgraded for the duration of the transaction.- Overrides:
applyInternalin classGenericBootstrapPatch- Returns:
- Returns the report (only success messages).
- Throws:
java.lang.Exception- anything can be thrown. This must be used for all failures.- See Also:
AbstractPatch.apply()
-
setRenamePath
public void setRenamePath(java.lang.String renamePath)
-
getRenamePath
public java.lang.String getRenamePath()
-
setJobLockService
public void setJobLockService(JobLockService jobLockService)
-
getJobLockService
public JobLockService getJobLockService()
-
-