org.gcube.application.framework.userprofiles.library
Interface UserProfileInfoI

All Known Implementing Classes:
UserProfile

public interface UserProfileInfoI


Method Summary
 void createUserProfile(String username)
          Creates a default profile for this user
 void dropUserProfile(String username)
          Drops the profile of this user
 String[] getElement(String username, String element)
           
 String getElementValue(String username, String element)
           
 HashMap<String,String> getMetadataXSLTs(String username)
           
 HashMap<String,ArrayList<String>> getPresentationFields(String username)
           
 String getUserProfile(String username)
           
 void setDefaultProfile(String defaultProfile)
           
 void setElementValue(String username, String element, String value)
           
 boolean setUserProfile(String username, String profile)
          Sets user's profile
 

Method Detail

getUserProfile

String getUserProfile(String username)
                      throws org.gcube.personalization.userprofileaccess.client.library.exceptions.UserProfileAccessException
Parameters:
username - the username
Returns:
the Profile serialized as a string
Throws:
org.gcube.personalization.userprofileaccess.client.library.exceptions.UserProfileAccessException

setUserProfile

boolean setUserProfile(String username,
                       String profile)
                       throws org.gcube.personalization.userprofileaccess.client.library.exceptions.UserProfileAccessException
Sets user's profile

Parameters:
username - the username
profile - the Profile serialized as a string
Returns:
Throws:
org.gcube.personalization.userprofileaccess.client.library.exceptions.UserProfileAccessException

getMetadataXSLTs

HashMap<String,String> getMetadataXSLTs(String username)
Parameters:
username - the username
Returns:
a hashmap containing the metadata schemata and the IDs of the corresponding generic resources that represent the XSLTs to transform metadata to html

getPresentationFields

HashMap<String,ArrayList<String>> getPresentationFields(String username)
Parameters:
username - the username
Returns:
a hashmap containing the ids of the presentation fields selected by the user per collection

createUserProfile

void createUserProfile(String username)
Creates a default profile for this user

Parameters:
username - the username

dropUserProfile

void dropUserProfile(String username)
Drops the profile of this user

Parameters:
username - the username

getElement

String[] getElement(String username,
                    String element)
Parameters:
username - the username
element - the element node to be retrieved from the profile
Returns:
the value

getElementValue

String getElementValue(String username,
                       String element)
Parameters:
username - the username
element - the element value to be retrieved from the profile
Returns:
the values

setElementValue

void setElementValue(String username,
                     String element,
                     String value)
Parameters:
username - the username
element - the element node to be set from the profile

setDefaultProfile

void setDefaultProfile(String defaultProfile)
Parameters:
defaultProfile - the default profile xml


Copyright © 2013. All Rights Reserved.