org.apache.jetspeed.components.portletentity
Class PersistenceBrokerPortletEntityAccess

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.ojb.support.PersistenceBrokerDaoSupport
          extended by org.apache.jetspeed.components.portletentity.PersistenceBrokerPortletEntityAccess
All Implemented Interfaces:
PortletEntityAccessComponent, org.springframework.beans.factory.InitializingBean

public class PersistenceBrokerPortletEntityAccess
extends org.springframework.orm.ojb.support.PersistenceBrokerDaoSupport
implements PortletEntityAccessComponent

PersistenceStorePortletEntityAccess

Version:
$Id: PersistenceBrokerPortletEntityAccess.java,v 1.5 2005/04/29 13:59:08 weaver Exp $
Author:
Scott T. Weaver

Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
PersistenceBrokerPortletEntityAccess(PortletRegistry registry)
           
PersistenceBrokerPortletEntityAccess(PortletRegistry registry, boolean mergeSharedPreferences)
           
 
Method Summary
protected  java.lang.String autoGenerateID(PortletDefinition pd)
           
 PortletEntity generateEntityFromFragment(ContentFragment fragment)
           generateEntityFromFragment
 java.lang.String generateEntityKey(ContentFragment fragment)
           generateEntityKey
 java.util.Collection getPortletEntities(PortletDefinition portletDefinition)
           getPortletEntities
 java.util.Collection getPortletEntities(java.lang.String portletUniqueName)
           
 PortletEntity getPortletEntity(java.lang.String id)
           
protected  PortletEntity getPortletEntity(java.lang.String id, ContentFragment fragment)
           
 PortletEntity getPortletEntityForFragment(ContentFragment fragment)
           
 boolean isMergeSharedPreferences()
           
 PortletEntity newPortletEntityInstance(PortletDefinition portletDefinition)
           
 PortletEntity newPortletEntityInstance(PortletDefinition portletDefinition, java.lang.String id)
           
 void removeFromCache(PortletEntity entity)
           
 void removePortletEntities(PortletDefinition portletDefinition)
           
 void removePortletEntity(PortletEntity portletEntity)
           
 void storePortletEntity(PortletEntity portletEntity)
           
 void updatePortletEntity(PortletEntity portletEntity, ContentFragment fragment)
           updatePortletEntity
 
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
 

Constructor Detail

PersistenceBrokerPortletEntityAccess

public PersistenceBrokerPortletEntityAccess(PortletRegistry registry)
Parameters:
registry -

PersistenceBrokerPortletEntityAccess

public PersistenceBrokerPortletEntityAccess(PortletRegistry registry,
                                            boolean mergeSharedPreferences)
Method Detail

generateEntityFromFragment

public PortletEntity generateEntityFromFragment(ContentFragment fragment)
                                         throws PortletEntityNotGeneratedException

generateEntityFromFragment

Specified by:
generateEntityFromFragment in interface PortletEntityAccessComponent
Parameters:
fragment -
Returns:
@throws PortletEntityNotGeneratedException
Throws:
PortletEntityNotGeneratedException
See Also:
org.apache.jetspeed.components.portletentity.PortletEntityAccessComponent#generateEntityFromFragment(org.apache.jetspeed.om.page.Fragment)

generateEntityKey

public java.lang.String generateEntityKey(ContentFragment fragment)

generateEntityKey

Specified by:
generateEntityKey in interface PortletEntityAccessComponent
Parameters:
fragment -
principal -
Returns:
See Also:
org.apache.jetspeed.components.portletentity.PortletEntityAccessComponent#generateEntityKey(org.apache.jetspeed.om.page.Fragment, java.lang.String)

getPortletEntities

public java.util.Collection getPortletEntities(PortletDefinition portletDefinition)

getPortletEntities

Specified by:
getPortletEntities in interface PortletEntityAccessComponent
Parameters:
portletDefinition -
Returns:
See Also:
org.apache.jetspeed.components.portletentity.PortletEntityAccessComponent#getPortletEntities(org.apache.pluto.container.om.portlet.PortletDefinition)

getPortletEntities

public java.util.Collection getPortletEntities(java.lang.String portletUniqueName)
Specified by:
getPortletEntities in interface PortletEntityAccessComponent

getPortletEntity

public PortletEntity getPortletEntity(java.lang.String id)
Specified by:
getPortletEntity in interface PortletEntityAccessComponent

getPortletEntity

protected PortletEntity getPortletEntity(java.lang.String id,
                                         ContentFragment fragment)
                                  throws PortletEntityNotStoredException
Throws:
PortletEntityNotStoredException

getPortletEntityForFragment

public PortletEntity getPortletEntityForFragment(ContentFragment fragment)
                                          throws PortletEntityNotStoredException
Specified by:
getPortletEntityForFragment in interface PortletEntityAccessComponent
Throws:
PortletEntityNotStoredException

newPortletEntityInstance

public PortletEntity newPortletEntityInstance(PortletDefinition portletDefinition)
Specified by:
newPortletEntityInstance in interface PortletEntityAccessComponent

newPortletEntityInstance

public PortletEntity newPortletEntityInstance(PortletDefinition portletDefinition,
                                              java.lang.String id)
Specified by:
newPortletEntityInstance in interface PortletEntityAccessComponent

removeFromCache

public void removeFromCache(PortletEntity entity)
Specified by:
removeFromCache in interface PortletEntityAccessComponent

removePortletEntities

public void removePortletEntities(PortletDefinition portletDefinition)
                           throws PortletEntityNotDeletedException
Specified by:
removePortletEntities in interface PortletEntityAccessComponent
Throws:
PortletEntityNotDeletedException

removePortletEntity

public void removePortletEntity(PortletEntity portletEntity)
                         throws PortletEntityNotDeletedException
Specified by:
removePortletEntity in interface PortletEntityAccessComponent
Throws:
PortletEntityNotDeletedException

updatePortletEntity

public void updatePortletEntity(PortletEntity portletEntity,
                                ContentFragment fragment)
                         throws PortletEntityNotStoredException

updatePortletEntity

Updates portlet definition associated with the portlet entity to match the fragment configuration

Specified by:
updatePortletEntity in interface PortletEntityAccessComponent
Parameters:
portletEntity -
fragment -
Throws:
PortletEntityNotStoredException

storePortletEntity

public void storePortletEntity(PortletEntity portletEntity)
                        throws PortletEntityNotStoredException
Specified by:
storePortletEntity in interface PortletEntityAccessComponent
Throws:
PortletEntityNotStoredException

autoGenerateID

protected java.lang.String autoGenerateID(PortletDefinition pd)

isMergeSharedPreferences

public boolean isMergeSharedPreferences()
Specified by:
isMergeSharedPreferences in interface PortletEntityAccessComponent


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