public class UserProfile extends Object implements UserProfileInfoI
| Modifier and Type | Field and Description |
|---|---|
protected static DocumentBuilderFactory |
dfactory |
protected static org.gcube.personalization.profileadministration.client.library.proxies.ProfileAdministrationCLProxyI |
profileProxy |
protected org.gcube.application.framework.core.session.ASLSession |
session |
| Constructor and Description |
|---|
UserProfile(org.gcube.application.framework.core.session.ASLSession session) |
UserProfile(String extrenalSessionID,
String username) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createElementToService(String path,
String username,
String name,
String value)
inactive since the the integration of featherweight stack.
|
void |
createUserProfile(String username)
Creates a default profile for this user
|
boolean |
deleteElement(String username,
String elementName) |
protected void |
deleteElementToService(String username,
String elementName)
inactive since the the integration of featherweight stack.
|
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 |
setElement(String username,
String path,
String elementName,
String elementValue) |
protected void |
setElementToService(String username,
String element,
String value)
inactive since the the integration of featherweight stack.
|
void |
setElementValue(String username,
String element,
String value) |
boolean |
setUserProfile(String username,
String profile)
Sets user's profile
|
protected org.gcube.application.framework.core.session.ASLSession session
protected static final DocumentBuilderFactory dfactory
protected static org.gcube.personalization.profileadministration.client.library.proxies.ProfileAdministrationCLProxyI profileProxy
public UserProfile(String extrenalSessionID, String username)
extrenalSessionID - the external session ID. In case of a web application using ASL, this is the http session IDusername - the username of the user that makes the requestpublic UserProfile(org.gcube.application.framework.core.session.ASLSession session)
session - the D4SSessionpublic HashMap<String,String> getMetadataXSLTs(String username)
getMetadataXSLTs in interface UserProfileInfoIusername - the usernamepublic HashMap<String,ArrayList<String>> getPresentationFields(String username)
getPresentationFields in interface UserProfileInfoIusername - the usernamepublic String getUserProfile(String username)
getUserProfile in interface UserProfileInfoIusername - the usernamepublic boolean setUserProfile(String username, String profile)
setUserProfile in interface UserProfileInfoIusername - the usernameprofile - the Profile serialized as a stringpublic void createUserProfile(String username)
createUserProfile in interface UserProfileInfoIusername - the usernamepublic void dropUserProfile(String username)
dropUserProfile in interface UserProfileInfoIusername - the usernamepublic String[] getElement(String username, String element)
getElement in interface UserProfileInfoIusername - the usernameelement - the element node to be retrieved from the profilepublic String getElementValue(String username, String element)
getElementValue in interface UserProfileInfoIusername - the usernameelement - the element value to be retrieved from the profilepublic void setDefaultProfile(String defaultProfile)
setDefaultProfile in interface UserProfileInfoIdefaultProfile - the default profile xmlpublic void setElementValue(String username, String element, String value)
setElementValue in interface UserProfileInfoIusername - the usernameelement - the element node to be set from the profilepublic void setElement(String username, String path, String elementName, String elementValue)
protected void createElementToService(String path, String username, String name, String value)
protected void setElementToService(String username, String element, String value)
Copyright © 2015. All Rights Reserved.