org.apache.jetspeed.components.portletregistry
Class PersistenceBrokerPortletRegistry
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.ojb.support.PersistenceBrokerDaoSupport
org.apache.jetspeed.components.dao.InitablePersistenceBrokerDaoSupport
org.apache.jetspeed.components.portletregistry.PersistenceBrokerPortletRegistry
- All Implemented Interfaces:
- org.apache.jetspeed.cache.JetspeedCacheEventListener, org.apache.jetspeed.components.portletregistry.PortletRegistry, org.springframework.beans.factory.InitializingBean
public class PersistenceBrokerPortletRegistry
- extends org.apache.jetspeed.components.dao.InitablePersistenceBrokerDaoSupport
- implements org.apache.jetspeed.components.portletregistry.PortletRegistry, org.apache.jetspeed.cache.JetspeedCacheEventListener
OjbPortletRegistry
- Version:
- $Id: PersistenceBrokerPortletRegistry.java 516448 2007-03-09 16:25:47Z ate $
- Author:
- Scott T. Weaver
Fields inherited from class org.apache.jetspeed.components.dao.InitablePersistenceBrokerDaoSupport |
repositoryPath |
Fields inherited from class org.springframework.dao.support.DaoSupport |
logger |
Constructor Summary |
PersistenceBrokerPortletRegistry(String repositoryPath)
|
PersistenceBrokerPortletRegistry(String repositoryPath,
org.apache.jetspeed.factory.PortletFactory portletFactory,
org.apache.jetspeed.cache.JetspeedCache applicationOidCache,
org.apache.jetspeed.cache.JetspeedCache portletOidCache,
org.apache.jetspeed.cache.JetspeedCache applicationNameCache,
org.apache.jetspeed.cache.JetspeedCache portletNameCache)
|
Method Summary |
void |
addRegistryListener(org.apache.jetspeed.components.portletregistry.RegistryEventListener listener)
|
org.apache.pluto.om.common.Language |
createLanguage(Locale locale,
String title,
String shortTitle,
String description,
Collection keywords)
|
Collection |
getAllPortletDefinitions()
|
org.apache.jetspeed.om.common.portlet.MutablePortletApplication |
getPortletApplication(org.apache.pluto.om.common.ObjectID id)
|
org.apache.jetspeed.om.common.portlet.MutablePortletApplication |
getPortletApplication(String name)
|
org.apache.jetspeed.om.common.portlet.MutablePortletApplication |
getPortletApplicationByIdentifier(String identifier)
|
Collection |
getPortletApplications()
|
org.apache.jetspeed.om.common.portlet.PortletDefinitionComposite |
getPortletDefinition(org.apache.pluto.om.common.ObjectID id)
|
org.apache.jetspeed.om.common.portlet.PortletDefinitionComposite |
getPortletDefinitionByIdentifier(String identifier)
|
org.apache.jetspeed.om.common.portlet.PortletDefinitionComposite |
getPortletDefinitionByUniqueName(String name)
|
boolean |
namedPortletApplicationExists(String appName)
|
void |
notifyElementAdded(org.apache.jetspeed.cache.JetspeedCache cache,
boolean local,
Object key,
Object element)
|
void |
notifyElementChanged(org.apache.jetspeed.cache.JetspeedCache cache,
boolean local,
Object key,
Object element)
|
void |
notifyElementEvicted(org.apache.jetspeed.cache.JetspeedCache cache,
boolean local,
Object key,
Object element)
|
void |
notifyElementExpired(org.apache.jetspeed.cache.JetspeedCache cache,
boolean local,
Object key,
Object element)
|
void |
notifyElementRemoved(org.apache.jetspeed.cache.JetspeedCache cache,
boolean local,
Object key,
Object element)
|
boolean |
portletApplicationExists(String appIdentity)
|
boolean |
portletDefinitionExists(String portletIdentity)
|
boolean |
portletDefinitionExists(String portletName,
org.apache.jetspeed.om.common.portlet.MutablePortletApplication app)
|
private void |
postLoad(Object obj)
|
private void |
postLoadColl(Collection coll)
|
void |
registerPortletApplication(org.apache.pluto.om.portlet.PortletApplicationDefinition newApp)
|
void |
removeApplication(org.apache.pluto.om.portlet.PortletApplicationDefinition app)
|
void |
removeRegistryEventListner(org.apache.jetspeed.components.portletregistry.RegistryEventListener listener)
|
void |
savePortletDefinition(org.apache.pluto.om.portlet.PortletDefinition portlet)
|
void |
updatePortletApplication(org.apache.pluto.om.portlet.PortletApplicationDefinition app)
|
Methods inherited from class org.apache.jetspeed.components.dao.InitablePersistenceBrokerDaoSupport |
init |
Methods inherited from class org.springframework.orm.ojb.support.PersistenceBrokerDaoSupport |
checkDaoConfig, convertOjbAccessException, createPersistenceBrokerTemplate, getJcdAlias, getPersistenceBroker, getPersistenceBrokerTemplate, releasePersistenceBroker, setJcdAlias, setPersistenceBrokerTemplate |
Methods inherited from class org.springframework.dao.support.DaoSupport |
afterPropertiesSet, initDao |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PORTLET_UNIQUE_NAME_SEPARATOR
static final String PORTLET_UNIQUE_NAME_SEPARATOR
- The separator used to create a unique portlet name as
{portletApplication}::{portlet}
- See Also:
- Constant Field Values
applicationOidCache
private org.apache.jetspeed.cache.JetspeedCache applicationOidCache
portletOidCache
private org.apache.jetspeed.cache.JetspeedCache portletOidCache
applicationNameCache
private org.apache.jetspeed.cache.JetspeedCache applicationNameCache
portletNameCache
private org.apache.jetspeed.cache.JetspeedCache portletNameCache
nameCache
private Map nameCache
listeners
private List listeners
PersistenceBrokerPortletRegistry
public PersistenceBrokerPortletRegistry(String repositoryPath)
PersistenceBrokerPortletRegistry
public PersistenceBrokerPortletRegistry(String repositoryPath,
org.apache.jetspeed.factory.PortletFactory portletFactory,
org.apache.jetspeed.cache.JetspeedCache applicationOidCache,
org.apache.jetspeed.cache.JetspeedCache portletOidCache,
org.apache.jetspeed.cache.JetspeedCache applicationNameCache,
org.apache.jetspeed.cache.JetspeedCache portletNameCache)
createLanguage
public org.apache.pluto.om.common.Language createLanguage(Locale locale,
String title,
String shortTitle,
String description,
Collection keywords)
throws org.apache.jetspeed.components.portletregistry.RegistryException
- Specified by:
createLanguage
in interface org.apache.jetspeed.components.portletregistry.PortletRegistry
- Throws:
org.apache.jetspeed.components.portletregistry.RegistryException
getAllPortletDefinitions
public Collection getAllPortletDefinitions()
- Specified by:
getAllPortletDefinitions
in interface org.apache.jetspeed.components.portletregistry.PortletRegistry
getPortletApplication
public org.apache.jetspeed.om.common.portlet.MutablePortletApplication getPortletApplication(org.apache.pluto.om.common.ObjectID id)
- Specified by:
getPortletApplication
in interface org.apache.jetspeed.components.portletregistry.PortletRegistry
getPortletApplication
public org.apache.jetspeed.om.common.portlet.MutablePortletApplication getPortletApplication(String name)
- Specified by:
getPortletApplication
in interface org.apache.jetspeed.components.portletregistry.PortletRegistry
getPortletApplicationByIdentifier
public org.apache.jetspeed.om.common.portlet.MutablePortletApplication getPortletApplicationByIdentifier(String identifier)
- Specified by:
getPortletApplicationByIdentifier
in interface org.apache.jetspeed.components.portletregistry.PortletRegistry
getPortletApplications
public Collection getPortletApplications()
- Specified by:
getPortletApplications
in interface org.apache.jetspeed.components.portletregistry.PortletRegistry
getPortletDefinitionByIdentifier
public org.apache.jetspeed.om.common.portlet.PortletDefinitionComposite getPortletDefinitionByIdentifier(String identifier)
- Specified by:
getPortletDefinitionByIdentifier
in interface org.apache.jetspeed.components.portletregistry.PortletRegistry
getPortletDefinitionByUniqueName
public org.apache.jetspeed.om.common.portlet.PortletDefinitionComposite getPortletDefinitionByUniqueName(String name)
- Specified by:
getPortletDefinitionByUniqueName
in interface org.apache.jetspeed.components.portletregistry.PortletRegistry
portletApplicationExists
public boolean portletApplicationExists(String appIdentity)
- Specified by:
portletApplicationExists
in interface org.apache.jetspeed.components.portletregistry.PortletRegistry
namedPortletApplicationExists
public boolean namedPortletApplicationExists(String appName)
- Specified by:
namedPortletApplicationExists
in interface org.apache.jetspeed.components.portletregistry.PortletRegistry
portletDefinitionExists
public boolean portletDefinitionExists(String portletName,
org.apache.jetspeed.om.common.portlet.MutablePortletApplication app)
- Specified by:
portletDefinitionExists
in interface org.apache.jetspeed.components.portletregistry.PortletRegistry
portletDefinitionExists
public boolean portletDefinitionExists(String portletIdentity)
- Specified by:
portletDefinitionExists
in interface org.apache.jetspeed.components.portletregistry.PortletRegistry
registerPortletApplication
public void registerPortletApplication(org.apache.pluto.om.portlet.PortletApplicationDefinition newApp)
throws org.apache.jetspeed.components.portletregistry.RegistryException
- Specified by:
registerPortletApplication
in interface org.apache.jetspeed.components.portletregistry.PortletRegistry
- Throws:
org.apache.jetspeed.components.portletregistry.RegistryException
removeApplication
public void removeApplication(org.apache.pluto.om.portlet.PortletApplicationDefinition app)
throws org.apache.jetspeed.components.portletregistry.RegistryException
- Specified by:
removeApplication
in interface org.apache.jetspeed.components.portletregistry.PortletRegistry
- Throws:
org.apache.jetspeed.components.portletregistry.RegistryException
updatePortletApplication
public void updatePortletApplication(org.apache.pluto.om.portlet.PortletApplicationDefinition app)
throws org.apache.jetspeed.components.portletregistry.RegistryException
- Specified by:
updatePortletApplication
in interface org.apache.jetspeed.components.portletregistry.PortletRegistry
- Throws:
org.apache.jetspeed.components.portletregistry.RegistryException
postLoad
private void postLoad(Object obj)
postLoadColl
private void postLoadColl(Collection coll)
savePortletDefinition
public void savePortletDefinition(org.apache.pluto.om.portlet.PortletDefinition portlet)
throws org.apache.jetspeed.components.portletregistry.FailedToStorePortletDefinitionException
- Specified by:
savePortletDefinition
in interface org.apache.jetspeed.components.portletregistry.PortletRegistry
- Throws:
org.apache.jetspeed.components.portletregistry.FailedToStorePortletDefinitionException
getPortletDefinition
public org.apache.jetspeed.om.common.portlet.PortletDefinitionComposite getPortletDefinition(org.apache.pluto.om.common.ObjectID id)
- Specified by:
getPortletDefinition
in interface org.apache.jetspeed.components.portletregistry.PortletRegistry
notifyElementAdded
public void notifyElementAdded(org.apache.jetspeed.cache.JetspeedCache cache,
boolean local,
Object key,
Object element)
- Specified by:
notifyElementAdded
in interface org.apache.jetspeed.cache.JetspeedCacheEventListener
notifyElementChanged
public void notifyElementChanged(org.apache.jetspeed.cache.JetspeedCache cache,
boolean local,
Object key,
Object element)
- Specified by:
notifyElementChanged
in interface org.apache.jetspeed.cache.JetspeedCacheEventListener
notifyElementEvicted
public void notifyElementEvicted(org.apache.jetspeed.cache.JetspeedCache cache,
boolean local,
Object key,
Object element)
- Specified by:
notifyElementEvicted
in interface org.apache.jetspeed.cache.JetspeedCacheEventListener
notifyElementExpired
public void notifyElementExpired(org.apache.jetspeed.cache.JetspeedCache cache,
boolean local,
Object key,
Object element)
- Specified by:
notifyElementExpired
in interface org.apache.jetspeed.cache.JetspeedCacheEventListener
notifyElementRemoved
public void notifyElementRemoved(org.apache.jetspeed.cache.JetspeedCache cache,
boolean local,
Object key,
Object element)
- Specified by:
notifyElementRemoved
in interface org.apache.jetspeed.cache.JetspeedCacheEventListener
addRegistryListener
public void addRegistryListener(org.apache.jetspeed.components.portletregistry.RegistryEventListener listener)
- Specified by:
addRegistryListener
in interface org.apache.jetspeed.components.portletregistry.PortletRegistry
removeRegistryEventListner
public void removeRegistryEventListner(org.apache.jetspeed.components.portletregistry.RegistryEventListener listener)
- Specified by:
removeRegistryEventListner
in interface org.apache.jetspeed.components.portletregistry.PortletRegistry
Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.