org.apache.cocoon.auth.portal
Class UserInfoProviderImpl

java.lang.Object
  extended by org.apache.cocoon.auth.portal.UserInfoProviderImpl
All Implemented Interfaces:
Contextualizable, UserInfoProvider

public class UserInfoProviderImpl
extends Object
implements UserInfoProvider, Contextualizable

Get the information about the current user. This implementation uses CAuth. Note: This class belongs to cauth but has to be defined in the portal block for now. This will be cleaned up with Cocoon 2.2.

Version:
$Id: UserInfoProviderImpl.html 1304258 2012-03-23 10:09:27Z ilgrosso $

Nested Class Summary
static class UserInfoProviderImpl.PortalUserInfo
          The user info for the portal engine.
 
Field Summary
protected  Context context
          The component context.
 
Constructor Summary
UserInfoProviderImpl()
           
 
Method Summary
 void contextualize(Context aContext)
           
 UserInfo getUserInfo(String portalName, String layoutKey)
          Return the user info about the current user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

context

protected Context context
The component context.

Constructor Detail

UserInfoProviderImpl

public UserInfoProviderImpl()
Method Detail

contextualize

public void contextualize(Context aContext)
                   throws ContextException
Specified by:
contextualize in interface Contextualizable
Throws:
ContextException
See Also:
Contextualizable.contextualize(org.apache.avalon.framework.context.Context)

getUserInfo

public UserInfo getUserInfo(String portalName,
                            String layoutKey)
                     throws Exception
Description copied from interface: UserInfoProvider
Return the user info about the current user.

Specified by:
getUserInfo in interface UserInfoProvider
Throws:
Exception
See Also:
UserInfoProvider.getUserInfo(java.lang.String, java.lang.String)


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.