fr.paris.lutece.plugins.menus.business
Class MenusHome

java.lang.Object
  extended by fr.paris.lutece.plugins.menus.business.MenusHome

public final class MenusHome
extends java.lang.Object

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


Method Summary
static Menus create(Menus menus, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Create an instance of the menus class
static java.util.Collection<Menus> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of all the menus objects and returns them in form of a collection
static Menus findByPrimaryKey(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns an instance of a menus whose identifier is specified in parameter
static int getNbMenus(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Search the number of portlet type for a portlet
static void remove(int nMenusId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Remove the menus whose identifier is specified in parameter
static Menus update(Menus menus, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update of the menus which 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 Menus create(Menus menus,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Create an instance of the menus class

Parameters:
menus - The instance of the Menus which contains the informations to store
plugin - the Plugin
Returns:
The instance of menus which has been created with its primary key.

update

public static Menus update(Menus menus,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update of the menus which is specified in parameter

Parameters:
menus - The instance of the Menus which contains the data to store
plugin - the Plugin
Returns:
The instance of the menus which has been updated

remove

public static void remove(int nMenusId,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove the menus whose identifier is specified in parameter

Parameters:
nMenusId - The menus Id
plugin - the Plugin

findByPrimaryKey

public static Menus findByPrimaryKey(int nKey,
                                     fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of a menus whose identifier is specified in parameter

Parameters:
nKey - The menus primary key
plugin - the Plugin
Returns:
an instance of Menus

findAll

public static java.util.Collection<Menus> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the menus objects and returns them in form of a collection

Parameters:
plugin - the Plugin
Returns:
the collection which contains the data of all the menus objects

getNbMenus

public static int getNbMenus(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Search the number of portlet type for a portlet

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


Copyright © 2011 Mairie de Paris. All Rights Reserved.