Created
May 7, 2012 19:19
-
-
Save krisskross/2629803 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Config(desc = "An individual (or application program) identity") | |
public class User { | |
@Id(desc = "username") | |
private String username; | |
@Config(desc = "password") | |
private String password; | |
@Config(desc = "Roles assigned to this user") | |
private Set<Role> roles = new HashSet<Role>(); | |
} | |
@Config(desc = "Role for the permission to access a set of resources") | |
public class Role { | |
@Config(desc = "Permissions to access a set of resources") | |
private EnumSet<Privilege> privileges = EnumSet.noneOf(Privilege.class); | |
@Config(desc = "Roles assigned to this role") | |
private Set<Role> roles = new HashSet<Role>(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment