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.IdentifierarchiveUser(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.ArchivedUsergetLastArchivedUser(edu.uiuc.ncsa.security.core.Identifier userid)Convenience method.edu.uiuc.ncsa.security.storage.data.MapConvertergetMapConverter()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, removeByID, save, search, search, search, search, size, update, 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:ArchivedUserStoreAdd 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:
archiveUserin interfaceArchivedUserStore
-
getAllByUserId
public List<ArchivedUser> getAllByUserId(edu.uiuc.ncsa.security.core.Identifier userId)
Description copied from interface:ArchivedUserStoreGet 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:
getAllByUserIdin interfaceArchivedUserStore- Returns:
-
getLastArchivedUser
public ArchivedUser getLastArchivedUser(edu.uiuc.ncsa.security.core.Identifier userid)
Description copied from interface:ArchivedUserStoreConvenience method. Return the most recently archived user for this id or a null if there is no such user.- Specified by:
getLastArchivedUserin interfaceArchivedUserStore- Returns:
-
getMapConverter
public edu.uiuc.ncsa.security.storage.data.MapConverter getMapConverter()
- Overrides:
getMapConverterin classedu.uiuc.ncsa.security.storage.MemoryStore<ArchivedUser>
-
getXMLConverter
public edu.uiuc.ncsa.security.core.XMLConverter<ArchivedUser> getXMLConverter()
- Specified by:
getXMLConverterin interfaceedu.uiuc.ncsa.security.core.Store<ArchivedUser>
-
getMostRecent
public List<ArchivedUser> getMostRecent(int n, List<String> attributes)
- Specified by:
getMostRecentin interfaceedu.uiuc.ncsa.security.core.Store<ArchivedUser>
-
-