Class CILSQLArchivedUserStore
- java.lang.Object
-
- edu.uiuc.ncsa.security.storage.sql.SQLDatabase
-
- edu.uiuc.ncsa.security.storage.sql.SQLStore<ArchivedUser>
-
- org.cilogon.oauth2.servlet.storage.archiveUser.CILSQLArchivedUserStore
-
- All Implemented Interfaces:
edu.uiuc.ncsa.security.core.Store<ArchivedUser>
,Map<edu.uiuc.ncsa.security.core.Identifier,ArchivedUser>
,ArchivedUserStore
public class CILSQLArchivedUserStore extends edu.uiuc.ncsa.security.storage.sql.SQLStore<ArchivedUser> implements ArchivedUserStore
Created by Jeff Gaynor
on Nov 2, 2010 at 9:48:35 AM
-
-
Constructor Summary
Constructors Constructor Description CILSQLArchivedUserStore(edu.uiuc.ncsa.security.storage.sql.ConnectionPool connectionPool, edu.uiuc.ncsa.security.storage.sql.internals.Table table, edu.uiuc.ncsa.security.core.util.IdentifiableProviderImpl<ArchivedUser> aup, edu.uiuc.ncsa.security.storage.data.MapConverter converter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description edu.uiuc.ncsa.security.core.Identifier
archiveUser(edu.uiuc.ncsa.security.core.Identifier userID)
Add a User to the archive.List<ArchivedUser>
getAllByUserId(edu.uiuc.ncsa.security.core.Identifier userId)
Get the list of all archived users for a given user (as opposed to archive) id.ArchivedUsersTable
getArchivedUserTable()
protected ArchivedUserProvider
getAUP()
String
getCreationTSField()
ArchivedUser
getLastArchivedUser(edu.uiuc.ncsa.security.core.Identifier userid)
Convenience method.-
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, 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
-
CILSQLArchivedUserStore
public CILSQLArchivedUserStore(edu.uiuc.ncsa.security.storage.sql.ConnectionPool connectionPool, edu.uiuc.ncsa.security.storage.sql.internals.Table table, edu.uiuc.ncsa.security.core.util.IdentifiableProviderImpl<ArchivedUser> aup, edu.uiuc.ncsa.security.storage.data.MapConverter converter)
-
-
Method Detail
-
getArchivedUserTable
public ArchivedUsersTable getArchivedUserTable()
-
getAUP
protected ArchivedUserProvider getAUP()
-
archiveUser
public edu.uiuc.ncsa.security.core.Identifier archiveUser(edu.uiuc.ncsa.security.core.Identifier userID)
Description copied from interface:ArchivedUserStore
Add a User to the archive. This takes the current user as stored (so save any updates before invoking). Returns the id of the archived user entry.- Specified by:
archiveUser
in interfaceArchivedUserStore
-
getAllByUserId
public List<ArchivedUser> getAllByUserId(edu.uiuc.ncsa.security.core.Identifier userId)
Description copied from interface:ArchivedUserStore
Get the list of all archived users for a given user (as opposed to archive) id. This always returns a list sorted by archive date.- Specified by:
getAllByUserId
in interfaceArchivedUserStore
- Returns:
-
getLastArchivedUser
public ArchivedUser getLastArchivedUser(edu.uiuc.ncsa.security.core.Identifier userid)
Description copied from interface:ArchivedUserStore
Convenience method. Return the most recently archived user for this id or a null if there is no such user.- Specified by:
getLastArchivedUser
in interfaceArchivedUserStore
- Returns:
-
getCreationTSField
public String getCreationTSField()
- Specified by:
getCreationTSField
in classedu.uiuc.ncsa.security.storage.sql.SQLStore<ArchivedUser>
-
-