BrightSide Workbench Full Report + Source Code
org.turro.attach.zul.menu.AttachMenu Class Reference
Inheritance diagram for org.turro.attach.zul.menu.AttachMenu:
Collaboration diagram for org.turro.attach.zul.menu.AttachMenu:

Public Member Functions

void addToMenu (ElephantMenuBar bar)
 
void addToSessionMenu (ElephantSubmenu submenu)
 
void addToToolsMenu (ElephantSubmenu submenu)
 
- Public Member Functions inherited from org.turro.menu.ElephantMenu
 ElephantMenu ()
 
 ElephantMenu (String label)
 
 ElephantMenu (String label, String image)
 
ElephantMenuBar getMenuBar ()
 
ElephantMenu getParentMenu ()
 
ElephantSubmenu getParentSubmenu ()
 
ElephantSubmenu addSubmenu ()
 
int compareTo (ElephantMenu o)
 

Additional Inherited Members

- Static Public Member Functions inherited from org.turro.menu.ElephantMenu
static String makeInclude (String include)
 
static void showEntity (Object id, String attribute, String label, String include)
 
static void showEntity (Object id, String attribute, String label, String include, Map< String, Object > dynProps)
 
static void showZulFile (String label, String include)
 
static void showZulFile (String label, String include, Map< String, Object > dynProps)
 
static void showModalZulFile (String label, String source, Command command)
 
static void showModalZulFile (String label, String include, Map args, Command command)
 
static void showPopupZulFile (String label, String include)
 
static void showPopupZulFile (String label, String include, Map args)
 
static void showEntityModal (Object id, String attribute, String include, Command command)
 

Detailed Description

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

Definition at line 32 of file AttachMenu.java.

Member Function Documentation

◆ addToMenu()

void org.turro.attach.zul.menu.AttachMenu.addToMenu ( ElephantMenuBar  bar)

Reimplemented from org.turro.menu.ElephantMenu.

Definition at line 35 of file AttachMenu.java.

35  {
36  bar.addMenu("Attachments", Permission.from("attach:root", "attach:self"))
37  .addSubmenu()
38  .addMenuitem("Attachments root", "clip", "/attachment/attachNavigatorRoot.zul", Permission.from("attach:root"))
39  .addMenuitem("Self attachments", "clip", "/attachment/attachNavigatorSelf.zul", Permission.from("attach:self"))
40  .addMenuSeparator()
41  .addMenuitem("File root", "clip", "/attachment/fileNavigatorRoot.zul", Permission.from("file-attach:root"))
42  .addMenuitem("Self files", "clip", "/attachment/fileNavigatorSelf.zul", Permission.from("file-attach:self"))
43  .addMenuSeparator()
44  .addMenuitem("Repository", "/attachment/repositories.zul", Permission.from("repository:new"))
45  .addMenuSeparator()
46  .addMenuitem("Documentation definitions", "/attachment/docdefinitions.zul", Permission.from("file-attach:root"));
47  }
Here is the call graph for this function:

◆ addToSessionMenu()

void org.turro.attach.zul.menu.AttachMenu.addToSessionMenu ( ElephantSubmenu  submenu)

Reimplemented from org.turro.menu.ElephantMenu.

Definition at line 50 of file AttachMenu.java.

50  {
51  submenu.addMenu("My documents", Permission.from("my-documents:list"))
52  .addSubmenu()
53  .addMenuitem("My documents", "folder_documents", "/attachment/myDocuments.zul")
54  .addMenuitem("My files", "folder_documents", "/attachment/myFiles.zul");
55  }
Here is the call graph for this function:

◆ addToToolsMenu()

void org.turro.attach.zul.menu.AttachMenu.addToToolsMenu ( ElephantSubmenu  submenu)

Reimplemented from org.turro.menu.ElephantMenu.

Definition at line 58 of file AttachMenu.java.

58  {
59  submenu.addMenuitem("Web root", "/attachment/fileWebRoot.zul", Permission.from(() -> Authentication.isCloudAdmin()));
60  //.addMenuitem("System root", "/attachment/fileRoot.zul", Permission.from(() -> Authentication.isCloudAdmin()));
61  }
Here is the call graph for this function:

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