Class LevelHome
java.lang.Object
fr.paris.lutece.portal.business.right.LevelHome
This class provides instances management methods (create, find, ...) for Level right objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic LevelCreation of an instance of a modestatic LevelfindByPrimaryKey(int nKey) Returns an instance of an mode whose identifier is specified in parameterstatic Collection<Level>Return the list of all the modesstatic voidremove(int nId) Remove the mode whose identifier is specified in parameterstatic LevelUpdate of the mode which is specified
-
Method Details
-
create
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
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
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
Return the list of all the modes- Returns:
- A collection of modes objects
-