Class AliasPortletDAO
- java.lang.Object
-
- fr.paris.lutece.portal.business.portlet.AliasPortletDAO
-
- All Implemented Interfaces:
IAliasPortletDAO,IPortletInterfaceDAO
public final class AliasPortletDAO extends Object implements IAliasPortletDAO
This class provides Data Access methods for AliasPortlet objects
-
-
Constructor Summary
Constructors Constructor Description AliasPortletDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(int nPortletId)Delete a record from the tablevoidinsert(Portlet portlet)Insert a new record in the table.Portletload(int nIdPortlet)Load the data of a portlet from the databaseCollection<Portlet>selectAcceptAliasPortletList()Select all portlets that accept aliasReferenceListselectAcceptAliasPortletRefList()Select all portlets that accept aliasintselectAliasId(int nIdPortlet)Select the Alias IdReferenceListselectPortletsByTypeList(String strPortletTypeId)Select portlets by typevoidstore(Portlet portlet)Update the record in the table
-
-
-
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:
insertin interfaceIAliasPortletDAO- Specified by:
insertin interfaceIPortletInterfaceDAO- Parameters:
portlet- the portlet to insert in the database
-
delete
public void delete(int nPortletId)
Delete a record from the table- Specified by:
deletein interfaceIAliasPortletDAO- Specified by:
deletein interfaceIPortletInterfaceDAO- 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:
loadin interfaceIAliasPortletDAO- Specified by:
loadin interfaceIPortletInterfaceDAO- 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:
storein interfaceIAliasPortletDAO- Specified by:
storein interfaceIPortletInterfaceDAO- Parameters:
portlet- the portlet reference
-
selectPortletsByTypeList
public ReferenceList selectPortletsByTypeList(String strPortletTypeId)
Select portlets by type- Specified by:
selectPortletsByTypeListin interfaceIAliasPortletDAO- Parameters:
strPortletTypeId- The type Id- Returns:
- A list of portlets
-
selectAliasId
public int selectAliasId(int nIdPortlet)
Select the Alias Id- Specified by:
selectAliasIdin interfaceIAliasPortletDAO- Parameters:
nIdPortlet- The portlet Id- Returns:
- The alias Id
-
selectAcceptAliasPortletRefList
public ReferenceList selectAcceptAliasPortletRefList()
Select all portlets that accept alias- Specified by:
selectAcceptAliasPortletRefListin interfaceIAliasPortletDAO- Returns:
- A reference list
-
selectAcceptAliasPortletList
public Collection<Portlet> selectAcceptAliasPortletList()
Select all portlets that accept alias- Specified by:
selectAcceptAliasPortletListin interfaceIAliasPortletDAO- Returns:
- A Portlet list
-
-