|
||||||||||
| 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
| Constructor Summary | |
|---|---|
UserProfile(ASLSession session)
|
|
UserProfile(java.lang.String extrenalSessionID,
java.lang.String username)
|
|
| Method Summary | |
|---|---|
void |
createUserProfile(java.lang.String username)
Creates a default profile for this user |
boolean |
deleteElement(java.lang.String username,
java.lang.String elementName)
|
void |
dropUserProfile(java.lang.String username)
Drops the profile of this user |
java.lang.String[] |
getElement(java.lang.String username,
java.lang.String element)
|
java.lang.String |
getElementValue(java.lang.String username,
java.lang.String element)
|
java.util.HashMap<java.lang.String,java.lang.String> |
getMetadataXSLTs(java.lang.String username)
|
java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> |
getPresentationFields(java.lang.String username)
|
java.lang.String |
getUserProfile(java.lang.String username)
|
void |
setDefaultProfile(java.lang.String defaultProfile)
|
void |
setElement(java.lang.String username,
java.lang.String path,
java.lang.String elementName,
java.lang.String elementValue)
|
void |
setElementValue(java.lang.String username,
java.lang.String element,
java.lang.String value)
|
void |
setUserProfile(java.lang.String username,
java.lang.String profile)
Sets user's profile |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UserProfile(java.lang.String extrenalSessionID,
java.lang.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(ASLSession session)
session - the D4SSession| Method Detail |
|---|
public java.util.HashMap<java.lang.String,java.lang.String> getMetadataXSLTs(java.lang.String username)
getMetadataXSLTs in interface UserProfileInfoIusername - the username
public java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> getPresentationFields(java.lang.String username)
getPresentationFields in interface UserProfileInfoIusername - the username
public java.lang.String getUserProfile(java.lang.String username)
getUserProfile in interface UserProfileInfoIusername - the username
public void setUserProfile(java.lang.String username,
java.lang.String profile)
setUserProfile in interface UserProfileInfoIusername - the usernameprofile - the Profile serialized as a stringpublic void createUserProfile(java.lang.String username)
createUserProfile in interface UserProfileInfoIusername - the usernamepublic void dropUserProfile(java.lang.String username)
dropUserProfile in interface UserProfileInfoIusername - the username
public java.lang.String[] getElement(java.lang.String username,
java.lang.String element)
getElement in interface UserProfileInfoIusername - the usernameelement - the element node to be retrieved from the profile
public java.lang.String getElementValue(java.lang.String username,
java.lang.String element)
getElementValue in interface UserProfileInfoIusername - the usernameelement - the element value to be retrieved from the profile
public void setDefaultProfile(java.lang.String defaultProfile)
setDefaultProfile in interface UserProfileInfoIdefaultProfile - the default profile xml
public void setElementValue(java.lang.String username,
java.lang.String element,
java.lang.String value)
setElementValue in interface UserProfileInfoIusername - the usernameelement - the element node to be set from the profile
public boolean deleteElement(java.lang.String username,
java.lang.String elementName)
public void setElement(java.lang.String username,
java.lang.String path,
java.lang.String elementName,
java.lang.String elementValue)
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||