fr.paris.lutece.portal.business.portlet
Class AliasPortletDAO

java.lang.Object
  extended by fr.paris.lutece.portal.business.portlet.AliasPortletDAO
All Implemented Interfaces:
IAliasPortletDAO, IPortletInterfaceDAO

public final class AliasPortletDAO
extends java.lang.Object
implements IAliasPortletDAO

This class provides Data Access methods for AliasPortlet objects


Constructor Summary
AliasPortletDAO()
           
 
Method Summary
 void delete(int nPortletId)
          Delete a record from the table
 void insert(Portlet portlet)
          Insert a new record in the table.
 Portlet load(int nIdPortlet)
          Load the data of a portlet from the database
 ReferenceList selectAcceptAliasPortletList()
          Select all portlets that accept alias
 int selectAliasId(int nIdPortlet)
          Select the Alias Id
 ReferenceList selectPortletsByTypeList(java.lang.String strPortletTypeId)
          Select portlets by type
 void store(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
 

Constructor Detail

AliasPortletDAO

public AliasPortletDAO()
Method Detail

insert

public void insert(Portlet portlet)
Insert a new record in the table. NB : The portlet identifier will already been obtained by the portlet girl

Specified by:
insert in interface IAliasPortletDAO
Specified by:
insert in interface IPortletInterfaceDAO
Parameters:
portlet - the portlet to insert in the database

delete

public void delete(int nPortletId)
Delete a record from the table

Specified by:
delete in interface IAliasPortletDAO
Specified by:
delete in interface IPortletInterfaceDAO
Parameters:
nPortletId - the identifier of the portlet to be deleted

load

public Portlet load(int nIdPortlet)
Load the data of a portlet from the database

Specified by:
load in interface IAliasPortletDAO
Specified by:
load in interface IPortletInterfaceDAO
Parameters:
nIdPortlet - the portlet identifier
Returns:
the object Portlet initialized with the data of the database

store

public void store(Portlet portlet)
Update the record in the table

Specified by:
store in interface IAliasPortletDAO
Specified by:
store in interface IPortletInterfaceDAO
Parameters:
portlet - the portlet reference

selectPortletsByTypeList

public ReferenceList selectPortletsByTypeList(java.lang.String strPortletTypeId)
Select portlets by type

Specified by:
selectPortletsByTypeList in interface IAliasPortletDAO
Parameters:
strPortletTypeId - The type Id
Returns:
A list of portlets

selectAliasId

public int selectAliasId(int nIdPortlet)
Select the Alias Id

Specified by:
selectAliasId in interface IAliasPortletDAO
Parameters:
nIdPortlet - The portlet Id
Returns:
The alias Id

selectAcceptAliasPortletList

public ReferenceList selectAcceptAliasPortletList()
Select all portlets that accept alias

Specified by:
selectAcceptAliasPortletList in interface IAliasPortletDAO
Returns:
A reference list


Copyright © 2012 Mairie de Paris. All Rights Reserved.