◆ deleteDoc()
void org.turro.contacts.profile.PublicDocumentsVM.deleteDoc |
( |
@BindingParam("document") Document |
document | ) |
|
Definition at line 79 of file PublicDocumentsVM.java.
80 Messages.confirmDeletion().add(document.name()).show(() -> {
82 BindUtils.postNotifyChange(
null,
null, PublicDocumentsVM.this,
"model");
◆ download()
void org.turro.contacts.profile.PublicDocumentsVM.download |
( |
@BindingParam("document") Document |
document | ) |
|
◆ getMaxDocuments()
long org.turro.contacts.profile.PublicDocumentsVM.getMaxDocuments |
( |
| ) |
|
◆ getModel()
List<Document> org.turro.contacts.profile.PublicDocumentsVM.getModel |
( |
| ) |
|
Definition at line 90 of file PublicDocumentsVM.java.
92 if(publicFolder !=
null && publicFolder.exists())
return publicFolder.documents();
93 }
catch (IOException ex) {
94 WebLoggers.severe(
this).exception(ex).log();
96 return Collections.EMPTY_LIST;
◆ init()
void org.turro.contacts.profile.PublicDocumentsVM.init |
( |
| ) |
|
Definition at line 50 of file PublicDocumentsVM.java.
51 publicFolder = StandardFolder.publishable()
53 .entity(Authentication.getIContact())
56 maxDocuments = Configurator.instance().asLong(
"Profile.Documents.Maximum");
◆ upload()
void org.turro.contacts.profile.PublicDocumentsVM.upload |
( |
@BindingParam("medias") Media |
medias[] | ) |
|
Definition at line 61 of file PublicDocumentsVM.java.
62 if(publicFolder !=
null) {
63 long count = publicFolder.count();
64 for(Media media : medias) {
65 if(count < maxDocuments) {
66 Medias.toFolder(media, publicFolder);
The documentation for this class was generated from the following file: