Package org.oa4mp.server.api.storage.sql
Class SQLClientApprovalStore
- java.lang.Object
-
- edu.uiuc.ncsa.security.storage.sql.SQLDatabase
-
- edu.uiuc.ncsa.security.storage.sql.SQLStore<ClientApproval>
-
- org.oa4mp.server.api.storage.sql.SQLClientApprovalStore
-
- All Implemented Interfaces:
edu.uiuc.ncsa.security.core.Store<ClientApproval>,Map<edu.uiuc.ncsa.security.core.Identifier,ClientApproval>,ClientApprovalStore<ClientApproval>
public class SQLClientApprovalStore extends edu.uiuc.ncsa.security.storage.sql.SQLStore<ClientApproval> implements ClientApprovalStore<ClientApproval>
Created by Jeff Gaynor
on May 26, 2011 at 9:39:26 AM
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_TABLENAME
-
Constructor Summary
Constructors Constructor Description SQLClientApprovalStore(edu.uiuc.ncsa.security.storage.sql.ConnectionPool connectionPool, edu.uiuc.ncsa.security.storage.sql.internals.Table table, edu.uiuc.ncsa.security.core.util.IdentifiableProviderImpl<ClientApproval> identifiableProvider, edu.uiuc.ncsa.security.storage.data.MapConverter converter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCreationTSField()intgetPendingCount()intgetUnapprovedCount()Get the number of approvals that are as yet unapproved.booleanisApproved(edu.uiuc.ncsa.security.core.Identifier identifier)Returns true if the client with the given identifier has been approved, false otherwise.List<edu.uiuc.ncsa.security.core.Identifier>statusSearch(String status)-
Methods inherited from class edu.uiuc.ncsa.security.storage.sql.SQLStore
checkColumns, checkTable, clear, containsKey, containsValue, crappySQLParser, crappySQLParser, create, depopulate, doRegisterStatement, entrySet, get, getAll, getDerbyMostRecent, getMapConverter, getMostRecent, getMostRecentStatement, getTable, getXMLConverter, isEmpty, keySet, populate, put, putAll, register, register, remove, remove, removeByID, save, save, search, search, search, search, setUpdateValues, size, size, size, toString, update, update, update, update, updateRS, 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 org.oa4mp.delegation.server.storage.ClientApprovalStore
getMapConverter
-
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
-
-
-
Field Detail
-
DEFAULT_TABLENAME
public static final String DEFAULT_TABLENAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SQLClientApprovalStore
public SQLClientApprovalStore(edu.uiuc.ncsa.security.storage.sql.ConnectionPool connectionPool, edu.uiuc.ncsa.security.storage.sql.internals.Table table, edu.uiuc.ncsa.security.core.util.IdentifiableProviderImpl<ClientApproval> identifiableProvider, edu.uiuc.ncsa.security.storage.data.MapConverter converter)
-
-
Method Detail
-
getCreationTSField
public String getCreationTSField()
- Specified by:
getCreationTSFieldin classedu.uiuc.ncsa.security.storage.sql.SQLStore<ClientApproval>
-
isApproved
public boolean isApproved(edu.uiuc.ncsa.security.core.Identifier identifier)
Description copied from interface:ClientApprovalStoreReturns true if the client with the given identifier has been approved, false otherwise. Not that this returns false even in the case that there is no such client.- Specified by:
isApprovedin interfaceClientApprovalStore<ClientApproval>- Returns:
-
getUnapprovedCount
public int getUnapprovedCount()
Description copied from interface:ClientApprovalStoreGet the number of approvals that are as yet unapproved.- Specified by:
getUnapprovedCountin interfaceClientApprovalStore<ClientApproval>- Returns:
-
getPendingCount
public int getPendingCount()
- Specified by:
getPendingCountin interfaceClientApprovalStore<ClientApproval>
-
statusSearch
public List<edu.uiuc.ncsa.security.core.Identifier> statusSearch(String status)
- Specified by:
statusSearchin interfaceClientApprovalStore<ClientApproval>
-
-