Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Codecrew
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
30
Merge Requests
2
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 3d78e2c5
authored
Mar 21, 2010
by
Juho Juopperi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
getDefaultUser in SessionHandlerBean
1 parent
f51d8f3e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
code/LanBortalBeans/ejbModule/fi/insomnia/bortal/beans/SessionHandlerBean.java
code/LanBortalBeans/ejbModule/fi/insomnia/bortal/beans/SessionHandlerBean.java
View file @
3d78e2c
...
@@ -38,7 +38,6 @@ public class SessionHandlerBean implements SessionHandlerBeanLocal {
...
@@ -38,7 +38,6 @@ public class SessionHandlerBean implements SessionHandlerBeanLocal {
// TODO Auto-generated constructor stub
// TODO Auto-generated constructor stub
}
}
@Override
@Override
public
boolean
hasPermission
(
String
target
,
User
user
,
RolePermission
permission
)
{
public
boolean
hasPermission
(
String
target
,
User
user
,
RolePermission
permission
)
{
...
@@ -97,14 +96,14 @@ public class SessionHandlerBean implements SessionHandlerBeanLocal {
...
@@ -97,14 +96,14 @@ public class SessionHandlerBean implements SessionHandlerBeanLocal {
public
User
tryLogin
(
String
username
,
String
password
)
{
public
User
tryLogin
(
String
username
,
String
password
)
{
User
user
=
userfacade
.
findByLogin
(
username
.
trim
());
User
user
=
userfacade
.
findByLogin
(
username
.
trim
());
if
(
user
!=
null
&&
user
.
checkPassword
(
password
))
{
if
(
user
!=
null
&&
user
.
checkPassword
(
password
))
{
return
user
;
return
user
;
}
}
return
null
;
return
null
;
}
}
public
User
getDefaultUser
()
{
public
User
getDefaultUser
()
{
throw
new
UnsupportedOperationException
(
"Not supported yet."
);
return
userfacade
.
getDefaultUser
(
);
}
}
}
}
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