Class LevelHome

java.lang.Object
fr.paris.lutece.portal.business.right.LevelHome

public final class LevelHome extends Object
This class provides instances management methods (create, find, ...) for Level right objects
  • Method Details

    • create

      public static Level create(Level level)
      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

      public static Level update(Level level)
      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

      public static Level findByPrimaryKey(int nKey)
      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

      public static Collection<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