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 voidchangeFolder(ELFile file)protected voidcompressFiles(String[] files, String type, Map<String,Object> apiResponse)protected voidcreateDir(String folderId, String fileName, Map<String,Object> response)protected ELFilecreateELFile(ELFile parent, File file)protected voiddeleteFile(javax.servlet.http.HttpServletRequest request, String[] filesHash, Map<String,Object> apiResponse)protected voidduplicateFile(String[] filesHash, Map<String,Object> apiResponse)protected voidextractFile(String fileHash, Map<String,Object> apiResponse)protected StringfileToHash(ELFile file)protected StringgetFileMimeType(String fileName)protected List<ELVolume>getVolumes()protected ELFilehashToFile(String hash)protected voidpasteFiles(String srcHashFolder, String dstHashFolder, String[] files, boolean cut, Map<String,Object> apiResponse)protected Map<String,Object>printOptions(ELFile file)voidprocess(Writer out, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)protected voidrenameFile(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String fileHash, String name, Map<String,Object> apiResponse)protected voidresetHash(String hash)protected voidtransformFile(String fileHash, String mode, int width, int height, int x, int y, int degree, Map<String,Object> apiResponse)protected voiduploadFile(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:
hashToFilein classELFinder
-
fileToHash
protected String fileToHash(ELFile file)
- Specified by:
fileToHashin classELFinder
-
changeFolder
protected void changeFolder(ELFile file)
- Specified by:
changeFolderin classELFinder
-
getVolumes
protected List<ELVolume> getVolumes()
- Specified by:
getVolumesin classELFinder
-
getFileMimeType
protected String getFileMimeType(String fileName)
- Specified by:
getFileMimeTypein classELFinder
-
deleteFile
protected void deleteFile(javax.servlet.http.HttpServletRequest request, String[] filesHash, Map<String,Object> apiResponse) throws IOException- Specified by:
deleteFilein 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:
transformFilein classELFinder- Throws:
Exception
-
duplicateFile
protected void duplicateFile(String[] filesHash, Map<String,Object> apiResponse) throws IOException
- Specified by:
duplicateFilein 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:
renameFilein classELFinder- Throws:
Exception
-
extractFile
protected void extractFile(String fileHash, Map<String,Object> apiResponse) throws Exception
- Specified by:
extractFilein classELFinder- Throws:
Exception
-
compressFiles
protected void compressFiles(String[] files, String type, Map<String,Object> apiResponse) throws Exception
- Specified by:
compressFilesin 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:
uploadFilein classELFinder- Throws:
Exception
-
createELFile
protected ELFile createELFile(ELFile parent, File file)
- Specified by:
createELFilein classELFinder
-
printOptions
protected Map<String,Object> printOptions(ELFile file)
- Overrides:
printOptionsin classELFinder
-
pasteFiles
protected void pasteFiles(String srcHashFolder, String dstHashFolder, String[] files, boolean cut, Map<String,Object> apiResponse) throws IOException
- Specified by:
pasteFilesin classELFinder- Throws:
IOException
-
-