@Entity public class UserGroupMapping extends Object implements Serializable
UserGroup
and the context-aware security
model where a user may be granted full access on a given object and not be allowed
to see another one. This class just defines static groups which will lead to one of
the 3 global roles supported by the application: "users", "admin" and "guest".
All regular users belong to, and only to, the "users" group.
"admin" is for the superuser account who can perform administration tasks.
"guest" role is for non logged users who access items that have been published.Modifier and Type | Field and Description |
---|---|
static String |
ADMIN_ROLE_ID |
static String |
GUEST_ROLE_ID |
static String |
REGULAR_USER_ROLE_ID |
Constructor and Description |
---|
UserGroupMapping() |
UserGroupMapping(String pLogin) |
UserGroupMapping(String pLogin,
String pRole) |
Modifier and Type | Method and Description |
---|---|
String |
getGroupName() |
String |
getLogin() |
void |
setGroupName(String groupName) |
void |
setLogin(String login) |
public static final String REGULAR_USER_ROLE_ID
public static final String ADMIN_ROLE_ID
public static final String GUEST_ROLE_ID
public UserGroupMapping()
public UserGroupMapping(String pLogin)
Copyright © 2017 DocDoku. All rights reserved.