fr.paris.lutece.plugins.jcr.business.portlet
Class Jsr170PortletDAO

java.lang.Object
  extended by fr.paris.lutece.plugins.jcr.business.portlet.Jsr170PortletDAO
All Implemented Interfaces:
fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO

public final class Jsr170PortletDAO
extends Object
implements fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO

this class provides Data Access methods for Jsr170Portlet objects


Method Summary
 void delete(int nPortletId)
          Delete record from table
 Jsr170Portlet findByPortletId(int nPortletId)
           
 void insert(fr.paris.lutece.portal.business.portlet.Portlet portlet)
          Insert a new record in the table.
 fr.paris.lutece.portal.business.portlet.Portlet load(int nIdPortlet)
          load the data of Jsr170Portlet from the table
 Collection<Jsr170Portlet> selectByViewId(int nViewId)
          Find all portlets attached to a view
 void store(fr.paris.lutece.portal.business.portlet.Portlet portlet)
          Update the record in the table
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

delete

public void delete(int nPortletId)
Delete record from table

Specified by:
delete in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
Parameters:
nPortletId - The indentifier of the Portlet

insert

public void insert(fr.paris.lutece.portal.business.portlet.Portlet portlet)
Insert a new record in the table.

Specified by:
insert in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
Parameters:
portlet - The Instance of the Portlet

load

public fr.paris.lutece.portal.business.portlet.Portlet load(int nIdPortlet)
load the data of Jsr170Portlet from the table

Specified by:
load in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
Parameters:
nIdPortlet - The indentifier of the portlet
Returns:
portlet The instance of the object portlet

store

public void store(fr.paris.lutece.portal.business.portlet.Portlet portlet)
Update the record in the table

Specified by:
store in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
Parameters:
portlet - The reference of the portlet

selectByViewId

public Collection<Jsr170Portlet> selectByViewId(int nViewId)
Find all portlets attached to a view

Parameters:
nViewId - the view Id
Returns:
a collection of portlets

findByPortletId

public Jsr170Portlet findByPortletId(int nPortletId)


Copyright © 2014 Mairie de Paris. All Rights Reserved.