Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Riina Antikainen
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 68240770
authored
Aug 31, 2013
by
Petri Jarvisalo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
menu and login change
1 parent
24efb803
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletions
code/MoyaBeans/ejbModule/fi/codecrew/moya/beans/MenuBean.java
code/MoyaWeb/WebContent/resources/cditools/loginLogout.xhtml
code/MoyaBeans/ejbModule/fi/codecrew/moya/beans/MenuBean.java
View file @
6824077
...
...
@@ -116,7 +116,8 @@ public class MenuBean implements MenuBeanLocal {
MenuNavigation
userprofile
=
usermenu
.
addPage
(
null
,
null
);
userprofile
.
setKey
(
"topnavi.profile"
);
userprofile
.
addPage
(
menuitemfacade
.
findOrCreate
(
"/user/edit"
),
UserPermission
.
MODIFY
);
userprofile
.
addPage
(
menuitemfacade
.
findOrCreate
(
"/user/edit"
),
UserPermission
.
MODIFY
);
userprofile
.
addPage
(
menuitemfacade
.
findOrCreate
(
"/user/changePassword"
),
UserPermission
.
VIEW_SELF
);
userprofile
.
addPage
(
menuitemfacade
.
findOrCreate
(
"/auth/logout"
),
UserPermission
.
LOGOUT
);
/*
...
...
@@ -195,6 +196,12 @@ public class MenuBean implements MenuBeanLocal {
adminPlaces
.
addPage
(
menuitemfacade
.
findOrCreate
(
"/place/adminPlacemap"
),
UserPermission
.
VIEW_ALL
);
// adminPlaces.addPage(menuitemfacade.findOrCreate("/place/adminGroups"), UserPermission.VIEW_ALL); // todo: make new view for managing
MenuNavigation
mapnavi
=
adminPlaces
.
addPage
(
null
,
null
);
mapnavi
.
setKey
(
"topnavi.maps"
);
mapnavi
.
addPage
(
menuitemfacade
.
findOrCreate
(
"/map/list"
),
MapPermission
.
MANAGE_MAPS
);
mapnavi
.
addPage
(
menuitemfacade
.
findOrCreate
(
"/map/create"
),
MapPermission
.
MANAGE_MAPS
);
mapnavi
.
addPage
(
menuitemfacade
.
findOrCreate
(
"/map/edit"
),
null
).
setVisible
(
false
);
// event
MenuNavigation
adminevent
=
adminmenu
.
addPage
(
null
,
null
);
...
...
code/MoyaWeb/WebContent/resources/cditools/loginLogout.xhtml
View file @
6824077
...
...
@@ -17,6 +17,10 @@
</c:when>
<c:otherwise>
<login:login
isOneliner=
"true"
/>
<br/>
<h:link
value=
"#{i18n['submenu.user.create']}"
outcome=
"/user/create"
/>
<br/>
<h:link
value=
"#{i18n['submenu.auth.sendResetMail']}"
outcome=
"/auth/sendResetMail"
/>
</c:otherwise>
</c:choose>
</composite:implementation>
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment