|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portal.portlet.dao.jpa.JpaPortletEntityDao
@Repository public class JpaPortletEntityDao
| Constructor Summary | |
|---|---|
JpaPortletEntityDao()
|
|
| Method Summary | |
|---|---|
IPortletEntity |
createPortletEntity(IPortletDefinitionId portletDefinitionId,
String channelSubscribeId,
int userId)
Creates, initializes and persists a new IPortletEntity based on the specified IPortletDefinitionId,
channel subscribe id and user id. |
void |
deletePortletEntity(IPortletEntity portletEntity)
Removes the specified IPortletEntity from the persistent store. |
EntityManager |
getEntityManager()
|
IPortletDefinitionDao |
getPortletDefinitionDao()
|
Set<IPortletEntity> |
getPortletEntities(IPortletDefinitionId portletDefinitionId)
Get all IPortletEntitys based on the specified IPortletDefinitionId. |
Set<IPortletEntity> |
getPortletEntitiesForUser(int userId)
Get all IPortletEntitys that exist for the specified user id. |
IPortletEntity |
getPortletEntity(IPortletEntityId portletEntityId)
Get a IPortletEntity for the specified IPortletEntityId. |
IPortletEntity |
getPortletEntity(String channelSubscribeId,
int userId)
Get a IPortletEntity for the specified channel subscribe id and user id. |
void |
setEntityManager(EntityManager entityManager)
|
void |
setPortletDefinitionDao(IPortletDefinitionDao portletDefinitionDao)
|
void |
updatePortletEntity(IPortletEntity portletEntity)
Persists changes to a IPortletEntity. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JpaPortletEntityDao()
| Method Detail |
|---|
public EntityManager getEntityManager()
public void setEntityManager(EntityManager entityManager)
entityManager - the entityManager to setpublic IPortletDefinitionDao getPortletDefinitionDao()
public void setPortletDefinitionDao(IPortletDefinitionDao portletDefinitionDao)
portletDefinitionDao - the portletDefinitionDao to set
@Transactional
public IPortletEntity createPortletEntity(IPortletDefinitionId portletDefinitionId,
String channelSubscribeId,
int userId)
IPortletEntityDaoIPortletEntity based on the specified IPortletDefinitionId,
channel subscribe id and user id.
createPortletEntity in interface IPortletEntityDaoportletDefinitionId - The id of the IPortletDefinition that is the parent of the new entitychannelSubscribeId - The subscription id for the channel the entity is based on in the user's layout.userId - The id of the user the entity is for.
@Transactional public void deletePortletEntity(IPortletEntity portletEntity)
IPortletEntityDaoIPortletEntity from the persistent store.
deletePortletEntity in interface IPortletEntityDaoportletEntity - The entity to remove.public IPortletEntity getPortletEntity(IPortletEntityId portletEntityId)
IPortletEntityDaoIPortletEntity for the specified IPortletEntityId.
getPortletEntity in interface IPortletEntityDaoportletEntityId - The id to get the entity for.
public IPortletEntity getPortletEntity(String channelSubscribeId,
int userId)
IPortletEntityDaoIPortletEntity for the specified channel subscribe id and user id.
getPortletEntity in interface IPortletEntityDaochannelSubscribeId - The channel subscription id from the user's layout to get the entity foruserId - The user id to get the entity for
public Set<IPortletEntity> getPortletEntities(IPortletDefinitionId portletDefinitionId)
IPortletEntityDaoIPortletEntitys based on the specified IPortletDefinitionId.
getPortletEntities in interface IPortletEntityDaoportletDefinitionId - The ID of the parent portlet definition
public Set<IPortletEntity> getPortletEntitiesForUser(int userId)
IPortletEntityDaoIPortletEntitys that exist for the specified user id. (From IPerson.getID().
getPortletEntitiesForUser in interface IPortletEntityDaouserId - The id of the user to get the entities for.
@Transactional public void updatePortletEntity(IPortletEntity portletEntity)
IPortletEntityDaoIPortletEntity.
updatePortletEntity in interface IPortletEntityDaoportletEntity - The portlet entity to store the changes for
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||