Interface PermissionsStore<V extends Permission>
-
- All Superinterfaces:
Map<edu.uiuc.ncsa.security.core.Identifier,V>
,edu.uiuc.ncsa.security.core.Store<V>
- All Known Implementing Classes:
PermissionFileStore
,PermissionMemoryStore
,SQLPermissionStore
public interface PermissionsStore<V extends Permission> extends edu.uiuc.ncsa.security.core.Store<V>
Created by Jeff Gaynor
on 10/10/16 at 4:16 PM
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PermissionList
get(edu.uiuc.ncsa.security.core.Identifier adminID, edu.uiuc.ncsa.security.core.Identifier clientID)
Retrieve a permission from the admin and client identifier.List<edu.uiuc.ncsa.security.core.Identifier>
getAdmins(edu.uiuc.ncsa.security.core.Identifier clientID)
A list of all admin ids for a given client.int
getClientCount(edu.uiuc.ncsa.security.core.Identifier adminID)
List<edu.uiuc.ncsa.security.core.Identifier>
getClients(edu.uiuc.ncsa.security.core.Identifier adminID)
A list of all identifiers that a given admin can manage.Permission
getErsatzChain(edu.uiuc.ncsa.security.core.Identifier adminID, edu.uiuc.ncsa.security.core.Identifier clientID, edu.uiuc.ncsa.security.core.Identifier ersatzID)
Get the specific permission with the chain starting with clientID and ending with ersatzID.PermissionList
getErsatzChains(edu.uiuc.ncsa.security.core.Identifier adminID, edu.uiuc.ncsa.security.core.Identifier clientID)
Returns the chain of ersatz clients for a given admin and provisioning client.edu.uiuc.ncsa.security.storage.data.MapConverter
getMapConverter()
PermissionList
getProvisioners(edu.uiuc.ncsa.security.core.Identifier adminID, edu.uiuc.ncsa.security.core.Identifier ersatzID)
boolean
hasEntry(edu.uiuc.ncsa.security.core.Identifier adminID, edu.uiuc.ncsa.security.core.Identifier clientID)
Returns whether or not there is an entry for this pair of identifiers.-
Methods inherited from interface java.util.Map
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
-
-
-
-
Method Detail
-
getClients
List<edu.uiuc.ncsa.security.core.Identifier> getClients(edu.uiuc.ncsa.security.core.Identifier adminID)
A list of all identifiers that a given admin can manage.- Parameters:
adminID
-- Returns:
-
getAdmins
List<edu.uiuc.ncsa.security.core.Identifier> getAdmins(edu.uiuc.ncsa.security.core.Identifier clientID)
A list of all admin ids for a given client.- Parameters:
clientID
-- Returns:
-
get
PermissionList get(edu.uiuc.ncsa.security.core.Identifier adminID, edu.uiuc.ncsa.security.core.Identifier clientID)
Retrieve a permission from the admin and client identifier.- Parameters:
adminID
-clientID
-- Returns:
-
getErsatzChains
PermissionList getErsatzChains(edu.uiuc.ncsa.security.core.Identifier adminID, edu.uiuc.ncsa.security.core.Identifier clientID)
Returns the chain of ersatz clients for a given admin and provisioning client. Access the list usingPermission.getErsatzChain()
.- Parameters:
adminID
-clientID
-- Returns:
-
getProvisioners
PermissionList getProvisioners(edu.uiuc.ncsa.security.core.Identifier adminID, edu.uiuc.ncsa.security.core.Identifier ersatzID)
-
getErsatzChain
Permission getErsatzChain(edu.uiuc.ncsa.security.core.Identifier adminID, edu.uiuc.ncsa.security.core.Identifier clientID, edu.uiuc.ncsa.security.core.Identifier ersatzID)
Get the specific permission with the chain starting with clientID and ending with ersatzID.- Parameters:
adminID
-clientID
-ersatzID
-- Returns:
-
hasEntry
boolean hasEntry(edu.uiuc.ncsa.security.core.Identifier adminID, edu.uiuc.ncsa.security.core.Identifier clientID)
Returns whether or not there is an entry for this pair of identifiers. There is at most one permission for any such pair- Parameters:
adminID
-clientID
-- Returns:
-
getClientCount
int getClientCount(edu.uiuc.ncsa.security.core.Identifier adminID)
-
getMapConverter
edu.uiuc.ncsa.security.storage.data.MapConverter getMapConverter()
-
-