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()booleanisApproved(edu.uiuc.ncsa.security.core.Identifier identifier)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, remove, remove, removeByID, save, search, search, search, search, setUpdateValues, size, size, size, toString, update, 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 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, 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:
getCreationTSFieldin classedu.uiuc.ncsa.security.storage.sql.SQLStore<ClientApproval>
-
isApproved
public boolean isApproved(edu.uiuc.ncsa.security.core.Identifier identifier)
- Specified by:
isApprovedin interfaceClientApprovalStore<ClientApproval>
-
getUnapprovedCount
public int getUnapprovedCount()
- Specified by:
getUnapprovedCountin interfaceClientApprovalStore<ClientApproval>
-
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>
-
-