Class BaseClientSQLStore<V extends BaseClient>
- java.lang.Object
-
- edu.uiuc.ncsa.security.storage.sql.SQLDatabase
-
- edu.uiuc.ncsa.security.storage.sql.SQLStore<V>
-
- edu.uiuc.ncsa.security.storage.monitored.MonitoredSQLStore<V>
-
- org.oa4mp.delegation.server.storage.BaseClientSQLStore<V>
-
- All Implemented Interfaces:
BaseClientStore<V>
,edu.uiuc.ncsa.security.core.Store<V>
,edu.uiuc.ncsa.security.storage.MonitoredStoreInterface<V>
,Map<edu.uiuc.ncsa.security.core.Identifier,V>
public abstract class BaseClientSQLStore<V extends BaseClient> extends edu.uiuc.ncsa.security.storage.monitored.MonitoredSQLStore<V> implements BaseClientStore<V>
Created by Jeff Gaynor
on 8/6/21 at 2:44 PM
-
-
Constructor Summary
Constructors Constructor Description BaseClientSQLStore(edu.uiuc.ncsa.security.storage.sql.ConnectionPool connectionPool, edu.uiuc.ncsa.security.storage.sql.internals.Table table, javax.inject.Provider<V> idp, edu.uiuc.ncsa.security.storage.data.MapConverter converter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
createFilter(RuleFilter filter)
protected String
createUUCQueryNEW(UUCConfiguration uucConfiguration)
protected String
createUUCQueryOLD(UUCConfiguration uucConfiguration)
List<edu.uiuc.ncsa.security.core.Identifier>
getByApprover(String approver, ClientApprovalStore clientApprovalStore)
List<edu.uiuc.ncsa.security.core.Identifier>
getByField(String fieldName, String field, ClientApprovalStore clientApprovalStore)
List<edu.uiuc.ncsa.security.core.Identifier>
getByStatus(String status, ClientApprovalStore clientApprovalStore)
Get by status from the approval store.String
getCreationTSField()
protected BaseClientKeys
getKeys()
-
Methods inherited from class edu.uiuc.ncsa.security.storage.monitored.MonitoredSQLStore
addLastAccessedEventListener, doUpkeep, doUpkeep, fireLastAccessedEvent, gatherStats, get, getLastAccessedEventListeners, getMostRecent, getUpkeepConfiguration, getUuid, hasUpkeepConfiguration, isMonitorEnabled, lastAccessUpdate, setMonitorEnabled, setUpkeepConfiguration, updateHook
-
Methods inherited from class edu.uiuc.ncsa.security.storage.sql.SQLStore
checkColumns, checkTable, clear, containsKey, containsValue, crappySQLParser, crappySQLParser, create, depopulate, doRegisterStatement, entrySet, getAll, getDerbyMostRecent, getMapConverter, getMostRecentStatement, getTable, getXMLConverter, isEmpty, keySet, populate, put, putAll, register, remove, remove, save, search, search, search, setUpdateValues, size, size, size, toString, update, update, values
-
Methods inherited from class edu.uiuc.ncsa.security.storage.sql.SQLDatabase
destroyConnection, getConnection, getConnectionPool, releaseConnection, rsToMap, setConnectionPool
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
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
-
-
-
-
Constructor Detail
-
BaseClientSQLStore
public BaseClientSQLStore(edu.uiuc.ncsa.security.storage.sql.ConnectionPool connectionPool, edu.uiuc.ncsa.security.storage.sql.internals.Table table, javax.inject.Provider<V> idp, edu.uiuc.ncsa.security.storage.data.MapConverter converter)
-
-
Method Detail
-
getByStatus
public List<edu.uiuc.ncsa.security.core.Identifier> getByStatus(String status, ClientApprovalStore clientApprovalStore)
Get by status from the approval store. This uses a left join and should return the ids of elements with approvals that have the given status.- Specified by:
getByStatus
in interfaceBaseClientStore<V extends BaseClient>
- Parameters:
status
-clientApprovalStore
-- Returns:
-
getByApprover
public List<edu.uiuc.ncsa.security.core.Identifier> getByApprover(String approver, ClientApprovalStore clientApprovalStore)
- Specified by:
getByApprover
in interfaceBaseClientStore<V extends BaseClient>
-
getByField
public List<edu.uiuc.ncsa.security.core.Identifier> getByField(String fieldName, String field, ClientApprovalStore clientApprovalStore)
-
getCreationTSField
public String getCreationTSField()
- Specified by:
getCreationTSField
in classedu.uiuc.ncsa.security.storage.sql.SQLStore<V extends BaseClient>
-
createFilter
protected String createFilter(RuleFilter filter)
-
getKeys
protected BaseClientKeys getKeys()
- Overrides:
getKeys
in classedu.uiuc.ncsa.security.storage.monitored.MonitoredSQLStore<V extends BaseClient>
-
createUUCQueryNEW
protected String createUUCQueryNEW(UUCConfiguration uucConfiguration)
-
createUUCQueryOLD
protected String createUUCQueryOLD(UUCConfiguration uucConfiguration)
-
-