org.apache.jetspeed.components.portletregistry
Class PersistenceBrokerPortletRegistry
java.lang.Object
org.springframework.orm.ojb.support.PersistenceBrokerDaoSupport
org.apache.jetspeed.components.dao.InitablePersistenceBrokerDaoSupport
org.apache.jetspeed.components.portletregistry.PersistenceBrokerPortletRegistry
- All Implemented Interfaces:
- org.apache.jetspeed.components.portletregistry.PortletRegistry
- public class PersistenceBrokerPortletRegistry
- extends org.apache.jetspeed.components.dao.InitablePersistenceBrokerDaoSupport
- implements org.apache.jetspeed.components.portletregistry.PortletRegistry
OjbPortletRegistry
- Version:
- $Id: PersistenceBrokerPortletRegistry.java 225622 2005-07-27 20:39:14Z weaver $
- Author:
- Scott T. Weaver
Fields inherited from class org.apache.jetspeed.components.dao.InitablePersistenceBrokerDaoSupport |
repositoryPath |
Fields inherited from class org.springframework.orm.ojb.support.PersistenceBrokerDaoSupport |
logger |
Methods inherited from class org.apache.jetspeed.components.dao.InitablePersistenceBrokerDaoSupport |
init |
Methods inherited from class org.springframework.orm.ojb.support.PersistenceBrokerDaoSupport |
afterPropertiesSet, closePersistenceBrokerIfNecessary, convertOjbAccessException, createPersistenceBrokerTemplate, getJcdAlias, getPersistenceBroker, getPersistenceBrokerTemplate, initDao, setJcdAlias, setPersistenceBrokerTemplate |
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
PersistenceBrokerPortletRegistry
public PersistenceBrokerPortletRegistry(String repositoryPath)
PersistenceBrokerPortletRegistry
public PersistenceBrokerPortletRegistry(String repositoryPath,
org.apache.jetspeed.factory.PortletFactory portletFactory)
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
Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.