public class MemoryPermissionStore<V extends Permission> extends edu.uiuc.ncsa.security.storage.MemoryStore<V> implements PermissionsStore<V>
Created by Jeff Gaynor
on 10/10/16 at 4:18 PM
Modifier and Type | Class and Description |
---|---|
static class |
MemoryPermissionStore.IDTriple |
edu.uiuc.ncsa.security.storage.MemoryStore.MSInitializer
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
MemoryPermissionStore(IdentifiableProvider<V> identifiableProvider) |
Modifier and Type | Method and Description |
---|---|
protected void |
addToAdmins(V p) |
protected void |
addToClients(V p) |
void |
clear() |
PermissionList |
get(Identifier adminID,
Identifier clientID)
Retrieve a permission from the admin and client identifier.
|
List<Identifier> |
getAdmins(Identifier clientID)
A list of all admin ids for a given client.
|
int |
getClientCount(Identifier adminID) |
List<Identifier> |
getClients(Identifier adminID)
A list of all identifiers that a given admin can manage.
|
XMLConverter<V> |
getXMLConverter() |
boolean |
hasEntry(Identifier adminID,
Identifier clientID)
Returns whether or not there is an entry for this pair of identifiers.
|
V |
put(Identifier key,
V value2) |
V |
remove(Object key) |
protected void |
removeFromAdmins(V p)
Part of the contract for this store is that saving a permission with an updated ID (AC or client)
should remove the old value, which means we have to clean out stale entries from the clientMpa
and adminMap.
|
protected void |
removeFromClients(V p) |
create, getAll, getInitializer, realSave, register, save, search, update
clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, putAll, putIfAbsent, remove, replace, replace, replaceAll, size, values
equals, hashCode, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
create, getAll, register, save, search, update
compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, putAll, putIfAbsent, remove, replace, replace, replaceAll, size, values
public MemoryPermissionStore(IdentifiableProvider<V> identifiableProvider)
public List<Identifier> getAdmins(Identifier clientID)
PermissionsStore
getAdmins
in interface PermissionsStore<V extends Permission>
public List<Identifier> getClients(Identifier adminID)
PermissionsStore
getClients
in interface PermissionsStore<V extends Permission>
public int getClientCount(Identifier adminID)
getClientCount
in interface PermissionsStore<V extends Permission>
public PermissionList get(Identifier adminID, Identifier clientID)
PermissionsStore
get
in interface PermissionsStore<V extends Permission>
public boolean hasEntry(Identifier adminID, Identifier clientID)
PermissionsStore
hasEntry
in interface PermissionsStore<V extends Permission>
protected void addToClients(V p)
protected void addToAdmins(V p)
public void clear()
clear
in interface Map<Identifier,V extends Permission>
clear
in class HashMap<Identifier,V extends Permission>
protected void removeFromClients(V p)
protected void removeFromAdmins(V p)
p
- public V put(Identifier key, V value2)
put
in interface Map<Identifier,V extends Permission>
put
in class HashMap<Identifier,V extends Permission>
public V remove(Object key)
remove
in interface Map<Identifier,V extends Permission>
remove
in class HashMap<Identifier,V extends Permission>
public XMLConverter<V> getXMLConverter()
getXMLConverter
in interface Store<V extends Permission>
Copyright © 2019. All Rights Reserved.