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

java.lang.Object
  extended by fr.paris.lutece.portal.business.portlet.PortletTypeHome

public final class PortletTypeHome
extends java.lang.Object

This class provides instances management methods (create, find, ...) for PortletType objects


Method Summary
static PortletType create(PortletType portletType)
          Creation of an instance of an PortletType
static PortletType findByPrimaryKey(java.lang.String strKey)
          Returns an instance of an portletType whose identifier is specified in parameter
static int getNbPortletTypeByPortlet(java.lang.String strPortletTypeId)
          Search the number of portlet type for a portlet
static ReferenceList getPortletsTypesList(java.util.Locale locale)
          Returns the list of the portlet types
static java.lang.String getPortletTypeId(java.lang.String strPluginHomeClass)
          Return the id of a portlet type
static java.util.List<PortletType> getPortletTypesList(java.util.Locale locale)
          Returns the list of the portlet types
static void remove(java.lang.String strPortletTypeId)
          Remove the portlet type whose identifier is specified in parameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static PortletType create(PortletType portletType)
Creation of an instance of an PortletType

Parameters:
portletType - An instance of the PortletType which contains the informations to store
Returns:
The instance of PortletType which has been created with its primary key.

remove

public static void remove(java.lang.String strPortletTypeId)
Remove the portlet type whose identifier is specified in parameter

Parameters:
strPortletTypeId - The identifier of the portlet type to remove

findByPrimaryKey

public static PortletType findByPrimaryKey(java.lang.String strKey)
Returns an instance of an portletType whose identifier is specified in parameter

Parameters:
strKey - The Primary Key of the portletType
Returns:
an instance of portletType

getPortletTypeId

public static java.lang.String getPortletTypeId(java.lang.String strPluginHomeClass)
Return the id of a portlet type

Parameters:
strPluginHomeClass - The identifier of the portlet
Returns:
The order max

getNbPortletTypeByPortlet

public static int getNbPortletTypeByPortlet(java.lang.String strPortletTypeId)
Search the number of portlet type for a portlet

Parameters:
strPortletTypeId - The Type Id of portlet
Returns:
int

getPortletsTypesList

public static ReferenceList getPortletsTypesList(java.util.Locale locale)
Returns the list of the portlet types

Parameters:
locale - The locale
Returns:
the list of portlet types

getPortletTypesList

public static java.util.List<PortletType> getPortletTypesList(java.util.Locale locale)
Returns the list of the portlet types

Parameters:
locale - The locale
Returns:
the list of portlet types


Copyright © 2011 Mairie de Paris. All Rights Reserved.