PortletEntityRegistryService.
This store persit the PortletEntityRegistry informations.
Method Summary |
private void |
_load()
|
private void |
fill()
|
PortletApplicationEntityList |
getPortletApplicationEntityList()
Returns the portlet application instance with the given id. |
java.util.Map |
getPortletEntities()
|
PortletEntity |
getPortletEntity(ObjectID id)
Returns the portlet Entity with the given id. |
void |
init(ServletConfig servletConfig,
Properties properties)
Initializes the service using the servlet context
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(PortletEntity portletEntity)
|
void |
store()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 Mapping mapping
servletContext
protected ServletContext servletContext
log
private Logger log
registry
protected PortletApplicationEntityListImpl registry
portletEntitiesKeyObjectID
protected java.util.Map portletEntitiesKeyObjectID
PortletEntityRegistryServiceFileImpl
public PortletEntityRegistryServiceFileImpl()
init
public void init(ServletConfig servletConfig,
Properties properties)
throws java.lang.Exception
- Description copied from class:
Service
- Initializes the service using the servlet context
and the service properties.
- Overrides:
init
in class Service
- Parameters:
servletConfig
- the servlet contextproperties
- the service properties
- Throws:
java.lang.Exception
- if the initialization fails
getPortletApplicationEntityList
public 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 PortletEntity getPortletEntity(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(PortletEntity portletEntity)
- Specified by:
refresh
in class PortletEntityRegistryService
_load
private void _load()
throws java.io.IOException
- Throws:
java.io.IOException
fill
private void fill()
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