Class LevelHome
- java.lang.Object
-
- fr.paris.lutece.portal.business.right.LevelHome
-
public final class LevelHome extends java.lang.ObjectThis class provides instances management methods (create, find, ...) for Level right objects
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Levelcreate(Level mode)Creation of an instance of a modestatic LevelfindByPrimaryKey(int nKey)Returns an instance of an mode whose identifier is specified in parameterstatic java.util.Collection<Level>getLevelsList()Return the list of all the modesstatic voidremove(int nId)Remove the mode whose identifier is specified in parameterstatic Levelupdate(Level mode)Update of the mode which is specified
-
-
-
Method Detail
-
create
public static Level create(Level mode)
Creation of an instance of a mode- Parameters:
mode- An instance of a mode which contains the informations to store- Returns:
- The instance of a mode which has been created with its primary key.
-
update
public static Level update(Level mode)
Update of the mode which is specified- Parameters:
mode- The instance of the mode which contains the data to store- Returns:
- The instance of the mode which has been updated
-
remove
public static void remove(int nId)
Remove the mode whose identifier is specified in parameter- Parameters:
nId- The identifier of the mode to remove
-
findByPrimaryKey
public static Level findByPrimaryKey(int nKey)
Returns an instance of an mode whose identifier is specified in parameter- Parameters:
nKey- The mode primary key- Returns:
- an instance of a mode
-
getLevelsList
public static java.util.Collection<Level> getLevelsList()
Return the list of all the modes- Returns:
- A collection of modes objects
-
-