org.apache.cocoon.portal.pluto.om
Class PortletDefinitionRegistryImpl

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.portal.pluto.om.PortletDefinitionRegistryImpl
All Implemented Interfaces:
Disposable, Initializable, Contextualizable, LogEnabled, Serviceable, PortletDefinitionRegistry, org.apache.pluto.services.ContainerService

public class PortletDefinitionRegistryImpl
extends AbstractLogEnabled
implements PortletDefinitionRegistry, Contextualizable, Initializable, Serviceable, Disposable

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

Field Summary
protected  Context context
          The context
protected  String contextName
          Our context name
protected  ServiceManager manager
          The service manager
static String PORTLET_MAPPING
          The mapping
protected  PortletApplicationEntityListImpl portletApplicationEntities
          The portlet application entity list
protected  Map portletsKeyObjectId
          All portlet definitions, hashed by ObjectId
protected  PortletApplicationDefinitionListImpl registry
           
protected  EntityResolver resolver
          The entity resolver
protected  PortalService service
          The portal service.
static String WEBXML_MAPPING
          The mapping
 
Constructor Summary
PortletDefinitionRegistryImpl()
           
 
Method Summary
 void contextualize(Context context)
           
 void dispose()
           
 PortalService getPortalService()
           
 org.apache.pluto.om.portlet.PortletApplicationDefinitionList getPortletApplicationDefinitionList()
           
 org.apache.pluto.om.entity.PortletApplicationEntityList getPortletApplicationEntityList()
           
 org.apache.pluto.om.portlet.PortletDefinition getPortletDefinition(org.apache.pluto.om.common.ObjectID id)
           
 void initialize()
           
protected  void load(String baseWMDir, org.exolab.castor.mapping.Mapping portletXMLMapping, org.exolab.castor.mapping.Mapping webXMLMapping)
           
 void service(ServiceManager manager)
           
 
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

PORTLET_MAPPING

public static final String PORTLET_MAPPING
The mapping

See Also:
Constant Field Values

WEBXML_MAPPING

public static final String WEBXML_MAPPING
The mapping

See Also:
Constant Field Values

context

protected Context context
The context


manager

protected ServiceManager manager
The service manager


portletApplicationEntities

protected PortletApplicationEntityListImpl portletApplicationEntities
The portlet application entity list


registry

protected PortletApplicationDefinitionListImpl registry

portletsKeyObjectId

protected Map portletsKeyObjectId
All portlet definitions, hashed by ObjectId


contextName

protected String contextName
Our context name


resolver

protected EntityResolver resolver
The entity resolver


service

protected PortalService service
The portal service.

Constructor Detail

PortletDefinitionRegistryImpl

public PortletDefinitionRegistryImpl()
Method Detail

contextualize

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

service

public void service(ServiceManager manager)
             throws ServiceException
Specified by:
service in interface Serviceable
Throws:
ServiceException
See Also:
Serviceable.service(org.apache.avalon.framework.service.ServiceManager)

dispose

public void dispose()
Specified by:
dispose in interface Disposable
See Also:
Disposable.dispose()

initialize

public void initialize()
                throws Exception
Specified by:
initialize in interface Initializable
Throws:
Exception
See Also:
Initializable.initialize()

getPortletApplicationDefinitionList

public org.apache.pluto.om.portlet.PortletApplicationDefinitionList getPortletApplicationDefinitionList()
Specified by:
getPortletApplicationDefinitionList in interface PortletDefinitionRegistry
See Also:
PortletDefinitionRegistry.getPortletApplicationDefinitionList()

getPortletDefinition

public org.apache.pluto.om.portlet.PortletDefinition getPortletDefinition(org.apache.pluto.om.common.ObjectID id)
Specified by:
getPortletDefinition in interface PortletDefinitionRegistry
See Also:
PortletDefinitionRegistry.getPortletDefinition(org.apache.pluto.om.common.ObjectID)

load

protected void load(String baseWMDir,
                    org.exolab.castor.mapping.Mapping portletXMLMapping,
                    org.exolab.castor.mapping.Mapping webXMLMapping)
             throws Exception
Throws:
Exception

getPortletApplicationEntityList

public org.apache.pluto.om.entity.PortletApplicationEntityList getPortletApplicationEntityList()
Specified by:
getPortletApplicationEntityList in interface PortletDefinitionRegistry
See Also:
PortletDefinitionRegistry.getPortletApplicationEntityList()

getPortalService

public PortalService getPortalService()
Specified by:
getPortalService in interface PortletDefinitionRegistry
See Also:
PortletDefinitionRegistry.getPortalService()


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