|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.application.framework.userprofiles.library.impl.UserProfile
public class UserProfile
| Field Summary | |
|---|---|
protected static DocumentBuilderFactory |
dfactory
|
protected org.gcube.application.framework.core.session.ASLSession |
session
|
| Constructor Summary | |
|---|---|
UserProfile(org.gcube.application.framework.core.session.ASLSession session)
|
|
UserProfile(String extrenalSessionID,
String username)
|
|
| Method Summary | |
|---|---|
protected void |
createElementToService(String path,
String username,
String name,
String value)
|
void |
createUserProfile(String username)
Creates a default profile for this user |
boolean |
deleteElement(String username,
String elementName)
|
protected void |
deleteElementToService(String username,
String elementName)
|
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)
|
void |
setElementValue(String username,
String element,
String value)
|
void |
setUserProfile(String username,
String profile)
Sets user's profile |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.gcube.application.framework.core.session.ASLSession session
protected static final DocumentBuilderFactory dfactory
| Constructor Detail |
|---|
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 D4SSession| Method Detail |
|---|
public HashMap<String,String> getMetadataXSLTs(String username)
getMetadataXSLTs in interface UserProfileInfoIusername - the username
public HashMap<String,ArrayList<String>> getPresentationFields(String username)
getPresentationFields in interface UserProfileInfoIusername - the username
public String getUserProfile(String username)
getUserProfile in interface UserProfileInfoIusername - the username
public void 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 username
public String[] getElement(String username,
String element)
getElement in interface UserProfileInfoIusername - the usernameelement - the element node to be retrieved from the profile
public String getElementValue(String username,
String element)
getElementValue in interface UserProfileInfoIusername - the usernameelement - the element value to be retrieved from the profile
public void setDefaultProfile(String defaultProfile)
setDefaultProfile in interface UserProfileInfoIdefaultProfile - the default profile xml
public void setElementValue(String username,
String element,
String value)
setElementValue in interface UserProfileInfoIusername - the usernameelement - the element node to be set from the profile
public boolean deleteElement(String username,
String elementName)
public void setElement(String username,
String path,
String elementName,
String elementValue)
throws Exception
Exception
protected void createElementToService(String path,
String username,
String name,
String value)
protected void setElementToService(String username,
String element,
String value)
protected void deleteElementToService(String username,
String elementName)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||