org.apache.cocoon.portal.profile.impl
Class AuthenticationProfileManager

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.portal.profile.impl.AbstractProfileManager
          extended by org.apache.cocoon.portal.profile.impl.AbstractUserProfileManager
              extended by org.apache.cocoon.portal.profile.impl.AuthenticationProfileManager
All Implemented Interfaces:
Component, LogEnabled, Serviceable, ThreadSafe, ProfileManager

Deprecated. Use the GroupBasedProfileManager

public class AuthenticationProfileManager
extends AbstractUserProfileManager

The profile manager using the authentication framework

Version:
CVS $Id: AuthenticationProfileManager.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Carsten Ziegeler, Björn Lütkemeier

Nested Class Summary
protected static class AuthenticationProfileManager.User
          Deprecated.  
 
Field Summary
protected  Map attributes
          Deprecated.  
protected  org.apache.cocoon.portal.profile.impl.AuthenticationProfileManager.ReadWriteLock lock
          Deprecated.  
 
Fields inherited from class org.apache.cocoon.portal.profile.impl.AbstractProfileManager
manager
 
Fields inherited from interface org.apache.cocoon.portal.profile.ProfileManager
ROLE
 
Constructor Summary
AuthenticationProfileManager()
          Deprecated.  
 
Method Summary
protected  Map buildKey(PortalService service, Map parameters, String layoutKey, boolean load)
          Deprecated.  
protected  Object checkValidity(Object key, Map parameters, boolean forcedLoad, ProfileLS adapter)
          Deprecated. If the profile is valid itself is returned, otherwise a newly created SourceValidity object is returned.
protected  Object getDeltaProfile(String layoutKey, Map parameters, PortalService service, Object factory, boolean forcedLoad)
          Deprecated. Gets a profile and applies possible user and role deltas to it.
protected  Object getOrCreateProfile(String layoutKey, Map parameters, PortalService service, Object factory)
          Deprecated. Gets a user profile and creates it by copying the role or the global profile.
protected  Object[] getProfile(String layoutKey, Map parameters, Object factory, boolean forcedLoad, PortalService service)
          Deprecated. Gets a profile.
protected  RequestState getRequestState()
          Deprecated. Get the current authentication state of the user
 PortalUser getUser()
          Deprecated. Get current user information
protected  Object loadProfile(Object key, Map map, Object factory)
          Deprecated. Loads a profile.
protected  Layout loadProfile(String layoutKey, PortalService service, CopletFactory copletFactory, LayoutFactory layoutFactory, ServiceSelector adapterSelector)
          Deprecated. This loads a new profile
 void saveUserCopletInstanceDatas(String layoutKey)
          Deprecated. Save the coplet instance data
 void saveUserLayout(String layoutKey)
          Deprecated. Save the layout
 
Methods inherited from class org.apache.cocoon.portal.profile.impl.AbstractUserProfileManager
cacheLayouts, getCopletData, getCopletDatas, getCopletInstanceData, getCopletInstanceData, getCopletInstanceDatas, getPortalLayout, login, logout, prepareObject, register, register, storeProfile, unregister, unregister
 
Methods inherited from class org.apache.cocoon.portal.profile.impl.AbstractProfileManager
saveUserProfiles, service
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lock

protected org.apache.cocoon.portal.profile.impl.AuthenticationProfileManager.ReadWriteLock lock
Deprecated. 

attributes

protected Map attributes
Deprecated. 
Constructor Detail

AuthenticationProfileManager

public AuthenticationProfileManager()
Deprecated. 
Method Detail

getRequestState

protected RequestState getRequestState()
Deprecated. 
Get the current authentication state of the user

Returns:
the current authentication state of the user

loadProfile

protected Layout loadProfile(String layoutKey,
                             PortalService service,
                             CopletFactory copletFactory,
                             LayoutFactory layoutFactory,
                             ServiceSelector adapterSelector)
                      throws Exception
Deprecated. 
This loads a new profile

Specified by:
loadProfile in class AbstractUserProfileManager
Throws:
Exception

saveUserCopletInstanceDatas

public void saveUserCopletInstanceDatas(String layoutKey)
Deprecated. 
Description copied from interface: ProfileManager
Save the coplet instance data

Specified by:
saveUserCopletInstanceDatas in interface ProfileManager
Overrides:
saveUserCopletInstanceDatas in class AbstractProfileManager

saveUserLayout

public void saveUserLayout(String layoutKey)
Deprecated. 
Description copied from interface: ProfileManager
Save the layout

Specified by:
saveUserLayout in interface ProfileManager
Overrides:
saveUserLayout in class AbstractProfileManager

getDeltaProfile

protected Object getDeltaProfile(String layoutKey,
                                 Map parameters,
                                 PortalService service,
                                 Object factory,
                                 boolean forcedLoad)
                          throws Exception
Deprecated. 
Gets a profile and applies possible user and role deltas to it.

Throws:
Exception

getOrCreateProfile

protected Object getOrCreateProfile(String layoutKey,
                                    Map parameters,
                                    PortalService service,
                                    Object factory)
                             throws Exception
Deprecated. 
Gets a user profile and creates it by copying the role or the global profile.

Throws:
Exception

getProfile

protected Object[] getProfile(String layoutKey,
                              Map parameters,
                              Object factory,
                              boolean forcedLoad,
                              PortalService service)
                       throws Exception
Deprecated. 
Gets a profile.

Returns:
result[0] is the profile, result[1] is a Boolean, which signals whether the profile has been loaded or reused.
Throws:
Exception

checkValidity

protected Object checkValidity(Object key,
                               Map parameters,
                               boolean forcedLoad,
                               ProfileLS adapter)
Deprecated. 
If the profile is valid itself is returned, otherwise a newly created SourceValidity object is returned.


loadProfile

protected Object loadProfile(Object key,
                             Map map,
                             Object factory)
                      throws Exception
Deprecated. 
Loads a profile.

Throws:
Exception

buildKey

protected Map buildKey(PortalService service,
                       Map parameters,
                       String layoutKey,
                       boolean load)
                throws ProcessingException,
                       ConfigurationException
Deprecated. 
Throws:
ProcessingException
ConfigurationException

getUser

public PortalUser getUser()
Deprecated. 
Description copied from interface: ProfileManager
Get current user information



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