BrightSide Workbench Full Report + Source Code
org.turro.alliance.user.menu.AllianceUserMenu Class Reference
Inheritance diagram for org.turro.alliance.user.menu.AllianceUserMenu:
Collaboration diagram for org.turro.alliance.user.menu.AllianceUserMenu:

Public Member Functions

 AllianceUserMenu ()
 
void initMenu ()
 
boolean isInRole ()
 
Object getDetail ()
 
- Public Member Functions inherited from org.turro.elephant.user.menu.DefaultUserMenu
 DefaultUserMenu (String label, String image)
 
 DefaultUserMenu (String label, String image, String link)
 
 DefaultUserMenu (String label, String image, Function< IUserMenu, Boolean > command)
 
 DefaultUserMenu (String label, String image, int order)
 
 DefaultUserMenu (String label, String image, String link, int order)
 
 DefaultUserMenu (String id, String label, String image, Function< IUserMenu, Boolean > command, int order)
 
String getId ()
 
String getLabel ()
 
String getImage ()
 
int getOrder ()
 
String getLink ()
 
boolean isValid ()
 
boolean isCaption ()
 
boolean isOnlyLabel ()
 
boolean isOnlyImage ()
 
boolean isActive ()
 
IUserMenu getParent ()
 
Set< IUserMenugetChildren ()
 
IUserMenu addChild (IUserMenu menu)
 
boolean execute ()
 
int compareTo (IUserMenu o)
 
boolean isHidden ()
 

Additional Inherited Members

- Protected Member Functions inherited from org.turro.elephant.user.menu.DefaultUserMenu
 DefaultUserMenu (String id, String label, String image, String link, Function< IUserMenu, Boolean > command, int order)
 
void setOrder (int order)
 
- Protected Attributes inherited from org.turro.elephant.user.menu.DefaultUserMenu
IUserMenu parent
 
Set< IUserMenuchildren
 
String id
 
int order
 
Function< IUserMenu, Boolean > command
 

Detailed Description

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

Definition at line 33 of file AllianceUserMenu.java.

Constructor & Destructor Documentation

◆ AllianceUserMenu()

org.turro.alliance.user.menu.AllianceUserMenu.AllianceUserMenu ( )

Definition at line 35 of file AllianceUserMenu.java.

35  {
36  super("Alliance", null, null, 10);
37  }

Member Function Documentation

◆ getDetail()

Object org.turro.alliance.user.menu.AllianceUserMenu.getDetail ( )

Reimplemented from org.turro.elephant.user.menu.DefaultUserMenu.

Definition at line 109 of file AllianceUserMenu.java.

109  {
110  return null;
111  }
Here is the caller graph for this function:

◆ initMenu()

void org.turro.alliance.user.menu.AllianceUserMenu.initMenu ( )

Reimplemented from org.turro.elephant.user.menu.DefaultUserMenu.

Definition at line 40 of file AllianceUserMenu.java.

40  {
41  addChild(new DefaultUserMenu("Projects", null, "/user/alliance/projects") {
42  @Override
43  public boolean isInRole() {
44  return Clients.hasMembers(AxClient.CLIENT_SERVICE);
45  }
46  @Override
47  public Object getDetail() {
48  return null;
49  }
50  });
51  addChild(new DefaultUserMenu("Project grants", null, "/user/alliance/projectgrants") {
52  @Override
53  public boolean isInRole() {
54  return Clients.hasMembers(AxClient.CLIENT_SERVICE);
55  }
56  @Override
57  public Object getDetail() {
58  return null;
59  }
60  });
61  addChild(new DefaultUserMenu("Project grants", null, "/user/alliance/cprojectgrants") {
62  @Override
63  public boolean isInRole() {
64  return Servers.hasServers(AxServer.SERVER_SERVICE);
65  }
66  @Override
67  public Object getDetail() {
68  return null;
69  }
70  });
71  addChild(new DefaultUserMenu("Centers", null, "/user/alliance/findcenter") {
72  @Override
73  public boolean isInRole() {
74  return Clients.hasMembers(AxClient.CLIENT_SERVICE);
75  }
76  @Override
77  public Object getDetail() {
78  return null;
79  }
80  });
81  addChild(new DefaultUserMenu("Students", null, "/user/alliance/findstudent") {
82  @Override
83  public boolean isInRole() {
84  return Clients.hasMembers(AxClient.CLIENT_SERVICE);
85  }
86  @Override
87  public Object getDetail() {
88  return null;
89  }
90  });
91  addChild(new DefaultUserMenu("Challenges", null, "/user/alliance/challenges") {
92  @Override
93  public boolean isInRole() {
94  return Clients.hasMembers(AxClient.CLIENT_SERVICE);
95  }
96  @Override
97  public Object getDetail() {
98  return null;
99  }
100  });
101  }
Here is the call graph for this function:

◆ isInRole()

boolean org.turro.alliance.user.menu.AllianceUserMenu.isInRole ( )

Reimplemented from org.turro.elephant.user.menu.DefaultUserMenu.

Definition at line 104 of file AllianceUserMenu.java.

104  {
105  return !isHidden();
106  }
Here is the call graph for this function:
Here is the caller graph for this function:

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