Class PortletTypeDAO

java.lang.Object
fr.paris.lutece.portal.business.portlet.PortletTypeDAO
All Implemented Interfaces:
IPortletTypeDAO

public final class PortletTypeDAO extends Object implements IPortletTypeDAO
This class provides Data Access methods for PortletType objects
  • Constructor Details

    • PortletTypeDAO

      public PortletTypeDAO()
  • Method Details

    • insert

      public void insert(PortletType portletType)
      Insert a new record in the table PortletType
      Specified by:
      insert in interface IPortletTypeDAO
      Parameters:
      portletType - The portlet Type object
    • load

      public PortletType load(String strPortletTypeId)
      Load the data of PortletType from the table
      Specified by:
      load in interface IPortletTypeDAO
      Parameters:
      strPortletTypeId - The identifier of PortletType
      Returns:
      The instance of the PortletType
    • delete

      public void delete(String strPortletTypeId)
      Delete a record from the table
      Specified by:
      delete in interface IPortletTypeDAO
      Parameters:
      strPortletTypeId - The POrtletTYpe identifier
    • selectPortletTypeId

      public String selectPortletTypeId(String strPluginHomeClass)
      Returns the portlet type identifier
      Specified by:
      selectPortletTypeId in interface IPortletTypeDAO
      Parameters:
      strPluginHomeClass - the name of the portlet type
      Returns:
      the identifier of the portlet type
    • selectNbPortletTypeByPortlet

      public int selectNbPortletTypeByPortlet(String strPortletTypeId)
      Returns the portlet count for a given provider
      Specified by:
      selectNbPortletTypeByPortlet in interface IPortletTypeDAO
      Parameters:
      strPortletTypeId - The provider's identifier
      Returns:
      nCount
    • selectPortletsTypesList

      public ReferenceList selectPortletsTypesList(Locale locale)
      Return a Reference List of portletType
      Specified by:
      selectPortletsTypesList in interface IPortletTypeDAO
      Parameters:
      locale - The current locale
      Returns:
      list The reference List
    • selectPortletTypesList

      public List<PortletType> selectPortletTypesList()
      Returns the list of the portlet types
      Specified by:
      selectPortletTypesList in interface IPortletTypeDAO
      Returns:
      the list of the portlet types