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 voidcopyFile(DAVFile src, DAVFolder dest, String newName)DAVFilecreateFile(DAVFolder folder, String newName, byte[] data)DAVFoldercreateFolder(DAVFolder folder, String name)voiddeleteDocument(DAVFile document)voiddeleteFile(DAVFile file)voiddeleteFolder(DAVFolder folder)DAVFilefindFile(DAVFolder root, String name)DAVFolderfindFolder(DAVFolder root, String name)byte[]getFileContent(DAVFile file)List<DAVFile>getFiles(DAVFolder root)List<DAVFolder>getFolders(DAVFolder root)List<DAVFolder>getFolders(DAVRoot r)DAVRootgetRoot()static com.logicaldoc.core.security.SessiongetSession()voidmoveFile(DAVFile file, DAVFolder dest, String newName)voidmoveFolder(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:
 IOExceptionio.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
 
 - 
 
 -