Class CopyFileCenter

java.lang.Object
com.vdoc.sdk.commons.io.filecenter.CopyFileCenter

public class CopyFileCenter extends Object
Copy FileCenter Created by wtoscer on 12/02/2015.
  • Field Details

  • Constructor Details

    • CopyFileCenter

      public CopyFileCenter(ILibraryModule libraryModule, ILibrary sourceLibrary, IContext readContext, IContext writeContext)
      Constructor
      Parameters:
      libraryModule - the library module
      sourceLibrary - the source library
      readContext - the read context
      writeContext - the write context
    • CopyFileCenter

      public CopyFileCenter(ILibraryModule libraryModule, ILibrary sourceLibrary, IContext readContext, IContext writeContext, CreateFileListener createFileListener)
      Constructor
      Parameters:
      libraryModule - the library module
      sourceLibrary - the source library
      readContext - the read context
      writeContext - the write context
      createFileListener - the "create file" listener
  • Method Details

    • toOrganization

      public ILibrary toOrganization(IOrganization organization) throws LibraryModuleException
      To organization Create a library from the given organization and copy all files and folder from the source library to the new library
      Parameters:
      organization - the given organization
      Returns:
      the library
      Throws:
      LibraryModuleException - on error
    • toLibrary

      public void toLibrary(ILibrary library) throws LibraryModuleException
      To library Copy all files and folder from the source library to the given library
      Parameters:
      library - the given library
      Throws:
      LibraryModuleException - on error