dlestrat 2004/05/18 19:16:48
Modified: portal/src/java/org/apache/jetspeed/userinfo
UserInfoManager.java
portal/src/java/org/apache/jetspeed/userinfo/impl
UserInfoManagerImpl.java
Log:
Continuing PLT 17 - user info. Integrating UserInfoManager with the
request.getAttribute().
Revision Changes Path
1.3 +0 -2
jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/userinfo/UserInfoManager.java
Index: UserInfoManager.java
===================================================================
RCS file:
/home/cvs/jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/userinfo/UserInfoManager.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- UserInfoManager.java 16 May 2004 23:55:17 -0000 1.2
+++ UserInfoManager.java 19 May 2004 02:16:47 -0000 1.3
@@ -52,8 +52,6 @@
/**
* <p>Provide the user info map of user attributes for a given portlet
application.</p>
- * <p>The MutablePortletApplication can be retrieved from a Fragment
through:</p>
- * <p><code>MutablePortletApplication pa =
getPortletApplication(portletFragment);</code></p>
* @param oid The portlet application object id.
* @param context The request context.
* @return The [EMAIL PROTECTED] PortletRequest.USER_INFO} map.
1.3 +5 -5
jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/userinfo/impl/UserInfoManagerImpl.java
Index: UserInfoManagerImpl.java
===================================================================
RCS file:
/home/cvs/jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/userinfo/impl/UserInfoManagerImpl.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- UserInfoManagerImpl.java 16 May 2004 23:55:17 -0000 1.2
+++ UserInfoManagerImpl.java 19 May 2004 02:16:48 -0000 1.3
@@ -43,7 +43,6 @@
import org.apache.pluto.om.common.ObjectID;
-
/**
* <p>Implements the [EMAIL PROTECTED]
org.apache.jetspeed.userinfo.UserInfoManager} interface.</p>
*
@@ -105,8 +104,9 @@
*/
public Map getUserInfoMap(ObjectID oid, RequestContext context)
{
- if (log.isDebugEnabled()) log.debug("Getting user info for portlet
application: " + oid.toString());
-
+ if (log.isDebugEnabled())
+ log.debug("Getting user info for portlet application: " +
oid.toString());
+
// Check if user info map is in cache.
if (userInfoMapCache.containsKey(oid))
{
@@ -119,7 +119,7 @@
log.debug(PortletRequest.USER_INFO + " is set to null");
return null;
}
-
+
MutablePortletApplication pa = registry.getPortletApplication(oid);
if (null == pa)
{
@@ -129,7 +129,7 @@
Preferences userInfoPrefs = userPrefs.node(userInfoPropertySet);
Collection portletUserAttributes = pa.getUserAttributes();
Map userInfoMap = mapUserInfo(userInfoPrefs, portletUserAttributes);
-
+
return userInfoMap;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]