org.apache.pluto.portalImpl.services.portletentityregistry
Class PortletEntityRegistryServiceFileImpl

java.lang.Object
  extended by org.apache.pluto.portalImpl.services.Service
      extended by org.apache.pluto.portalImpl.services.portletentityregistry.PortletEntityRegistryService
          extended by org.apache.pluto.portalImpl.services.portletentityregistry.PortletEntityRegistryServiceFileImpl

public class PortletEntityRegistryServiceFileImpl
extends PortletEntityRegistryService

A simple XML Castor file based implementation of the PortletEntityRegistryService.

This store persit the PortletEntityRegistry informations.


Field Summary
static java.lang.String CONFIG_FILE
           
protected static java.lang.String CONFIG_MAPPING
           
static java.lang.String DEFAULT_MAPPING
           
protected  org.exolab.castor.mapping.Mapping mapping
           
protected  java.util.Map portletEntitiesKeyObjectID
           
protected  PortletApplicationEntityListImpl registry
           
protected  javax.servlet.ServletContext servletContext
           
 
Constructor Summary
PortletEntityRegistryServiceFileImpl()
           
 
Method Summary
 org.apache.pluto.om.entity.PortletApplicationEntityList getPortletApplicationEntityList()
          Returns the portlet application instance with the given id.
 java.util.Map getPortletEntities()
           
 org.apache.pluto.om.entity.PortletEntity getPortletEntity(org.apache.pluto.om.common.ObjectID id)
          Returns the portlet Entity with the given id.
 void init(javax.servlet.ServletConfig servletConfig, Properties properties)
          Initializes the service using the servlet configuration and the service properties.
 void load()
           
 void postInit()
          This methods can be used to setup things after the services has been initialized via init.
 void refresh(org.apache.pluto.om.entity.PortletEntity portletEntity)
           
 void store()
           
 
Methods inherited from class org.apache.pluto.portalImpl.services.Service
destroy, destroy, init, init, postInit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFIG_FILE

public static final java.lang.String CONFIG_FILE
See Also:
Constant Field Values

DEFAULT_MAPPING

public static final java.lang.String DEFAULT_MAPPING
See Also:
Constant Field Values

CONFIG_MAPPING

protected static final java.lang.String CONFIG_MAPPING
See Also:
Constant Field Values

mapping

protected org.exolab.castor.mapping.Mapping mapping

servletContext

protected javax.servlet.ServletContext servletContext

registry

protected PortletApplicationEntityListImpl registry

portletEntitiesKeyObjectID

protected java.util.Map portletEntitiesKeyObjectID
Constructor Detail

PortletEntityRegistryServiceFileImpl

public PortletEntityRegistryServiceFileImpl()
Method Detail

init

public void init(javax.servlet.ServletConfig servletConfig,
                 Properties properties)
          throws java.lang.Exception
Description copied from class: Service
Initializes the service using the servlet configuration and the service properties.

Overrides:
init in class Service
Parameters:
servletConfig - the servlet configuration
properties - the service properties
Throws:
java.lang.Exception - if the initialization fails

getPortletApplicationEntityList

public org.apache.pluto.om.entity.PortletApplicationEntityList getPortletApplicationEntityList()
Description copied from class: PortletEntityRegistryService
Returns the portlet application instance with the given id.

Specified by:
getPortletApplicationEntityList in class PortletEntityRegistryService
Returns:
the portlet application instance

getPortletEntity

public org.apache.pluto.om.entity.PortletEntity getPortletEntity(org.apache.pluto.om.common.ObjectID id)
Description copied from class: PortletEntityRegistryService
Returns the portlet Entity with the given id.

Specified by:
getPortletEntity in class PortletEntityRegistryService
Parameters:
id - the identifier of the portlet Entity to be returned
Returns:
the portlet Entity

store

public void store()
           throws java.io.IOException
Specified by:
store in class PortletEntityRegistryService
Throws:
java.io.IOException

load

public void load()
          throws java.io.IOException
Specified by:
load in class PortletEntityRegistryService
Throws:
java.io.IOException

refresh

public void refresh(org.apache.pluto.om.entity.PortletEntity portletEntity)
Specified by:
refresh in class PortletEntityRegistryService

getPortletEntities

public java.util.Map getPortletEntities()

postInit

public void postInit()
              throws java.lang.Exception
Description copied from class: Service
This methods can be used to setup things after the services has been initialized via init.

Overrides:
postInit in class Service
Throws:
java.lang.Exception - if the postInit fails for any reason


Copyright © 2003-2010 . All Rights Reserved.