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

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
All Implemented Interfaces:
Component, LogEnabled, Serviceable, ThreadSafe, ProfileManager
Direct Known Subclasses:
AuthenticationProfileManager

Deprecated. Use the GroupBasedProfileManager

public abstract class AbstractUserProfileManager
extends AbstractProfileManager

The profile manager using the authentication framework

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

Field Summary
 
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
AbstractUserProfileManager()
          Deprecated.  
 
Method Summary
protected  void cacheLayouts(Map layoutMap, Layout layout)
          Deprecated.  
 CopletData getCopletData(String copletDataId)
          Deprecated. Return the coplet data object
 Collection getCopletDatas()
          Deprecated. Get all coplets
 List getCopletInstanceData(CopletData data)
          Deprecated.  
 CopletInstanceData getCopletInstanceData(String copletID)
          Deprecated.  
 Collection getCopletInstanceDatas()
          Deprecated. Get all instances
 Layout getPortalLayout(String layoutKey, String layoutID)
          Deprecated. Get the portal layout defined by the layout key.
protected abstract  Layout loadProfile(String layoutKey, PortalService service, CopletFactory copletFactory, LayoutFactory layoutFactory, ServiceSelector adapterSelector)
          Deprecated. This loads a new profile
 void login()
          Deprecated. This method is invoked when the user logs into the portal.
 void logout()
          Deprecated. This method is invoked when the user logs out of the portal
protected  void prepareObject(Object object, Object factory)
          Deprecated. Prepares the object by using the specified factory.
 void register(CopletInstanceData coplet)
          Deprecated. New coplet instance datas have to be registered using this method.
 void register(Layout layout)
          Deprecated. New layouts have to be registered using this method.
 void storeProfile(Layout rootLayout, String layoutKey)
          Deprecated. Store the provided profile under the layoutKey.
 void unregister(CopletInstanceData coplet)
          Deprecated. Removed coplet instance datas have to be unregistered using this method.
 void unregister(Layout layout)
          Deprecated. New layouts have to be unregistered using this method.
 
Methods inherited from class org.apache.cocoon.portal.profile.impl.AbstractProfileManager
saveUserCopletInstanceDatas, saveUserLayout, 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
 
Methods inherited from interface org.apache.cocoon.portal.profile.ProfileManager
getUser
 

Constructor Detail

AbstractUserProfileManager

public AbstractUserProfileManager()
Deprecated. 
Method Detail

login

public void login()
Deprecated. 
Description copied from interface: ProfileManager
This method is invoked when the user logs into the portal.

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

logout

public void logout()
Deprecated. 
Description copied from interface: ProfileManager
This method is invoked when the user logs out of the portal

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

cacheLayouts

protected void cacheLayouts(Map layoutMap,
                            Layout layout)
Deprecated. 
Parameters:
layoutMap -
layout -

prepareObject

protected void prepareObject(Object object,
                             Object factory)
                      throws ProcessingException
Deprecated. 
Prepares the object by using the specified factory.

Throws:
ProcessingException

getCopletInstanceData

public CopletInstanceData getCopletInstanceData(String copletID)
Deprecated. 

getCopletData

public CopletData getCopletData(String copletDataId)
Deprecated. 
Description copied from interface: ProfileManager
Return the coplet data object


getCopletInstanceData

public List getCopletInstanceData(CopletData data)
Deprecated. 

register

public void register(CopletInstanceData coplet)
Deprecated. 
Description copied from interface: ProfileManager
New coplet instance datas have to be registered using this method.

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

unregister

public void unregister(CopletInstanceData coplet)
Deprecated. 
Description copied from interface: ProfileManager
Removed coplet instance datas have to be unregistered using this method.

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

register

public void register(Layout layout)
Deprecated. 
Description copied from interface: ProfileManager
New layouts have to be registered using this method.

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

unregister

public void unregister(Layout layout)
Deprecated. 
Description copied from interface: ProfileManager
New layouts have to be unregistered using this method.

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

getPortalLayout

public Layout getPortalLayout(String layoutKey,
                              String layoutID)
Deprecated. 
Description copied from interface: ProfileManager
Get the portal layout defined by the layout key. This usually addresses the layout profile. With the optional subKey it's possible to retrieve a specific layout object in the profile defined by the layout key.

Parameters:
layoutKey - A key describing the layout or null for the default
layoutID - The id of a layout object or null for the root object
Returns:
The layout

loadProfile

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

Throws:
Exception

getCopletDatas

public Collection getCopletDatas()
Deprecated. 
Description copied from interface: ProfileManager
Get all coplets


getCopletInstanceDatas

public Collection getCopletInstanceDatas()
Deprecated. 
Description copied from interface: ProfileManager
Get all instances


storeProfile

public void storeProfile(Layout rootLayout,
                         String layoutKey)
Deprecated. 
Description copied from interface: ProfileManager
Store the provided profile under the layoutKey. This method can be used to overwrite a profile with another one.



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