Interface RepositoryCopier


  • public interface RepositoryCopier
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Repository copy​(OrganizationalUnit targetOU, String newRepositoryName, org.uberfire.backend.vfs.Path originRoot)
      Notice that this does not clone the content from the origin, this doeas a copy that does not include the history or the old commits IDs.
      void copy​(org.uberfire.backend.vfs.Path originRoot, org.uberfire.backend.vfs.Path targetRoot)
      Like copy(Path, Path) but assumes current active space.
      void copy​(org.uberfire.spaces.Space space, org.uberfire.backend.vfs.Path originRoot, org.uberfire.backend.vfs.Path targetRoot)  
      String makeSafeRepositoryName​(String oldName)  
    • Method Detail

      • copy

        Repository copy​(OrganizationalUnit targetOU,
                        String newRepositoryName,
                        org.uberfire.backend.vfs.Path originRoot)
        Notice that this does not clone the content from the origin, this doeas a copy that does not include the history or the old commits IDs.
        Parameters:
        targetOU - The OU for the new Repository
        newRepositoryName - Name for the new Repository
        originRoot - Root where the Repository is cloned from
        Returns:
        The new Repository
      • copy

        void copy​(org.uberfire.backend.vfs.Path originRoot,
                  org.uberfire.backend.vfs.Path targetRoot)
        Like copy(Path, Path) but assumes current active space.
      • copy

        void copy​(org.uberfire.spaces.Space space,
                  org.uberfire.backend.vfs.Path originRoot,
                  org.uberfire.backend.vfs.Path targetRoot)
      • makeSafeRepositoryName

        String makeSafeRepositoryName​(String oldName)