Package com.logicaldoc.webcontent
Class FileManager
java.lang.Object
com.logicaldoc.webcontent.FileManager
Facade on LogicalDOC for file browsing from HTML editor.
- Since:
- 6.8.1
- Author:
- Marco Meschieri - LogicalDOC
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.json.JSONObject
add()
org.json.JSONObject
boolean
org.json.JSONObject
delete()
void
download
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String suffix) org.json.JSONObject
org.json.JSONObject
getError()
org.json.JSONObject
org.json.JSONObject
Same as getFolder but this one only put children folders, not filesorg.json.JSONObject
getInfo()
void
void
preview
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) org.json.JSONObject
rename()
boolean
-
Constructor Details
-
FileManager
public FileManager(javax.servlet.http.HttpServletRequest request) throws javax.servlet.ServletException - Throws:
javax.servlet.ServletException
-
-
Method Details
-
error
-
getError
public org.json.JSONObject getError() -
lang
-
setGetVar
-
getInfo
public org.json.JSONObject getInfo() -
getFolder
public org.json.JSONObject getFolder() throws com.logicaldoc.core.PersistenceException- Throws:
com.logicaldoc.core.PersistenceException
-
getFolderTree
public org.json.JSONObject getFolderTree() throws com.logicaldoc.core.PersistenceExceptionSame as getFolder but this one only put children folders, not files- Returns:
- the tree in JSON representation
- Throws:
com.logicaldoc.core.PersistenceException
- error at data layer
-
rename
public org.json.JSONObject rename() -
add
public org.json.JSONObject add() -
addFolder
public org.json.JSONObject addFolder() -
delete
public org.json.JSONObject delete() -
download
public void download(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String suffix) -
preview
public void preview(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) -
getDocumentRoot
-
contains
-
sprintf
-
log
-