public class PermissionFileStore<V extends Permission> extends edu.uiuc.ncsa.security.storage.FileStore<V> implements PermissionsStore<V>
Created by Jeff Gaynor
on 10/11/16 at 1:57 PM
Constructor and Description |
---|
PermissionFileStore(File storeDirectory,
File indexDirectory,
IdentifiableProvider<V> identifiableProvider,
edu.uiuc.ncsa.security.storage.data.MapConverter<V> converter,
boolean removeEmptyFiles) |
PermissionFileStore(File directory,
IdentifiableProvider<V> idp,
edu.uiuc.ncsa.security.storage.data.MapConverter<V> cp,
boolean removeEmptyFiles) |
Modifier and Type | Method and Description |
---|---|
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.
|
boolean |
hasEntry(Identifier adminID,
Identifier clientID)
Returns whether or not there is an entry for this pair of identifiers.
|
checkPermissions, clear, containsKey, containsValue, create, createIndexEntry, delete, doSetup, entrySet, get, getAll, getIndexEntry, getItemFile, getItemFile, getXMLConverter, keySet, loadByIdentifier, loadFile, loadFromIndex, putAll, realRemove, realSave, register, remove, removeIndexEntry, save, search, size, toString, update, values
createIndexEntry, getCreatedItems, hashString, isEmpty, loadStream, put, put
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
create, getAll, getXMLConverter, register, save, search, update
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
public PermissionFileStore(File directory, IdentifiableProvider<V> idp, edu.uiuc.ncsa.security.storage.data.MapConverter<V> cp, boolean removeEmptyFiles)
public PermissionFileStore(File storeDirectory, File indexDirectory, IdentifiableProvider<V> identifiableProvider, edu.uiuc.ncsa.security.storage.data.MapConverter<V> converter, boolean removeEmptyFiles)
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>
Copyright © 2019. All Rights Reserved.