Package com.logicaldoc.webdavb
Class WebDAVController
java.lang.Object
com.logicaldoc.webdavb.WebDAVController
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createFile
(DAVFolder folder, String newName, byte[] data) createFolder
(DAVFolder folder, String name) void
deleteDocument
(DAVFile document) void
deleteFile
(DAVFile file) void
deleteFolder
(DAVFolder folder) findFolder
(DAVFolder root, String name) byte[]
getFileContent
(DAVFile file) getFolders
(DAVFolder root) getRoot()
static com.logicaldoc.core.security.Session
void
void
moveFolder
(DAVFolder folder, DAVFolder dest, String newName)
-
Constructor Details
-
WebDAVController
public WebDAVController()
-
-
Method Details
-
getSession
public static com.logicaldoc.core.security.Session getSession() throws io.milton.http.exceptions.NotAuthorizedException- Throws:
io.milton.http.exceptions.NotAuthorizedException
-
getRoot
- 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
- 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
- Throws:
io.milton.http.exceptions.NotAuthorizedException
-
createFile
public DAVFile createFile(DAVFolder folder, String newName, byte[] data) throws io.milton.http.exceptions.NotAuthorizedException - Throws:
io.milton.http.exceptions.NotAuthorizedException
-