|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jetspeed.userinfo.impl.AbstractUserInfoManagerImpl org.apache.jetspeed.userinfo.impl.UserInfoManagerImpl
public class UserInfoManagerImpl
Implements the UserInfoManager
interface.
Field Summary | |
---|---|
private static org.apache.commons.logging.Log |
log
Logger |
(package private) String |
oid
The object id of the portlet application being processed. |
(package private) org.apache.jetspeed.components.portletregistry.PortletRegistry |
registry
The portlet registry. |
private static Map |
userInfoMapCache
Map used to cache user info maps for each mapped portlet application. |
(package private) String |
userInfoPropertySet
The user information property set. |
(package private) org.apache.jetspeed.security.UserManager |
userMgr
The user manager |
Constructor Summary | |
---|---|
UserInfoManagerImpl(org.apache.jetspeed.security.UserManager userMgr,
org.apache.jetspeed.components.portletregistry.PortletRegistry registry)
Constructor providing access to the UserManager . |
|
UserInfoManagerImpl(org.apache.jetspeed.security.UserManager userMgr,
org.apache.jetspeed.components.portletregistry.PortletRegistry registry,
String userInfoPropertySet)
Constructor providing access to the UserManager and specifying
which property set to use for user information. |
Method Summary | |
---|---|
Map |
getUserInfoMap(org.apache.pluto.om.common.ObjectID oid,
org.apache.jetspeed.request.RequestContext context)
|
private Preferences |
getUserPreferences(org.apache.jetspeed.request.RequestContext context)
Gets the user preferences from the user's request. |
private void |
initUserInfoMapCache()
|
private Map |
mapUserInfo(Preferences userInfoPrefs,
Collection userAttributes,
Collection userAttributeRefs)
Maps the user info properties retrieved from the user preferences to the user info attribute declared in the portlet.xml descriptor. |
Methods inherited from class org.apache.jetspeed.userinfo.impl.AbstractUserInfoManagerImpl |
---|
mapLinkedUserAttributes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final org.apache.commons.logging.Log log
private static Map userInfoMapCache
String userInfoPropertySet
org.apache.jetspeed.security.UserManager userMgr
org.apache.jetspeed.components.portletregistry.PortletRegistry registry
String oid
Constructor Detail |
---|
public UserInfoManagerImpl(org.apache.jetspeed.security.UserManager userMgr, org.apache.jetspeed.components.portletregistry.PortletRegistry registry)
Constructor providing access to the UserManager
.
userMgr
- The user manager.registry
- The portlet registry component.public UserInfoManagerImpl(org.apache.jetspeed.security.UserManager userMgr, org.apache.jetspeed.components.portletregistry.PortletRegistry registry, String userInfoPropertySet)
Constructor providing access to the UserManager
and specifying
which property set to use for user information.
userMgr
- The user manager.registry
- The portlet registry component.userInfoPropertySet
- The user information property set.Method Detail |
---|
public Map getUserInfoMap(org.apache.pluto.om.common.ObjectID oid, org.apache.jetspeed.request.RequestContext context)
getUserInfoMap
in interface org.apache.jetspeed.userinfo.UserInfoManager
org.apache.jetspeed.userinfo.UserInfoManager#setUserInfoMap(org.apache.jetspeed.om.page.Fragment,
org.apache.jetspeed.request.RequestContext)
private Map mapUserInfo(Preferences userInfoPrefs, Collection userAttributes, Collection userAttributeRefs)
Maps the user info properties retrieved from the user preferences to the user info attribute declared in the portlet.xml descriptor.
userInfoPrefs
- The user info preferences.userAttributes
- The declarative portlet user attributes.userAttributeRefs
- The declarative jetspeed portlet extension user
attributes reference.
private Preferences getUserPreferences(org.apache.jetspeed.request.RequestContext context)
Gets the user preferences from the user's request.
If no user is logged in, return null.
context
- The request context.
private void initUserInfoMapCache()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |