|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bea.apps.groupspace.profile.UserProfileManager
public class UserProfileManager
Defines interaction with user profile data, taking into account unified user profile integration.
Method Summary | |
---|---|
String |
getDisplayName(HttpServletRequest request)
Returns the display name defined by the displayNameFormat property for the user that is currently logged in. |
static UserProfileManager |
getInstance(HttpServletRequest request)
Returns an instance of UserProfileManager based on the locale defined in the HttpServletRequest. |
com.bea.apps.groupspace.profile.UserProfileConfig |
getProfileConfig(String propertyName)
Returns the associated configuration for the specified property name. |
String |
getProfileValue(ProfileWrapper pw,
String propertyName)
Retrieves a user property set based on the provided ProfileWrapper. |
String |
getProfileValue(String username,
String propertyName)
Returns the user profile value specified by propertyName for a a user in the current security domain. |
String[] |
getPropertyNames()
Returns the array of property names defined in the defaultprofile.properties in the order as they appear in the userProfile.supportedProperties property. |
void |
setProfileValue(HttpServletRequest request,
String propertyName,
String propertyValue)
Sets the user profile value specified by propertyName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static UserProfileManager getInstance(HttpServletRequest request)
request
- HttpServletRequest - Required
public com.bea.apps.groupspace.profile.UserProfileConfig getProfileConfig(String propertyName)
This method must coincide with one of the properties defined by userProfile.supportedProperties, separated by comma.
propertyName
- The name of the property as specified by
the userProfile.supportedProperties.
public String getDisplayName(HttpServletRequest request) throws RemoteException, ProfileNotFoundException
request
- The current HttpServletRequest
ProfileNotFoundException
- If the user profile cannot be found
RemoteException
- If the ejb is not availablepublic String getProfileValue(String username, String propertyName) throws IllegalArgumentException, RemoteException, ProfileNotFoundException
This method must coincide with one of the properties defined by userProfile.supportedProperties, separated by comma.
username
- The domain username of the user you wish to retrieve the property of.propertyName
- The name of the property as specified by
the userProfile.supportedProperties.
IllegalArgumentException
- if the specified propertyName
does not exist or is misconfigured.
ProfileNotFoundException
- If the user profile cannot be found
RemoteException
- If the ejb is not availablepublic void setProfileValue(HttpServletRequest request, String propertyName, String propertyValue) throws PropertyValidationException, RemoteException, ProfileNotFoundException
This method must coincide with one of the properties defined by userProfile.supportedProperties, separated by comma.
request
- The current HttpServletRequestpropertyName
- The name of the property as specified by
the userProfile.supportedProperties.propertyValue
- The new value of the property.
ProfileNotFoundException
RemoteException
PropertyValidationException
IllegalArgumentException
- if the specified propertyName
does not exist or is misconfigured.public String[] getPropertyNames()
public String getProfileValue(ProfileWrapper pw, String propertyName) throws IllegalArgumentException, RemoteException, ProfileNotFoundException
Using this method, the caller is responsible for retrieving the ProfileWrapper through their own means.
pw
- The caller's ProfileWrapper.propertyName
- The user profile configured property to retrieve.
IllegalArgumentException
RemoteException
ProfileNotFoundException
|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |