BrightSide Workbench Full Report + Source Code
org.turro.file.zul.tree.FileAttachSelfTree Class Reference
Inheritance diagram for org.turro.file.zul.tree.FileAttachSelfTree:
Collaboration diagram for org.turro.file.zul.tree.FileAttachSelfTree:

Public Member Functions

 FileAttachSelfTree ()
 
void afterCompose ()
 
void uploadDone (FileItem file)
 
void downloadDone (FileItem file)
 
void deleteDone (FileItem file)
 
- Public Member Functions inherited from org.turro.file.zul.tree.FileTree
 FileTree ()
 
 FileTree (String title)
 
void initTreeColumns (List< FileColumn > fileColumns)
 
FileFilter getFileFilter ()
 
void setFileFilter (FileFilter fileFilter)
 
FileListener getFileListener ()
 
void setFileListener (FileListener listener)
 
String getRole ()
 
void setRole (String role)
 
boolean isInRole (String role)
 
Menupopup getActionMenu ()
 
void setAddToolbar (boolean addToolbar)
 
FileItem addFolder (String label, String path)
 
List< FileColumngetColumns ()
 
File getSelectedFile ()
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 34 of file FileAttachSelfTree.java.

Constructor & Destructor Documentation

◆ FileAttachSelfTree()

org.turro.file.zul.tree.FileAttachSelfTree.FileAttachSelfTree ( )

Definition at line 36 of file FileAttachSelfTree.java.

36  {
37  super(I_.get("Root"));
38  }
Here is the call graph for this function:

Member Function Documentation

◆ afterCompose()

void org.turro.file.zul.tree.FileAttachSelfTree.afterCompose ( )

Definition at line 41 of file FileAttachSelfTree.java.

41  {
42  initTreeColumns(createFileColumns());
43  IContact contact = Authentication.getIContact();
44  if(contact != null) {
45  File myFiles = new File(ElephantContext.getRealPath("/WEB-INF/files") + "/contact/" + contact.getId());
46  //if(!myFiles.exists()) myFiles.mkdirs();
47  addFolder(contact.getName(), myFiles.getAbsolutePath());
48  myFiles = new File(ElephantContext.getRealPath("/_internal/files") + "/contact/" + contact.getId());
49  //if(!myFiles.exists()) myFiles.mkdirs();
50  addFolder(contact.getName() + " (" + I_.get("Publishable") + ")", myFiles.getAbsolutePath());
51  for(IContact r : contact.getRelations("Documents")) {
52  File relFiles = new File(ElephantContext.getRealPath("/WEB-INF/files") + "/contact/" + r.getId());
53  //if(!relFiles.exists()) relFiles.mkdirs();
54  addFolder(r.getName(), relFiles.getAbsolutePath());
55  relFiles = new File(ElephantContext.getRealPath("/_internal/files") + "/contact/" + r.getId());
56  //if(!relFiles.exists()) relFiles.mkdirs();
57  addFolder(r.getName() + " (" + I_.get("Publishable") + ")", relFiles.getAbsolutePath());
58  }
59  }
60  }
void initTreeColumns(List< FileColumn > fileColumns)
FileItem addFolder(String label, String path)
Here is the call graph for this function:

◆ deleteDone()

void org.turro.file.zul.tree.FileAttachSelfTree.deleteDone ( FileItem  file)

Implements org.turro.file.zul.tree.FileListener.

Definition at line 71 of file FileAttachSelfTree.java.

71  {
72  }

◆ downloadDone()

void org.turro.file.zul.tree.FileAttachSelfTree.downloadDone ( FileItem  file)

Implements org.turro.file.zul.tree.FileListener.

Definition at line 67 of file FileAttachSelfTree.java.

67  {
68  }

◆ uploadDone()

void org.turro.file.zul.tree.FileAttachSelfTree.uploadDone ( FileItem  file)

Implements org.turro.file.zul.tree.FileListener.

Definition at line 63 of file FileAttachSelfTree.java.

63  {
64  }

The documentation for this class was generated from the following file: