Package com.logicaldoc.webdavb
Class WebDAVController
- java.lang.Object
-
- com.logicaldoc.webdavb.WebDAVController
-
public class WebDAVController extends Object
-
-
Constructor Summary
Constructors Constructor Description WebDAVController()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
copyFile(DAVFile src, DAVFolder dest, String newName)
DAVFile
createFile(DAVFolder folder, String newName, byte[] data)
DAVFolder
createFolder(DAVFolder folder, String name)
void
deleteDocument(DAVFile document)
void
deleteFile(DAVFile file)
void
deleteFolder(DAVFolder folder)
DAVFile
findFile(DAVFolder root, String name)
DAVFolder
findFolder(DAVFolder root, String name)
byte[]
getFileContent(DAVFile file)
List<DAVFile>
getFiles(DAVFolder root)
List<DAVFolder>
getFolders(DAVFolder root)
List<DAVFolder>
getFolders(DAVRoot r)
DAVRoot
getRoot()
static com.logicaldoc.core.security.Session
getSession()
void
moveFile(DAVFile file, DAVFolder dest, String newName)
void
moveFolder(DAVFolder folder, DAVFolder dest, String newName)
-
-
-
Method Detail
-
getSession
public static com.logicaldoc.core.security.Session getSession() throws io.milton.http.exceptions.NotAuthorizedException
- Throws:
io.milton.http.exceptions.NotAuthorizedException
-
getRoot
public DAVRoot getRoot() throws io.milton.http.exceptions.NotAuthorizedException
- Throws:
io.milton.http.exceptions.NotAuthorizedException
-
getFolders
public List<DAVFolder> getFolders(DAVRoot r) throws io.milton.http.exceptions.NotAuthorizedException
- Throws:
io.milton.http.exceptions.NotAuthorizedException
-
getFolders
public List<DAVFolder> getFolders(DAVFolder root) throws io.milton.http.exceptions.NotAuthorizedException
- Throws:
io.milton.http.exceptions.NotAuthorizedException
-
getFiles
public List<DAVFile> getFiles(DAVFolder root) throws io.milton.http.exceptions.NotAuthorizedException
- Throws:
io.milton.http.exceptions.NotAuthorizedException
-
copyFile
public void copyFile(DAVFile src, DAVFolder dest, String newName) throws io.milton.http.exceptions.NotAuthorizedException
- Throws:
io.milton.http.exceptions.NotAuthorizedException
-
deleteDocument
public void deleteDocument(DAVFile document) throws io.milton.http.exceptions.NotAuthorizedException
- Throws:
io.milton.http.exceptions.NotAuthorizedException
-
findFile
public DAVFile findFile(DAVFolder root, String name) throws io.milton.http.exceptions.NotAuthorizedException
- Throws:
io.milton.http.exceptions.NotAuthorizedException
-
findFolder
public DAVFolder findFolder(DAVFolder root, String name) throws io.milton.http.exceptions.NotAuthorizedException
- Throws:
io.milton.http.exceptions.NotAuthorizedException
-
getFileContent
public byte[] getFileContent(DAVFile file) throws IOException, io.milton.http.exceptions.NotAuthorizedException
- Throws:
IOException
io.milton.http.exceptions.NotAuthorizedException
-
createFolder
public DAVFolder createFolder(DAVFolder folder, String name) throws io.milton.http.exceptions.NotAuthorizedException
- Throws:
io.milton.http.exceptions.NotAuthorizedException
-
deleteFolder
public void deleteFolder(DAVFolder folder) throws io.milton.http.exceptions.NotAuthorizedException
- Throws:
io.milton.http.exceptions.NotAuthorizedException
-
moveFolder
public void moveFolder(DAVFolder folder, DAVFolder dest, String newName) throws io.milton.http.exceptions.NotAuthorizedException
- Throws:
io.milton.http.exceptions.NotAuthorizedException
-
moveFile
public void moveFile(DAVFile file, DAVFolder dest, String newName) throws io.milton.http.exceptions.NotAuthorizedException
- Throws:
io.milton.http.exceptions.NotAuthorizedException
-
deleteFile
public void deleteFile(DAVFile file) throws io.milton.http.exceptions.NotAuthorizedException
- Throws:
io.milton.http.exceptions.NotAuthorizedException
-
-