org.gcube.application.framework.userprofiles.cache
Class UserProfileCache

java.lang.Object
  extended by org.gcube.application.framework.userprofiles.cache.UserProfileCache

public class UserProfileCache
extends Object


Constructor Summary
UserProfileCache()
           
 
Method Summary
static boolean addProfile(String username, String vre, String profile)
           
static String getProfile(String username, String vre)
           
static boolean removeProfile(String username, String vre)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserProfileCache

public UserProfileCache()
Method Detail

addProfile

public static boolean addProfile(String username,
                                 String vre,
                                 String profile)
Parameters:
username - the username as in IS
vre - the vre from Scope. eg. for scope '/gcube/devNext/NextNext' the vre is 'NextNext'
profile - the serialized XML profile
Returns:
the status of the addition. true if successful, false otherwise

removeProfile

public static boolean removeProfile(String username,
                                    String vre)
Parameters:
username - the username as in IS
vre - the vre from Scope. eg. for scope '/gcube/devNext/NextNext' the vre is 'NextNext'
Returns:
the status of the removal. true if successful, false otherwise

getProfile

public static String getProfile(String username,
                                String vre)
Parameters:
username - the username as in IS
vre - the vre from Scope. eg. for scope '/gcube/devNext/NextNext' the vre is 'NextNext'
Returns:
the serialized XML profile


Copyright © 2013. All Rights Reserved.