Class ModeHome

java.lang.Object
fr.paris.lutece.portal.business.style.ModeHome

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

    • create

      public static Mode create(Mode 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 Mode update(Mode 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 Mode 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
    • getModesList

      public static Collection<Mode> getModesList()
      Return the list of all the modes
      Returns:
      A collection of modes objects
    • getModes

      public static ReferenceList getModes()
      Returns a reference list which contains all the modes
      Returns:
      a reference list
    • getOuputXslProperties

      public static Properties getOuputXslProperties(int nKey)
      Returns a set of properties used for xsl output
      Parameters:
      nKey - The mode primary key
      Returns:
      the output properties to use for xsl transformation