|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectccc.cli.fileupload.CccServer
public class CccServer
Implementation of the Server
interface - calls the CCC server.
Constructor Summary | |
---|---|
CccServer(ResourcePath rootPath,
Files files,
Folders folders,
Resources resources)
Constructor. |
Method Summary | |
---|---|
void |
createFile(java.util.UUID parentFolder,
java.io.File localFile,
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 CccServer(ResourcePath rootPath, Files files, Folders folders, Resources resources)
rootPath
- The absolute path to the folder where files will be
uploaded.files
- The files API.folders
- The folders API.resources
- The resources API.Method Detail |
---|
public void createFile(java.util.UUID parentFolder, java.io.File localFile, boolean publish)
createFile
in interface Server
parentFolder
- The folder where the file will be created.localFile
- The file to create.publish
- Should the file be published.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 java.util.UUID getRoot()
getRoot
in interface Server
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |