Class PortletTypeHome
- java.lang.Object
-
- fr.paris.lutece.portal.business.portlet.PortletTypeHome
-
public final class PortletTypeHome extends Object
This class provides instances management methods (create, find, ...) for PortletType objects
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PortletTypecreate(PortletType portletType)Creation of an instance of an PortletTypestatic PortletTypefindByPrimaryKey(String strKey)Returns an instance of an portletType whose identifier is specified in parameterstatic intgetNbPortletTypeByPortlet(String strPortletTypeId)Search the number of portlet type for a portletstatic ReferenceListgetPortletsTypesList(Locale locale)Returns the list of the portlet typesstatic StringgetPortletTypeId(String strPluginHomeClass)Return the id of a portlet typestatic List<PortletType>getPortletTypesList(Locale locale)Returns the list of the portlet typesstatic voidremove(String strPortletTypeId)Remove the portlet type whose identifier is specified in parameter
-
-
-
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(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(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 String getPortletTypeId(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(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(Locale locale)
Returns the list of the portlet types- Parameters:
locale- The locale- Returns:
- the list of portlet types
-
getPortletTypesList
public static List<PortletType> getPortletTypesList(Locale locale)
Returns the list of the portlet types- Parameters:
locale- The locale- Returns:
- the list of portlet types
-
-