Class MemoryArchivedUserStore
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<edu.uiuc.ncsa.security.core.Identifier,V>
-
- edu.uiuc.ncsa.security.storage.MemoryStore<ArchivedUser>
-
- org.cilogon.oauth2.servlet.storage.archiveUser.MemoryArchivedUserStore
-
- All Implemented Interfaces:
edu.uiuc.ncsa.security.core.Store<ArchivedUser>
,Serializable
,Cloneable
,Map<edu.uiuc.ncsa.security.core.Identifier,ArchivedUser>
,ArchivedUserStore
public class MemoryArchivedUserStore extends edu.uiuc.ncsa.security.storage.MemoryStore<ArchivedUser> implements ArchivedUserStore
Created by Jeff Gaynor
on 3/13/12 at 2:37 PM- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class edu.uiuc.ncsa.security.storage.MemoryStore
edu.uiuc.ncsa.security.storage.MemoryStore.MSInitializer
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Constructor Summary
Constructors Constructor Description MemoryArchivedUserStore(UserStore userStore, edu.uiuc.ncsa.security.core.util.IdentifiableProviderImpl<ArchivedUser> aup)
-
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.ArchivedUser
getLastArchivedUser(edu.uiuc.ncsa.security.core.Identifier userid)
Convenience method.edu.uiuc.ncsa.security.storage.data.MapConverter
getMapConverter()
List<ArchivedUser>
getMostRecent(int n, List<String> attributes)
edu.uiuc.ncsa.security.core.XMLConverter<ArchivedUser>
getXMLConverter()
-
Methods inherited from class edu.uiuc.ncsa.security.storage.MemoryStore
create, getAll, getInitializer, realSave, register, remove, save, search, search, search, size, update
-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, 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
-
MemoryArchivedUserStore
public MemoryArchivedUserStore(UserStore userStore, edu.uiuc.ncsa.security.core.util.IdentifiableProviderImpl<ArchivedUser> aup)
-
-
Method Detail
-
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:
-
getMapConverter
public edu.uiuc.ncsa.security.storage.data.MapConverter getMapConverter()
- Overrides:
getMapConverter
in classedu.uiuc.ncsa.security.storage.MemoryStore<ArchivedUser>
-
getXMLConverter
public edu.uiuc.ncsa.security.core.XMLConverter<ArchivedUser> getXMLConverter()
- Specified by:
getXMLConverter
in interfaceedu.uiuc.ncsa.security.core.Store<ArchivedUser>
-
getMostRecent
public List<ArchivedUser> getMostRecent(int n, List<String> attributes)
- Specified by:
getMostRecent
in interfaceedu.uiuc.ncsa.security.core.Store<ArchivedUser>
-
-