From 7cfa7eb26192a9ef2789c2aa16220f306a6259cd Mon Sep 17 00:00:00 2001 From: daneren2005 Date: Thu, 12 Jun 2014 16:50:43 -0700 Subject: Add possible user settings constants --- src/github/daneren2005/dsub/domain/User.java | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'src/github') 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 ROLES = new ArrayList(); + + 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; -- cgit v1.2.3