Class 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
  • Constructor Details

    • SharedFolderPatch

      public SharedFolderPatch()
  • Method Details

    • executeAsync

      public void executeAsync()
      Run the Shared Folder Patch asynchronously after bootstrap.
    • applyInternal

      protected String applyInternal() throws Exception
      Description copied from class: AbstractPatch
      This 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:
      applyInternal in class GenericBootstrapPatch
      Returns:
      Returns the report (only success messages).
      Throws:
      Exception - anything can be thrown. This must be used for all failures.
      See Also:
    • setRenamePath

      public void setRenamePath(String renamePath)
    • getRenamePath

      public String getRenamePath()
    • setJobLockService

      public void setJobLockService(JobLockService jobLockService)
    • getJobLockService

      public JobLockService getJobLockService()