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 ee59250a
authored
Mar 20, 2010
by
Tuukka Kivilahti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playing
1 parent
e8d83881
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
10 deletions
code/LanBortalWeb/src/fi/insomnia/bortal/handler/SessionHandler.java
code/LanBortalWeb/src/fi/insomnia/bortal/view/UserView.java
code/LanBortalWeb/src/fi/insomnia/bortal/handler/SessionHandler.java
0 → 100644
View file @
ee59250
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package
fi
.
insomnia
.
bortal
.
handler
;
import
javax.enterprise.context.SessionScoped
;
import
javax.faces.bean.ManagedBean
;
/**
*
* @author tuukka
*/
@ManagedBean
(
name
=
"SessionHandler"
)
@SessionScoped
public
class
SessionHandler
{
/** Creates a new instance of SessionHandler */
public
SessionHandler
()
{
}
private
boolean
hasPermission
(
String
target
)
{
throw
new
UnsupportedOperationException
(
"Not yet implemented"
);
}
}
code/LanBortalWeb/src/fi/insomnia/bortal/view/UserView.java
View file @
ee59250
...
@@ -19,15 +19,10 @@ public class UserView {
...
@@ -19,15 +19,10 @@ public class UserView {
@EJB
@EJB
private
UserBeanLocal
userBean
;
private
UserBeanLocal
userBean
;
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
UserView
.
class
);
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
UserView
.
class
);
private
User
user
;
private
User
user
;
private
ListDataModel
<
User
>
items
;
private
ListDataModel
<
User
>
items
;
private
String
nick
;
private
String
nick
;
private
String
password
;
private
String
password
;
public
String
edit
()
{
public
String
edit
()
{
...
@@ -35,9 +30,7 @@ public class UserView {
...
@@ -35,9 +30,7 @@ public class UserView {
return
"edit"
;
return
"edit"
;
}
}
public
String
getLocale
()
{
public
String
getLocale
()
{
return
"en_IN_XII"
;
return
"en_IN_XII"
;
}
}
...
@@ -72,7 +65,6 @@ public class UserView {
...
@@ -72,7 +65,6 @@ public class UserView {
}
}
// Getters and setters...
// Getters and setters...
public
String
getNick
()
{
public
String
getNick
()
{
return
nick
;
return
nick
;
}
}
...
@@ -96,5 +88,4 @@ public class UserView {
...
@@ -96,5 +88,4 @@ public class UserView {
public
User
getUser
()
{
public
User
getUser
()
{
return
user
;
return
user
;
}
}
}
}
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