- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 40 of file UserMenus.java.
◆ executeMenu()
static Object org.turro.elephant.user.menu.UserMenus.executeMenu |
( |
String |
idMenu | ) |
|
|
static |
Definition at line 52 of file UserMenus.java.
53 return doExecuteMenu(userMenus(), idMenu);
◆ getActive()
static String org.turro.elephant.user.menu.UserMenus.getActive |
( |
| ) |
|
|
static |
Definition at line 111 of file UserMenus.java.
112 return (String) Application.getApplication().getConstructor().getSessionAttribute(
"currPath_usrmx");
◆ getAttribute()
static Object org.turro.elephant.user.menu.UserMenus.getAttribute |
( |
String |
attribute | ) |
|
|
static |
Definition at line 117 of file UserMenus.java.
118 return Application.getApplication().getConstructor().findAttribute(
"um_" + attribute);
◆ getAttributes()
static Map<String, Object> org.turro.elephant.user.menu.UserMenus.getAttributes |
( |
| ) |
|
|
static |
Definition at line 125 of file UserMenus.java.
126 return Application.getApplication().getConstructor().getSessionAttributeMap(
"um_");
◆ getSessionMenu()
static IUserMenu org.turro.elephant.user.menu.UserMenus.getSessionMenu |
( |
| ) |
|
|
static |
Definition at line 88 of file UserMenus.java.
89 for(IUserMenu um : userMenus()) {
90 if(um instanceof SessionUserMenu) {
◆ getSettingsMenu()
static IUserMenu org.turro.elephant.user.menu.UserMenus.getSettingsMenu |
( |
| ) |
|
|
static |
Definition at line 97 of file UserMenus.java.
98 for(IUserMenu um : userMenus()) {
99 if(um instanceof SettingsUserMenu) {
◆ getUserMenu()
Definition at line 42 of file UserMenus.java.
43 if(constructor.getUser() !=
null) {
45 UserSummaries.initSummaries(constructor);
48 return Collections.EMPTY_SET;
◆ isInRole()
static boolean org.turro.elephant.user.menu.UserMenus.isInRole |
( |
String |
path | ) |
|
|
static |
Definition at line 56 of file UserMenus.java.
57 if(!Strings.isBlank(path) && path.startsWith(
"/user/")) {
58 IUserMenu userMenu = getUserMenuByPath(userMenus(), Path.reduce(path, 2));
59 return userMenu !=
null ? userMenu.isInRole() :
true;
◆ removeAttributes()
static void org.turro.elephant.user.menu.UserMenus.removeAttributes |
( |
| ) |
|
|
static |
Definition at line 129 of file UserMenus.java.
131 Application.getApplication().getConstructor().removeSessionAttribute(
"um_" + key);
◆ setActive()
static void org.turro.elephant.user.menu.UserMenus.setActive |
( |
| ) |
|
|
static |
Definition at line 106 of file UserMenus.java.
107 Application.getApplication().getConstructor().setSessionAttribute(
"currPath_usrmx",
108 Application.getApplication().getConstructor().getCurrentContext().getPath());
◆ setAttribute()
static void org.turro.elephant.user.menu.UserMenus.setAttribute |
( |
String |
attribute, |
|
|
Object |
value |
|
) |
| |
|
static |
Definition at line 121 of file UserMenus.java.
122 Application.getApplication().getConstructor().setSessionAttribute(
"um_" + attribute, value);
The documentation for this class was generated from the following file: