- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 35 of file FileAttach.java.
◆ FileAttach()
org.turro.file.util.FileAttach.FileAttach |
( |
String |
entityPath | ) |
|
◆ getFile() [1/2]
String org.turro.file.util.FileAttach.getFile |
( |
String |
folder, |
|
|
String |
file |
|
) |
| |
Definition at line 71 of file FileAttach.java.
72 return getFile(folder, file,
true);
String getFile(String folder, String file)
◆ getFile() [2/2]
String org.turro.file.util.FileAttach.getFile |
( |
String |
folder, |
|
|
String |
file, |
|
|
boolean |
withContext |
|
) |
| |
Definition at line 75 of file FileAttach.java.
76 File root =
new File(ElephantContext.getRealPath(folder + file));
78 return (withContext ? ElephantContext.getRootWebPath() :
"") + folder + file;
◆ getFiles() [1/2]
List<String> org.turro.file.util.FileAttach.getFiles |
( |
String |
folder | ) |
|
Definition at line 83 of file FileAttach.java.
List< String > getFiles(String folder)
◆ getFiles() [2/2]
List<String> org.turro.file.util.FileAttach.getFiles |
( |
String |
folder, |
|
|
boolean |
withContext |
|
) |
| |
Definition at line 87 of file FileAttach.java.
88 File root =
new File(ElephantContext.getRealPath(folder));
89 List<String> files =
new ArrayList<>();
91 for(File f : root.listFiles()) {
93 files.add((withContext ? ElephantContext.getRootWebPath() :
"") + folder +
"/" + f.getName());
◆ getImageFiles() [1/2]
List<PairedFile> org.turro.file.util.FileAttach.getImageFiles |
( |
String |
folder | ) |
|
Definition at line 100 of file FileAttach.java.
List< PairedFile > getImageFiles(String folder)
◆ getImageFiles() [2/2]
List<PairedFile> org.turro.file.util.FileAttach.getImageFiles |
( |
String |
folder, |
|
|
boolean |
withContext |
|
) |
| |
Definition at line 104 of file FileAttach.java.
105 File root =
new File(ElephantContext.getRealPath(folder));
106 List<PairedFile> files =
new ArrayList<>();
108 for(File f : root.listFiles()) {
110 files.add(
new PairedFile((withContext ? ElephantContext.getRootWebPath() :
"") + folder, f.getName(),
111 (withContext ? ElephantContext.getRootWebPath() :
"") + folder +
"/thumbs",
".png"));
◆ getPrivate() [1/2]
String org.turro.file.util.FileAttach.getPrivate |
( |
| ) |
|
Definition at line 51 of file FileAttach.java.
52 return "/WEB-INF/files" + entityPath;
◆ getPrivate() [2/2]
static String org.turro.file.util.FileAttach.getPrivate |
( |
String |
entityPath, |
|
|
String |
file |
|
) |
| |
|
static |
Definition at line 125 of file FileAttach.java.
127 return fa.getFile(fa.getPrivate(), file);
FileAttach(String entityPath)
◆ getPrivateRepository()
◆ getPublicFile() [1/2]
String org.turro.file.util.FileAttach.getPublicFile |
( |
String |
file | ) |
|
◆ getPublicFile() [2/2]
String org.turro.file.util.FileAttach.getPublicFile |
( |
String |
file, |
|
|
boolean |
withContext |
|
) |
| |
◆ getPublicFiles()
List<String> org.turro.file.util.FileAttach.getPublicFiles |
( |
| ) |
|
◆ getPublishable() [1/2]
String org.turro.file.util.FileAttach.getPublishable |
( |
| ) |
|
Definition at line 43 of file FileAttach.java.
44 return "/_internal/files" + entityPath;
◆ getPublishable() [2/2]
static String org.turro.file.util.FileAttach.getPublishable |
( |
String |
entityPath, |
|
|
String |
file |
|
) |
| |
|
static |
Definition at line 120 of file FileAttach.java.
122 return fa.getFile(fa.getPublishable(), file);
◆ getPublishableFiles()
static List<String> org.turro.file.util.FileAttach.getPublishableFiles |
( |
String |
entityPath, |
|
|
String |
file |
|
) |
| |
|
static |
Definition at line 130 of file FileAttach.java.
132 return fa.getFiles(fa.getPublishable() + file);
◆ getPublishableImages()
static List<PairedFile> org.turro.file.util.FileAttach.getPublishableImages |
( |
String |
entityPath, |
|
|
String |
file |
|
) |
| |
|
static |
Definition at line 135 of file FileAttach.java.
137 return fa.getImageFiles(fa.getPublishable() + file);
◆ getPublishableRepository()
The documentation for this class was generated from the following file: