| Package | Description |
|---|---|
| org.mentawai.action | |
| org.mentawai.authorization |
| Modifier and Type | Method and Description |
|---|---|
void |
BaseLoginAction.setUserGroup(Group group) |
static void |
BaseLoginAction.setUserGroup(Group group,
Context session) |
static void |
BaseLoginAction.setUserGroups(Context session,
Group... groups) |
void |
BaseLoginAction.setUserGroups(Group... groups) |
| Modifier and Type | Field and Description |
|---|---|
protected static Set<Group> |
AuthorizationManager.groups |
protected static Map<String,Group> |
AuthorizationManager.groupsMap |
protected static Map<Integer,Group> |
AuthorizationManager.groupsMapId |
| Modifier and Type | Method and Description |
|---|---|
Group |
Group.addPermission(Permission p) |
Group |
Group.addPermission(String permission) |
static Group |
AuthorizationManager.getGroup(int id) |
static Group |
AuthorizationManager.getGroup(String groupName) |
| Modifier and Type | Method and Description |
|---|---|
List<Group> |
DBAuthorizationGroup.loadGroupList(Connection conn)
Call this method if you need to get a list of groups and permissions (if exists)
The SQL statement that will be constructed:
|
| Modifier and Type | Method and Description |
|---|---|
static void |
AuthorizationManager.addGroup(Group g) |
static boolean |
AuthorizationManager.check(Group group,
String permission)
Check if the permission exists in the group.
|
static boolean |
AuthorizationManager.checkAny(Group group,
List<String> permissions)
check if the any permissions exists in the group
|
static boolean |
AuthorizationManager.hasGroup(Group g) |
static void |
AuthorizationManager.setUserGroup(Group g,
Context session) |
Copyright © 2015. All Rights Reserved.