Class PortletTypeHome
java.lang.Object
fr.paris.lutece.portal.business.portlet.PortletTypeHome
This class provides instances management methods (create, find, ...) for PortletType objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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 the portlet type whose identifier is specified in parameter
-
Method Details
-
create
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
Remove the portlet type whose identifier is specified in parameter- Parameters:
strPortletTypeId- The identifier of the portlet type to remove
-
findByPrimaryKey
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
Return the id of a portlet type- Parameters:
strPluginHomeClass- The identifier of the portlet- Returns:
- The order max
-
getNbPortletTypeByPortlet
Search the number of portlet type for a portlet- Parameters:
strPortletTypeId- The Type Id of portlet- Returns:
- int
-
getPortletsTypesList
Returns the list of the portlet types- Parameters:
locale- The locale- Returns:
- the list of portlet types
-
getPortletTypesList
Returns the list of the portlet types- Parameters:
locale- The locale- Returns:
- the list of portlet types
-