Package com.logicaldoc.webcontent
Class FileManager
- java.lang.Object
-
- com.logicaldoc.webcontent.FileManager
-
public class FileManager extends Object
Facade on LogicalDOC for file browsing from HTML editor.- Since:
- 6.8.1
- Author:
- Marco Meschieri - LogicalDOC
-
-
Constructor Summary
Constructors Constructor Description FileManager(javax.servlet.ServletContext servletContext, javax.servlet.http.HttpServletRequest request)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.json.JSONObject
add()
org.json.JSONObject
addFolder()
boolean
contains(String where, String what)
org.json.JSONObject
delete()
void
download(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String suffix)
org.json.JSONObject
error(String msg)
String
getDocumentRoot()
org.json.JSONObject
getError()
org.json.JSONObject
getFolder()
org.json.JSONObject
getFolderTree()
Same as getFolder but this one only put children folders, not filesorg.json.JSONObject
getInfo()
String
lang(String key)
void
log(String filename, String msg)
void
preview(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
org.json.JSONObject
rename()
boolean
setGetVar(String var, String value)
String
sprintf(String text, String params)
-
-
-
Method Detail
-
error
public org.json.JSONObject error(String msg)
-
getError
public org.json.JSONObject getError()
-
getInfo
public org.json.JSONObject getInfo()
-
getFolder
public org.json.JSONObject getFolder()
-
getFolderTree
public org.json.JSONObject getFolderTree()
Same as getFolder but this one only put children folders, not files- Returns:
- the tree in JSON representation
-
rename
public org.json.JSONObject rename()
-
delete
public org.json.JSONObject delete()
-
add
public org.json.JSONObject add()
-
addFolder
public org.json.JSONObject addFolder()
-
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
public String getDocumentRoot()
-
-