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 Detail

      • SharedFolderPatch

        public SharedFolderPatch()
    • Method Detail

      • executeAsync

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

        protected java.lang.String applyInternal()
                                          throws java.lang.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:
        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)