Class AliasPortletDAO
java.lang.Object
fr.paris.lutece.portal.business.portlet.AliasPortletDAO
- All Implemented Interfaces:
IAliasPortletDAO,IPortletInterfaceDAO
This class provides Data Access methods for AliasPortlet objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nPortletId) Delete a record from the tablevoidInsert a new record in the table.load(int nIdPortlet) Load the data of a portlet from the databaseSelect all portlets that accept aliasSelect all portlets that accept aliasintselectAliasId(int nIdPortlet) Select the Alias IdselectPortletsByTypeList(String strPortletTypeId) Select portlets by typevoidUpdate the record in the table
-
Constructor Details
-
AliasPortletDAO
public AliasPortletDAO()
-
-
Method Details
-
insert
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
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
Update the record in the table- Specified by:
storein interfaceIAliasPortletDAO- Specified by:
storein interfaceIPortletInterfaceDAO- Parameters:
portlet- the portlet reference
-
selectPortletsByTypeList
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
Select all portlets that accept alias- Specified by:
selectAcceptAliasPortletRefListin interfaceIAliasPortletDAO- Returns:
- A reference list
-
selectAcceptAliasPortletList
Select all portlets that accept alias- Specified by:
selectAcceptAliasPortletListin interfaceIAliasPortletDAO- Returns:
- A Portlet list
-