Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Antti Väyrynen
/
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 0b441544
authored
May 09, 2010
by
Juho Juopperi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
permissions
1 parent
b9e32f32
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
code/LanBortalBeansClient/ejbModule/fi/insomnia/bortal/enums/Permission.java
code/LanBortalBeansClient/ejbModule/fi/insomnia/bortal/enums/Permission.java
View file @
0b44154
...
@@ -8,13 +8,15 @@ import org.slf4j.Logger;
...
@@ -8,13 +8,15 @@ import org.slf4j.Logger;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
/**
/**
*
*
* @author tuukka
* @author tuukka
*/
*/
public
enum
Permission
{
public
enum
Permission
{
PERMISSION
(
"Description"
),
PERMISSION
(
"Description"
),
LOGIN
(
"User can see loginbutton. (only defaultuser should have permission to that one)"
);
LOGIN
(
"User can see loginbutton. (only defaultuser should have permission to that one)"
),
userManagement
;
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
Permission
.
class
);
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
Permission
.
class
);
private
String
description
;
private
String
description
;
...
@@ -22,7 +24,7 @@ public enum Permission {
...
@@ -22,7 +24,7 @@ public enum Permission {
try
{
try
{
return
valueOf
(
name
);
return
valueOf
(
name
);
}
catch
(
IllegalArgumentException
x
)
{
}
catch
(
IllegalArgumentException
x
)
{
logger
.
error
(
"There is no permission named: "
+
name
);
logger
.
error
(
"There is no permission named: "
+
name
);
throw
x
;
throw
x
;
}
}
}
}
...
@@ -31,6 +33,9 @@ public enum Permission {
...
@@ -31,6 +33,9 @@ public enum Permission {
this
.
description
=
description
;
this
.
description
=
description
;
}
}
Permission
()
{
}
/**
/**
* @return the description
* @return the description
*/
*/
...
...
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