|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectccc.cli.fileupload.DryRunServer
public class DryRunServer
A dummy server to allow dry runs of file uploads.
Constructor Summary | |
---|---|
DryRunServer(ResourcePath rootPath)
Constructor. |
Method Summary | |
---|---|
void |
createFile(java.util.UUID parentFolder,
java.io.File f,
boolean publish)
Create a file in the new system. |
java.util.UUID |
createFolder(java.util.UUID parentFolder,
java.lang.String name,
boolean publish)
Create a folder in the new system. |
java.util.UUID |
getRoot()
Get the id of the root folder in the new system. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DryRunServer(ResourcePath rootPath)
rootPath
- The path to the root folder.Method Detail |
---|
public java.util.UUID createFolder(java.util.UUID parentFolder, java.lang.String name, boolean publish)
createFolder
in interface Server
parentFolder
- The parent folder where the new folder will be
created.name
- The name of the folder.publish
- Should the folder be published.
public void createFile(java.util.UUID parentFolder, java.io.File f, boolean publish)
createFile
in interface Server
parentFolder
- The folder where the file will be created.f
- The file to create.publish
- Should the file be published.public java.util.UUID getRoot()
getRoot
in interface Server
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |