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

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

public abstract class AbstractProfileManager
extends AbstractLogEnabled
implements Serviceable, ProfileManager, ThreadSafe

Base class for all profile managers

Version:
CVS $Id: AbstractProfileManager.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Carsten Ziegeler

Field Summary
protected  ServiceManager manager
           
 
Fields inherited from interface org.apache.cocoon.portal.profile.ProfileManager
ROLE
 
Constructor Summary
AbstractProfileManager()
           
 
Method Summary
 void login()
          This method is invoked when the user logs into the portal.
 void logout()
          This method is invoked when the user logs out of the portal
 void register(CopletInstanceData coplet)
          New coplet instance datas have to be registered using this method.
 void register(Layout layout)
          New layouts have to be registered using this method.
 void saveUserCopletInstanceDatas(String layoutKey)
          Save the coplet instance data
 void saveUserLayout(String layoutKey)
          Save the layout
 void saveUserProfiles(String layoutKey)
          Save the profile.
 void service(ServiceManager manager)
           
 void unregister(CopletInstanceData coplet)
          Removed coplet instance datas have to be unregistered using this method.
 void unregister(Layout layout)
          New layouts have to be unregistered using this method.
 
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
getCopletData, getCopletDatas, getCopletInstanceData, getCopletInstanceData, getCopletInstanceDatas, getPortalLayout, getUser, storeProfile
 

Field Detail

manager

protected ServiceManager manager
Constructor Detail

AbstractProfileManager

public AbstractProfileManager()
Method Detail

service

public void service(ServiceManager manager)
             throws ServiceException
Specified by:
service in interface Serviceable
Throws:
ServiceException

register

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

Specified by:
register in interface ProfileManager

register

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

Specified by:
register in interface ProfileManager

saveUserProfiles

public void saveUserProfiles(String layoutKey)
Description copied from interface: ProfileManager
Save the profile. Usually this just calls ProfileManager.saveUserCopletInstanceDatas(String) and ProfileManager.saveUserLayout(String), but implementations are free to implement this method in a different way.

Specified by:
saveUserProfiles in interface ProfileManager

saveUserCopletInstanceDatas

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

Specified by:
saveUserCopletInstanceDatas in interface ProfileManager

saveUserLayout

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

Specified by:
saveUserLayout in interface ProfileManager

unregister

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

Specified by:
unregister in interface ProfileManager

unregister

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

Specified by:
unregister in interface ProfileManager

login

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

Specified by:
login in interface ProfileManager

logout

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

Specified by:
logout in interface ProfileManager


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