Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Max Mecklin
/
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 7fc5ab1d
authored
Oct 26, 2012
by
Riku Silvola
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of codecrew.fi:bortal
2 parents
d1d18d22
393763a3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
10 deletions
code/LanBortalBeans/ejbModule/fi/insomnia/bortal/beans/RoleBean.java
code/LanBortalBeansClient/ejbModule/fi/insomnia/bortal/beans/RoleBeanLocal.java
code/LanBortalWeb/src/fi/insomnia/bortal/web/cdiview/user/UserView.java
code/LanBortalBeans/ejbModule/fi/insomnia/bortal/beans/RoleBean.java
View file @
7fc5ab1
...
...
@@ -39,10 +39,10 @@ public class RoleBean implements RoleBeanLocal {
// private static final String PUBLIC_ROLE_NAME =
// BeanRole.ANONYMOUS.toString();
@SuppressWarnings
(
"unused"
)
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
RoleBean
.
class
);
@Resource
private
SessionContext
sc
;
@EJB
...
...
@@ -172,12 +172,6 @@ public class RoleBean implements RoleBeanLocal {
}
@Override
@RolesAllowed
(
UserPermission
.
S_READ_ROLES
)
public
List
<
Role
>
getRoles
(
EventUser
user
)
{
return
roleFacade
.
findForUser
(
user
);
}
@Override
@RolesAllowed
(
UserPermission
.
S_WRITE_ROLES
)
public
void
saveRoles
(
EventUser
usr
,
List
<
Role
>
usersRoles
)
{
...
...
code/LanBortalBeansClient/ejbModule/fi/insomnia/bortal/beans/RoleBeanLocal.java
View file @
7fc5ab1
...
...
@@ -34,6 +34,4 @@ public interface RoleBeanLocal {
public
void
saveRoles
(
EventUser
usr
,
List
<
Role
>
usersRoles
);
List
<
Role
>
getRoles
(
EventUser
user
);
}
code/LanBortalWeb/src/fi/insomnia/bortal/web/cdiview/user/UserView.java
View file @
7fc5ab1
...
...
@@ -130,6 +130,7 @@ public class UserView extends GenericCDIView {
usersRoles
=
rolebean
.
getRoles
(
getSelectedUser
());
}
return
usersRoles
;
}
public
String
crop
()
...
...
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