Subversion Repository Public Repository

litesoft

Diff Revisions 947 vs 948 for /trunk/Java/DATT/src/org/litesoft/datt/client/support/Role.java

Diff revisions: vs.
  @@ -3,8 +3,7 @@
3 3 import org.litesoft.commonfoundation.typeutils.*;
4 4 import org.litesoft.core.util.*;
5 5
6 - public enum Role implements BitAccessor
7 - {
6 + public enum Role implements BitAccessor {
8 7 EndUser,
9 8 EndUserManager,
10 9 Developer,
  @@ -16,18 +15,15 @@
16 15 private int mBit = Permissions.BIT.next();
17 16
18 17 @Override
19 - public int getBit()
20 - {
18 + public int getBit() {
21 19 return mBit;
22 20 }
23 21
24 - public static int getBitFor( String pRole )
25 - {
22 + public static int getBitFor( String pRole ) {
26 23 return Objects.deNull( valueFor( pRole ), Permissions.BIT ).getBit();
27 24 }
28 25
29 - public static Role valueFor( String pRole )
30 - {
26 + public static Role valueFor( String pRole ) {
31 27 return Enums.fromString( Role.class, pRole );
32 28 }
33 29 }