Class UsersCache
- java.lang.Object
-
- org.gcube.portal.social.networking.caches.UsersCache
-
public class UsersCache extends Object
This cache will store GCubeUser of the users of the infrastructure as couples {user-id, user screename}- Author:
- Costantino Perciante at ISTI-CNR (costantino.perciante@isti.cnr.it)
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UsersCachegetSingleton()Get the singleton objectorg.gcube.vomanagement.usermanagement.model.GCubeUsergetUser(long userId)Retrieve an entryvoidpushEntry(long id, org.gcube.vomanagement.usermanagement.model.GCubeUser user)Save an entry into the cache
-
-
-
Method Detail
-
getSingleton
public static UsersCache getSingleton()
Get the singleton object
-
getUser
public org.gcube.vomanagement.usermanagement.model.GCubeUser getUser(long userId)
Retrieve an entry- Parameters:
id-- Returns:
- user associated to the user
-
pushEntry
public void pushEntry(long id, org.gcube.vomanagement.usermanagement.model.GCubeUser user)Save an entry into the cache- Parameters:
id-user-
-
-