Class SyncHandler

java.lang.Object
org.apache.jackrabbit.vault.sync.impl.SyncHandler
All Implemented Interfaces:
org.apache.commons.jci.monitor.FilesystemAlterationListener

public class SyncHandler extends Object implements org.apache.commons.jci.monitor.FilesystemAlterationListener
SyncHandler...
  • Constructor Details

    • SyncHandler

      public SyncHandler(File fileRoot)
  • Method Details

    • covers

      public boolean covers(String path)
    • contains

      public boolean contains(String path)
    • prepareForSync

      public void prepareForSync()
    • sync

      public void sync(Session session) throws RepositoryException, IOException
      Throws:
      RepositoryException
      IOException
    • getFileForJcrPath

      public File getFileForJcrPath(String path)
    • getJcrPathForFile

      public String getJcrPathForFile(File file)
    • onFileCreate

      public void onFileCreate(File file)
      Specified by:
      onFileCreate in interface org.apache.commons.jci.monitor.FilesystemAlterationListener
    • onFileChange

      public void onFileChange(File file)
      Specified by:
      onFileChange in interface org.apache.commons.jci.monitor.FilesystemAlterationListener
    • onFileDelete

      public void onFileDelete(File file)
      Specified by:
      onFileDelete in interface org.apache.commons.jci.monitor.FilesystemAlterationListener
    • onDirectoryCreate

      public void onDirectoryCreate(File file)
      Specified by:
      onDirectoryCreate in interface org.apache.commons.jci.monitor.FilesystemAlterationListener
    • onDirectoryDelete

      public void onDirectoryDelete(File file)
      Specified by:
      onDirectoryDelete in interface org.apache.commons.jci.monitor.FilesystemAlterationListener
    • onStart

      public void onStart(org.apache.commons.jci.monitor.FilesystemAlterationObserver filesystemAlterationObserver)
      Specified by:
      onStart in interface org.apache.commons.jci.monitor.FilesystemAlterationListener
    • onStop

      public void onStop(org.apache.commons.jci.monitor.FilesystemAlterationObserver filesystemAlterationObserver)
      Specified by:
      onStop in interface org.apache.commons.jci.monitor.FilesystemAlterationListener
    • onDirectoryChange

      public void onDirectoryChange(File file)
      Specified by:
      onDirectoryChange in interface org.apache.commons.jci.monitor.FilesystemAlterationListener
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • registerPendingJcrChange

      public void registerPendingJcrChange(String path)