Class SQLClientApprovalStore
- java.lang.Object
-
- edu.uiuc.ncsa.security.storage.sql.SQLDatabase
-
- edu.uiuc.ncsa.security.storage.sql.SQLStore<ClientApproval>
-
- org.oa4mp.server.api.sql.storage.SQLClientApprovalStore
-
- All Implemented Interfaces:
ClientApprovalStore<ClientApproval>
,edu.uiuc.ncsa.security.core.Store<ClientApproval>
,Map<edu.uiuc.ncsa.security.core.Identifier,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 String
DEFAULT_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 String
getCreationTSField()
int
getPendingCount()
int
getUnapprovedCount()
Get the number of approvals that are as yet unapproved.boolean
isApproved(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, create, depopulate, entrySet, get, getAll, getDerbyMostRecent, getMapConverter, getMostRecent, getMostRecentStatement, getTable, getXMLConverter, isEmpty, keySet, populate, put, putAll, register, remove, remove, save, search, search, search, size, size, size, toString, 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 edu.uiuc.ncsa.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, keySet, 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:
getCreationTSField
in classedu.uiuc.ncsa.security.storage.sql.SQLStore<ClientApproval>
-
isApproved
public boolean isApproved(edu.uiuc.ncsa.security.core.Identifier identifier)
Description copied from interface:ClientApprovalStore
Returns 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:
isApproved
in interfaceClientApprovalStore<ClientApproval>
- Returns:
-
getUnapprovedCount
public int getUnapprovedCount()
Description copied from interface:ClientApprovalStore
Get the number of approvals that are as yet unapproved.- Specified by:
getUnapprovedCount
in interfaceClientApprovalStore<ClientApproval>
- Returns:
-
getPendingCount
public int getPendingCount()
- Specified by:
getPendingCount
in interfaceClientApprovalStore<ClientApproval>
-
statusSearch
public List<edu.uiuc.ncsa.security.core.Identifier> statusSearch(String status)
- Specified by:
statusSearch
in interfaceClientApprovalStore<ClientApproval>
-
-