diff options
Diffstat (limited to 'src/github')
-rw-r--r-- | src/github/daneren2005/dsub/domain/User.java | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/github/daneren2005/dsub/domain/User.java b/src/github/daneren2005/dsub/domain/User.java index ca124a58..052985b3 100644 --- a/src/github/daneren2005/dsub/domain/User.java +++ b/src/github/daneren2005/dsub/domain/User.java @@ -20,6 +20,33 @@ import java.util.ArrayList; import java.util.List;
public class User implements Serializable {
+ public static final String SCROBBLING = "scrobblingEnabled";
+ public static final String ADMIN = "adminRole";
+ public static final String SETTINGS = "settingsRole";
+ public static final String DOWNLOAD = "downloadRole";
+ public static final String UPLOAD = "uploadRole";
+ public static final String COVERART = "coverArtRole";
+ public static final String COMMENT = "commentRole";
+ public static final String PODCAST = "podcastRole";
+ public static final String STREAM = "streamRole";
+ public static final String JUKEBOX = "jukeboxRole";
+ public static final String SHARE = "shareRole";
+ public static final List<String> ROLES = new ArrayList<String>();
+
+ static {
+ ROLES.add(scrobbling);
+ ROLES.add(ADMIN);
+ ROLES.add(SETTINGS);
+ ROLES.add(DOWNLOAD);
+ ROLES.add(UPLOAD);
+ ROLES.add(COVERART);
+ ROLES.add(COMMENT);
+ ROLES.add(PODCAST);
+ ROLES.add(STREAM);
+ ROLES.add(JUKEBOX);
+ ROLES.add(SHARE);
+ }
+
private String username;
private String password;
private String email;
|