Class PortletTypeDAO
- java.lang.Object
-
- fr.paris.lutece.portal.business.portlet.PortletTypeDAO
-
- All Implemented Interfaces:
IPortletTypeDAO
public final class PortletTypeDAO extends java.lang.Object implements IPortletTypeDAO
This class provides Data Access methods for PortletType objects
-
-
Constructor Summary
Constructors Constructor Description PortletTypeDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(java.lang.String strPortletTypeId)Delete a record from the tablevoidinsert(PortletType portletType)Insert a new record in the table PortletTypePortletTypeload(java.lang.String strPortletTypeId)Load the data of PortletType from the tableintselectNbPortletTypeByPortlet(java.lang.String strPortletTypeId)Returns the portlet count for a given providerReferenceListselectPortletsTypesList(java.util.Locale locale)Return a Reference List of portletTypejava.lang.StringselectPortletTypeId(java.lang.String strPluginHomeClass)Returns the portlet type identifierjava.util.List<PortletType>selectPortletTypesList()Returns the list of the portlet types
-
-
-
Method Detail
-
insert
public void insert(PortletType portletType)
Insert a new record in the table PortletType- Specified by:
insertin interfaceIPortletTypeDAO- Parameters:
portletType- The portlet Type object
-
load
public PortletType load(java.lang.String strPortletTypeId)
Load the data of PortletType from the table- Specified by:
loadin interfaceIPortletTypeDAO- Parameters:
strPortletTypeId- The identifier of PortletType- Returns:
- The instance of the PortletType
-
delete
public void delete(java.lang.String strPortletTypeId)
Delete a record from the table- Specified by:
deletein interfaceIPortletTypeDAO- Parameters:
strPortletTypeId- The POrtletTYpe identifier
-
selectPortletTypeId
public java.lang.String selectPortletTypeId(java.lang.String strPluginHomeClass)
Returns the portlet type identifier- Specified by:
selectPortletTypeIdin interfaceIPortletTypeDAO- Parameters:
strPluginHomeClass- the name of the portlet type- Returns:
- the identifier of the portlet type
-
selectNbPortletTypeByPortlet
public int selectNbPortletTypeByPortlet(java.lang.String strPortletTypeId)
Returns the portlet count for a given provider- Specified by:
selectNbPortletTypeByPortletin interfaceIPortletTypeDAO- Parameters:
strPortletTypeId- The provider's identifier- Returns:
- nCount
-
selectPortletsTypesList
public ReferenceList selectPortletsTypesList(java.util.Locale locale)
Return a Reference List of portletType- Specified by:
selectPortletsTypesListin interfaceIPortletTypeDAO- Parameters:
locale- The current locale- Returns:
- list The reference List
-
selectPortletTypesList
public java.util.List<PortletType> selectPortletTypesList()
Returns the list of the portlet types- Specified by:
selectPortletTypesListin interfaceIPortletTypeDAO- Returns:
- the list of the portlet types
-
-