private static class TableAuthManager.PermissionCache<T extends Permission> extends Object
Modifier and Type | Field and Description |
---|---|
private com.google.common.collect.ListMultimap<String,T> |
groupCache
Cache of group permissions
|
private com.google.common.collect.ListMultimap<String,T> |
userCache
Cache of user permissions
|
Modifier | Constructor and Description |
---|---|
private |
TableAuthManager.PermissionCache() |
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ListMultimap<String,T> |
getAllPermissions()
Returns a combined map of user and group permissions, with group names prefixed by
AuthUtil.GROUP_PREFIX . |
List<T> |
getGroup(String group) |
List<T> |
getUser(String user) |
void |
putGroup(String group,
T perm) |
void |
putUser(String user,
T perm) |
List<T> |
replaceGroup(String group,
Iterable<? extends T> perms) |
List<T> |
replaceUser(String user,
Iterable<? extends T> perms) |
private com.google.common.collect.ListMultimap<String,T extends Permission> userCache
private com.google.common.collect.ListMultimap<String,T extends Permission> groupCache
public com.google.common.collect.ListMultimap<String,T> getAllPermissions()
AuthUtil.GROUP_PREFIX
.Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.