aboutsummaryrefslogtreecommitdiff
path: root/src/github
diff options
context:
space:
mode:
authordaneren2005 <daneren2005@gmail.com>2014-06-12 16:50:43 -0700
committerdaneren2005 <daneren2005@gmail.com>2014-06-12 16:50:43 -0700
commit7cfa7eb26192a9ef2789c2aa16220f306a6259cd (patch)
treefc1cc77a19c92ef0e3d1656d370ca54c46a0e6c2 /src/github
parent00764198c70fe3629cbe013727a987cd501d26ee (diff)
downloaddsub-7cfa7eb26192a9ef2789c2aa16220f306a6259cd.tar.gz
dsub-7cfa7eb26192a9ef2789c2aa16220f306a6259cd.tar.bz2
dsub-7cfa7eb26192a9ef2789c2aa16220f306a6259cd.zip
Add possible user settings constants
Diffstat (limited to 'src/github')
-rw-r--r--src/github/daneren2005/dsub/domain/User.java27
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;