org.jasig.portal.portlet.dao.jpa
Class JpaPortletDefinitionDao

java.lang.Object
  extended by org.jasig.portal.portlet.dao.jpa.JpaPortletDefinitionDao
All Implemented Interfaces:
IPortletDefinitionDao

@Repository
public class JpaPortletDefinitionDao
extends Object
implements IPortletDefinitionDao

JPA implementation of the portlet definition DAO

Version:
$Revision$
Author:
Eric Dalquist

Constructor Summary
JpaPortletDefinitionDao()
           
 
Method Summary
 EntityManager getEntityManager()
           
 IPortletDefinition getPortletDefinition(int channelPublishId)
          Get an existing portlet definition for the channel publish id.
 IPortletDefinition getPortletDefinition(IPortletDefinitionId portletDefinitionId)
          Get a IPortletDefinition for the specified IPortletDefinitionId.
 void setChannelDefinitionDao(IChannelDefinitionDao channelDefinitionDao)
           
 void setEntityManager(EntityManager entityManager)
           
 void updatePortletDefinition(IPortletDefinition portletDefinition)
          Persists changes to a IPortletDefinition.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JpaPortletDefinitionDao

public JpaPortletDefinitionDao()
Method Detail

getEntityManager

public EntityManager getEntityManager()
Returns:
the entityManager

setEntityManager

public void setEntityManager(EntityManager entityManager)
Parameters:
entityManager - the entityManager to set

setChannelDefinitionDao

public void setChannelDefinitionDao(IChannelDefinitionDao channelDefinitionDao)

getPortletDefinition

public IPortletDefinition getPortletDefinition(int channelPublishId)
Description copied from interface: IPortletDefinitionDao
Get an existing portlet definition for the channel publish id. If no definition exists for the id null will be returned.

Specified by:
getPortletDefinition in interface IPortletDefinitionDao
Parameters:
channelPublishId - The id of the org.jasig.portal.ChannelDefinition this portlet definition represents.
Returns:
The portlet definition for the channelPublishId, null if no definition exists for the id.

getPortletDefinition

public IPortletDefinition getPortletDefinition(IPortletDefinitionId portletDefinitionId)
Description copied from interface: IPortletDefinitionDao
Get a IPortletDefinition for the specified IPortletDefinitionId.

Specified by:
getPortletDefinition in interface IPortletDefinitionDao
Parameters:
portletDefinitionId - The id to get the definition for.
Returns:
The portlet definition for the id, null if no definition exists for the id.

updatePortletDefinition

@Transactional
public void updatePortletDefinition(IPortletDefinition portletDefinition)
Description copied from interface: IPortletDefinitionDao
Persists changes to a IPortletDefinition.

Specified by:
updatePortletDefinition in interface IPortletDefinitionDao
Parameters:
portletDefinition - The portlet definition to store the changes for


Copyright © 2010 Jasig. All Rights Reserved.