Package org.javlo.module.file
Class ELFinder
- java.lang.Object
-
- org.javlo.module.file.ELFinder
-
- Direct Known Subclasses:
JavloELFinder
public abstract class ELFinder extends Object
- Author:
- Benoit Dumont de Chassart
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
ELFinder.Property
-
Constructor Summary
Constructors Constructor Description ELFinder()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected <T> T[]
array(T... values)
protected abstract void
changeFolder(ELFile file)
protected abstract void
compressFiles(String[] files, String type, Map<String,Object> apiResponse)
protected abstract void
createDir(String folderId, String fileName, Map<String,Object> response)
protected abstract ELFile
createELFile(ELFile parent, File file)
protected abstract void
deleteFile(javax.servlet.http.HttpServletRequest request, String[] filesHash, Map<String,Object> apiResponse)
protected abstract void
duplicateFile(String[] filesHash, Map<String,Object> apiResponse)
protected void
extend(Map<String,Object> base, ELFinder.Property... props)
protected abstract void
extractFile(String fileHash, Map<String,Object> apiResponse)
protected abstract String
fileToHash(ELFile file)
protected static List<ELFile>
filterDirectories(List<ELFile> children)
protected abstract String
getFileMimeType(String fileName)
protected String
getMimeType(File file)
protected abstract List<ELVolume>
getVolumes()
protected abstract ELFile
hashToFile(String hash)
protected Map<String,Object>
obj(ELFinder.Property... props)
void
open(boolean init, ELFile target, boolean tree, Map<String,Object> response)
void
parents(ELFile target, Map<String,Object> response)
protected abstract void
pasteFiles(String srcHashFolder, String dstHashFolder, String[] files, boolean cut, Map<String,Object> apiResponse)
protected Map<String,Object>
printFile(ELFile file)
protected List<Object>
printFiles(List<ELFile> files)
protected List<Object>
printFilesHash(Collection<ELFile> files)
protected Map<String,Object>
printOptions(ELFile file)
void
process(Writer out, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
protected ELFinder.Property
prop(String name, Object value)
protected ELFinder.Property
propObj(String name, ELFinder.Property... props)
protected abstract void
renameFile(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String fileHash, String name, Map<String,Object> apiResponse)
protected abstract void
resetHash(String hash)
protected Object
toInt(boolean b)
protected void
transformFile(String fileHash, String mode, int width, int height, int x, int y, int degree, Map<String,Object> apiResponse)
void
tree(ELFile target, Map<String,Object> response)
protected abstract void
uploadFile(String folderHash, org.apache.commons.fileupload.FileItem[] filesItem, String parameter, Map<String,Object> apiResponse)
-
-
-
Method Detail
-
process
public void process(Writer out, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
- Throws:
Exception
-
pasteFiles
protected abstract void pasteFiles(String srcHashFolder, String dstHashFolder, String[] files, boolean cut, Map<String,Object> apiResponse) throws IOException
- Throws:
IOException
-
uploadFile
protected abstract void uploadFile(String folderHash, org.apache.commons.fileupload.FileItem[] filesItem, String parameter, Map<String,Object> apiResponse) throws Exception
- Throws:
Exception
-
extractFile
protected abstract void extractFile(String fileHash, Map<String,Object> apiResponse) throws Exception
- Throws:
Exception
-
compressFiles
protected abstract void compressFiles(String[] files, String type, Map<String,Object> apiResponse) throws Exception
- Throws:
Exception
-
renameFile
protected abstract void renameFile(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String fileHash, String name, Map<String,Object> apiResponse) throws ELFinderException, Exception
- Throws:
ELFinderException
Exception
-
duplicateFile
protected abstract void duplicateFile(String[] filesHash, Map<String,Object> apiResponse) throws IOException
- 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
- Throws:
Exception
-
createDir
protected abstract void createDir(String folderId, String fileName, Map<String,Object> response)
-
deleteFile
protected abstract void deleteFile(javax.servlet.http.HttpServletRequest request, String[] filesHash, Map<String,Object> apiResponse) throws IOException
- Throws:
IOException
-
changeFolder
protected abstract void changeFolder(ELFile file)
-
printFilesHash
protected List<Object> printFilesHash(Collection<ELFile> files)
-
toInt
protected Object toInt(boolean b)
-
resetHash
protected abstract void resetHash(String hash)
-
array
protected <T> T[] array(T... values)
-
obj
protected Map<String,Object> obj(ELFinder.Property... props)
-
extend
protected void extend(Map<String,Object> base, ELFinder.Property... props)
-
prop
protected ELFinder.Property prop(String name, Object value)
-
propObj
protected ELFinder.Property propObj(String name, ELFinder.Property... props)
-
-