Package org.javlo.module.file
Class JavloELFinder
- java.lang.Object
-
- org.javlo.module.file.ELFinder
-
- org.javlo.module.file.JavloELFinder
-
public class JavloELFinder extends ELFinder
- Author:
- Benoit Dumont de Chassart
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.javlo.module.file.ELFinder
ELFinder.Property
-
-
Constructor Summary
Constructors Constructor Description JavloELFinder(String rootPath, javax.servlet.ServletContext application)
JavloELFinder(String rootPath, ContentContext ctx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
changeFolder(ELFile file)
protected void
compressFiles(String[] files, String type, Map<String,Object> apiResponse)
protected void
createDir(String folderId, String fileName, Map<String,Object> response)
protected ELFile
createELFile(ELFile parent, File file)
protected void
deleteFile(javax.servlet.http.HttpServletRequest request, String[] filesHash, Map<String,Object> apiResponse)
protected void
duplicateFile(String[] filesHash, Map<String,Object> apiResponse)
protected void
extractFile(String fileHash, Map<String,Object> apiResponse)
protected String
fileToHash(ELFile file)
protected String
getFileMimeType(String fileName)
protected List<ELVolume>
getVolumes()
protected ELFile
hashToFile(String hash)
protected void
pasteFiles(String srcHashFolder, String dstHashFolder, String[] files, boolean cut, Map<String,Object> apiResponse)
protected Map<String,Object>
printOptions(ELFile file)
void
process(Writer out, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
protected void
renameFile(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String fileHash, String name, Map<String,Object> apiResponse)
protected void
resetHash(String hash)
protected void
transformFile(String fileHash, String mode, int width, int height, int x, int y, int degree, Map<String,Object> apiResponse)
protected void
uploadFile(String folderHash, org.apache.commons.fileupload.FileItem[] filesItem, String parameter, Map<String,Object> apiResponse)
-
Methods inherited from class org.javlo.module.file.ELFinder
array, extend, filterDirectories, getMimeType, obj, open, parents, printFile, printFiles, printFilesHash, prop, propObj, toInt, tree
-
-
-
-
Constructor Detail
-
JavloELFinder
public JavloELFinder(String rootPath, javax.servlet.ServletContext application)
-
JavloELFinder
public JavloELFinder(String rootPath, ContentContext ctx)
-
-
Method Detail
-
process
public void process(Writer out, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
-
hashToFile
protected ELFile hashToFile(String hash)
- Specified by:
hashToFile
in classELFinder
-
fileToHash
protected String fileToHash(ELFile file)
- Specified by:
fileToHash
in classELFinder
-
changeFolder
protected void changeFolder(ELFile file)
- Specified by:
changeFolder
in classELFinder
-
getVolumes
protected List<ELVolume> getVolumes()
- Specified by:
getVolumes
in classELFinder
-
getFileMimeType
protected String getFileMimeType(String fileName)
- Specified by:
getFileMimeType
in classELFinder
-
deleteFile
protected void deleteFile(javax.servlet.http.HttpServletRequest request, String[] filesHash, Map<String,Object> apiResponse) throws IOException
- Specified by:
deleteFile
in classELFinder
- Throws:
IOException
-
transformFile
protected void transformFile(String fileHash, String mode, int width, int height, int x, int y, int degree, Map<String,Object> apiResponse) throws Exception
- Overrides:
transformFile
in classELFinder
- Throws:
Exception
-
duplicateFile
protected void duplicateFile(String[] filesHash, Map<String,Object> apiResponse) throws IOException
- Specified by:
duplicateFile
in classELFinder
- Throws:
IOException
-
renameFile
protected void renameFile(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String fileHash, String name, Map<String,Object> apiResponse) throws Exception
- Specified by:
renameFile
in classELFinder
- Throws:
Exception
-
extractFile
protected void extractFile(String fileHash, Map<String,Object> apiResponse) throws Exception
- Specified by:
extractFile
in classELFinder
- Throws:
Exception
-
compressFiles
protected void compressFiles(String[] files, String type, Map<String,Object> apiResponse) throws Exception
- Specified by:
compressFiles
in classELFinder
- Throws:
Exception
-
uploadFile
protected void uploadFile(String folderHash, org.apache.commons.fileupload.FileItem[] filesItem, String parameter, Map<String,Object> apiResponse) throws Exception
- Specified by:
uploadFile
in classELFinder
- Throws:
Exception
-
createELFile
protected ELFile createELFile(ELFile parent, File file)
- Specified by:
createELFile
in classELFinder
-
printOptions
protected Map<String,Object> printOptions(ELFile file)
- Overrides:
printOptions
in classELFinder
-
pasteFiles
protected void pasteFiles(String srcHashFolder, String dstHashFolder, String[] files, boolean cut, Map<String,Object> apiResponse) throws IOException
- Specified by:
pasteFiles
in classELFinder
- Throws:
IOException
-
-