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

Public Member Functions

 SessionUserMenu ()
 
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 30 of file SessionUserMenu.java.

Constructor & Destructor Documentation

◆ SessionUserMenu()

org.turro.elephant.user.menu.SessionUserMenu.SessionUserMenu ( )

Definition at line 32 of file SessionUserMenu.java.

32  {
33  super("Session", null, null, 1);
34  }

Member Function Documentation

◆ getDetail()

Object org.turro.elephant.user.menu.SessionUserMenu.getDetail ( )

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

Definition at line 61 of file SessionUserMenu.java.

61  {
62  return null;
63  }
Here is the caller graph for this function:

◆ initMenu()

void org.turro.elephant.user.menu.SessionUserMenu.initMenu ( )

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

Definition at line 37 of file SessionUserMenu.java.

37  {
38  addChild(new DefaultUserMenu(null, "Update summaries", null, menu -> {
39  UserSummaries.removeAttributes();
40  UserContents.reset();
41  Application.getApplication().sendRedirect("/user");
42  return true;
43  }, 999) {
44  @Override
45  public boolean isInRole() {
46  return true;
47  }
48  @Override
49  public Object getDetail() {
50  return null;
51  }
52  });
53  }
Here is the call graph for this function:

◆ isInRole()

boolean org.turro.elephant.user.menu.SessionUserMenu.isInRole ( )

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

Definition at line 56 of file SessionUserMenu.java.

56  {
57  return true;
58  }
Here is the caller graph for this function:

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