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

java.lang.Object
  extended byorg.apache.avalon.framework.logger.AbstractLogEnabled
      extended byorg.apache.cocoon.portal.impl.AbstractComponent
          extended byorg.apache.cocoon.portal.profile.impl.AbstractProfileManager
              extended byorg.apache.cocoon.portal.profile.impl.StaticProfileManager
All Implemented Interfaces:
Configurable, Contextualizable, Disposable, Initializable, LogEnabled, Preloadable, ProfileManager, Receiver, Serviceable, ThreadSafe

public class StaticProfileManager
extends AbstractProfileManager
implements Configurable

Version:
$Id: StaticProfileManager.java 328046 2005-10-24 12:12:27Z cziegeler $

Nested Class Summary
protected static class StaticProfileManager.StaticPortalUser
           
 
Field Summary
protected  org.apache.commons.collections.map.StaticBucketMap copletDataManagers
           
protected  org.apache.commons.collections.map.StaticBucketMap copletInstanceDataManagers
           
protected static String LAYOUTKEY_PREFIX
           
protected  PortalUser portalUser
           
protected  String profilesPath
           
 
Fields inherited from class org.apache.cocoon.portal.profile.impl.AbstractProfileManager
USER_ATTRIBUTE
 
Fields inherited from class org.apache.cocoon.portal.impl.AbstractComponent
context, manager, portalService
 
Fields inherited from interface org.apache.cocoon.portal.profile.ProfileManager
ROLE
 
Constructor Summary
StaticProfileManager()
           
 
Method Summary
 void configure(Configuration configuration)
           
 CopletData getCopletData(String copletDataId)
          Return the coplet data object
 Collection getCopletDatas()
          Get all coplets
 List getCopletInstanceData(CopletData data)
           
 CopletInstanceData getCopletInstanceData(String copletID)
           
 Collection getCopletInstanceDatas()
          Get all instances
 Layout getPortalLayout(String layoutKey, String layoutID)
          Get the portal layout defined by the layout key.
 PortalUser getUser()
          Get current user information
 
Methods inherited from class org.apache.cocoon.portal.profile.impl.AbstractProfileManager
getProfile, inform, login, logout, register, saveUserCopletInstanceDatas, saveUserLayout, saveUserProfiles, unregister
 
Methods inherited from class org.apache.cocoon.portal.impl.AbstractComponent
contextualize, dispose, initialize, 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

profilesPath

protected String profilesPath

copletInstanceDataManagers

protected org.apache.commons.collections.map.StaticBucketMap copletInstanceDataManagers

copletDataManagers

protected org.apache.commons.collections.map.StaticBucketMap copletDataManagers

LAYOUTKEY_PREFIX

protected static final String LAYOUTKEY_PREFIX

portalUser

protected PortalUser portalUser
Constructor Detail

StaticProfileManager

public StaticProfileManager()
Method Detail

getPortalLayout

public Layout getPortalLayout(String layoutKey,
                              String layoutID)
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.

Specified by:
getPortalLayout in interface ProfileManager
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
See Also:
ProfileManager.getPortalLayout(String, String)

getCopletInstanceData

public CopletInstanceData getCopletInstanceData(String copletID)
Specified by:
getCopletInstanceData in interface ProfileManager
See Also:
ProfileManager.getCopletInstanceData(java.lang.String)

getCopletData

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

Specified by:
getCopletData in interface ProfileManager
See Also:
ProfileManager.getCopletData(java.lang.String)

getCopletInstanceData

public List getCopletInstanceData(CopletData data)
Specified by:
getCopletInstanceData in interface ProfileManager
See Also:
ProfileManager.getCopletInstanceData(org.apache.cocoon.portal.coplet.CopletData)

configure

public void configure(Configuration configuration)
               throws ConfigurationException
Specified by:
configure in interface Configurable
Throws:
ConfigurationException
See Also:
Configurable.configure(org.apache.avalon.framework.configuration.Configuration)

getCopletDatas

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

Specified by:
getCopletDatas in interface ProfileManager
See Also:
ProfileManager.getCopletDatas()

getCopletInstanceDatas

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

Specified by:
getCopletInstanceDatas in interface ProfileManager
See Also:
ProfileManager.getCopletInstanceDatas()

getUser

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

Specified by:
getUser in interface ProfileManager
See Also:
ProfileManager.getUser()


Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.