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
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 ClassesModifier and TypeClassDescriptionstatic classJob 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_EXISTSFields 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 -
Method Summary
Modifier and TypeMethodDescriptionprotected StringThis method does the work.voidRun the Shared Folder Patch asynchronously after bootstrap.voidsetJobLockService(JobLockService jobLockService) voidsetRenamePath(String renamePath) Methods inherited from class org.alfresco.repo.admin.patch.impl.GenericBootstrapPatch
checkProperties, setBootstrapView, setCheckPath, setImporterBootstrapMethods 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
-
Constructor Details
-
SharedFolderPatch
public SharedFolderPatch()
-
-
Method Details
-
executeAsync
public void executeAsync()Run the Shared Folder Patch asynchronously after bootstrap. -
applyInternal
Description 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:
Exception- anything can be thrown. This must be used for all failures.- See Also:
-
setRenamePath
-
getRenamePath
-
setJobLockService
-
getJobLockService
-