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 levelstatic LevelfindByPrimaryKey(int nKey) Returns an instance of an level whose identifier is specified in parameterstatic Collection<Level>Return the list of all the levelsstatic intGenerates a new primary keystatic voidremove(int nId) Remove the level whose identifier is specified in parameterstatic LevelUpdate of the level which is specified
-
Method Details
-
create
Creation of an instance of a level- Parameters:
level- An instance of a level which contains the informations to store- Returns:
- The instance of a level which has been created with its primary key.
-
update
Update of the level which is specified- Parameters:
level- The instance of the level which contains the data to store- Returns:
- The instance of the level which has been updated
-
remove
public static void remove(int nId) Remove the level whose identifier is specified in parameter- Parameters:
nId- The identifier of the level to remove
-
findByPrimaryKey
Returns an instance of an level whose identifier is specified in parameter- Parameters:
nKey- The level primary key- Returns:
- an instance of a level
-
getLevelsList
Return the list of all the levels- Returns:
- A collection of levels objects
-
newPrimaryKey
public static int newPrimaryKey()Generates a new primary key- Returns:
- The new primary key
-