Class CopyFileCenter
java.lang.Object
com.vdoc.sdk.commons.io.filecenter.CopyFileCenter
Copy FileCenter
Created by wtoscer on 12/02/2015.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CreateFileListenerprotected ILibraryModuleprotected IContextprotected ILibraryprotected IContext -
Constructor Summary
ConstructorsConstructorDescriptionCopyFileCenter(ILibraryModule libraryModule, ILibrary sourceLibrary, IContext readContext, IContext writeContext) ConstructorCopyFileCenter(ILibraryModule libraryModule, ILibrary sourceLibrary, IContext readContext, IContext writeContext, CreateFileListener createFileListener) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidTo library Copy all files and folder from the source library to the given librarytoOrganization(IOrganization organization) To organization Create a library from the given organization and copy all files and folder from the source library to the new library
-
Field Details
-
libraryModule
-
createFileListener
-
sourceLibrary
-
readContext
-
writeContext
-
-
Constructor Details
-
CopyFileCenter
public CopyFileCenter(ILibraryModule libraryModule, ILibrary sourceLibrary, IContext readContext, IContext writeContext) Constructor- Parameters:
libraryModule- the library modulesourceLibrary- the source libraryreadContext- the read contextwriteContext- the write context
-
CopyFileCenter
public CopyFileCenter(ILibraryModule libraryModule, ILibrary sourceLibrary, IContext readContext, IContext writeContext, CreateFileListener createFileListener) Constructor- Parameters:
libraryModule- the library modulesourceLibrary- the source libraryreadContext- the read contextwriteContext- the write contextcreateFileListener- the "create file" listener
-
-
Method Details
-
toOrganization
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
To library Copy all files and folder from the source library to the given library- Parameters:
library- the given library- Throws:
LibraryModuleException- on error
-