◆ UserMenu()
org.turro.elephant.menu.UserMenu.UserMenu |
( |
IConstructor |
constructor | ) |
|
◆ executeAction()
static void org.turro.elephant.menu.UserMenu.executeAction |
( |
String |
idAction | ) |
|
|
static |
Definition at line 93 of file menu/UserMenu.java.
94 if(_userActions !=
null) {
95 for(IUserAction userAction : _userActions) {
96 if(idAction.equals(userAction.getId())) {
102 if(_profileActions !=
null) {
103 for(IUserAction userAction : _profileActions) {
104 if(idAction.equals(userAction.getId())) {
105 userAction.execute();
◆ getActions()
Collection<IUserAction> org.turro.elephant.menu.UserMenu.getActions |
( |
| ) |
|
Definition at line 50 of file menu/UserMenu.java.
51 if(constructor.
isInRole(
"webmenu:out")) {
52 return noActions(constructor);
54 return userActions(constructor);
boolean isInRole(String role)
◆ getAvatar()
String org.turro.elephant.menu.UserMenu.getAvatar |
( |
| ) |
|
Definition at line 77 of file menu/UserMenu.java.
80 File favatar =
new File(ElephantContext.getRealPath(
"/_internal/files/contact/" + contact.getId() +
"/profile/face.png"));
81 if(favatar.exists()) {
82 return ElephantContext.getRootWebPath() +
"/_internal/files/contact/" + contact.getId() +
"/profile/face.png";
◆ getProfileActions()
Collection<IUserAction> org.turro.elephant.menu.UserMenu.getProfileActions |
( |
| ) |
|
◆ getUser()
IContact org.turro.elephant.menu.UserMenu.getUser |
( |
| ) |
|
◆ isAllowed()
boolean org.turro.elephant.menu.UserMenu.isAllowed |
( |
IUserAction |
action | ) |
|
The documentation for this class was generated from the following file: