- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 36 of file AttachFiles.java.
◆ from()
static AttachFiles org.turro.file.util.AttachFiles.from |
( |
String |
path | ) |
|
|
static |
◆ getAllPrivatePaths()
static Set<String> org.turro.file.util.AttachFiles.getAllPrivatePaths |
( |
String |
root | ) |
|
|
static |
Definition at line 99 of file AttachFiles.java.
101 Folder folder = AttachFiles.from(
"/" + root).getPrivateFolder();
102 if(folder.exists()) {
103 return folder.folders().stream()
104 .map(f ->
"/" + root +
"/" + f.name()).collect(Collectors.toSet());
106 }
catch (IOException ex) {
107 Logger.getLogger(AttachFiles.class.getName()).log(Level.SEVERE,
null, ex);
109 return Collections.EMPTY_SET;
◆ getAllPublishablePaths()
static Set<String> org.turro.file.util.AttachFiles.getAllPublishablePaths |
( |
String |
root | ) |
|
|
static |
Definition at line 86 of file AttachFiles.java.
88 Folder folder = AttachFiles.from(
"/" + root).getPublishableFolder();
90 return folder.folders().stream()
91 .map(f ->
"/" + root +
"/" + f.name()).collect(Collectors.toSet());
93 }
catch (IOException ex) {
94 Logger.getLogger(AttachFiles.class.getName()).log(Level.SEVERE,
null, ex);
96 return Collections.EMPTY_SET;
◆ privateDocs()
List<Document> org.turro.file.util.AttachFiles.privateDocs |
( |
| ) |
|
Definition at line 65 of file AttachFiles.java.
67 return getPrivateFolder().documents(1000);
68 }
catch (IOException ex) {
69 Logger.getLogger(AttachFiles.class.getName()).log(Level.SEVERE,
null, ex);
71 return Collections.EMPTY_LIST;
◆ publishableDocs()
List<Document> org.turro.file.util.AttachFiles.publishableDocs |
( |
| ) |
|
Definition at line 56 of file AttachFiles.java.
58 return getPublishableFolder().documents(1000);
59 }
catch (IOException ex) {
60 Logger.getLogger(AttachFiles.class.getName()).log(Level.SEVERE,
null, ex);
62 return Collections.EMPTY_LIST;
◆ remove()
void org.turro.file.util.AttachFiles.remove |
( |
| ) |
|
◆ removePrivate()
void org.turro.file.util.AttachFiles.removePrivate |
( |
| ) |
|
◆ removePublishable()
void org.turro.file.util.AttachFiles.removePublishable |
( |
| ) |
|
◆ toFolder()
void org.turro.file.util.AttachFiles.toFolder |
( |
Folder |
folder | ) |
|
The documentation for this class was generated from the following file: