Class EditorProfileHome

java.lang.Object
fr.paris.lutece.portal.business.editor.EditorProfileHome

public final class EditorProfileHome extends Object
Home of the editor profiles
  • Method Details

    • create

      public static EditorProfile create(EditorProfile profile)
      Creates a profile, after the existing profiles of its editor in the order of priority
      Parameters:
      profile - the profile
      Returns:
      the profile, with its identifier
    • update

      public static EditorProfile update(EditorProfile profile)
      Updates a profile and its targets. The editor, the priority and the default flag are not changed.
      Parameters:
      profile - the profile
      Returns:
      the profile
    • remove

      public static void remove(int nIdProfile)
      Removes a profile
      Parameters:
      nIdProfile - the identifier of the profile
    • findByPrimaryKey

      public static EditorProfile findByPrimaryKey(int nIdProfile)
      Parameters:
      nIdProfile - the identifier of the profile
      Returns:
      the profile with its targets, null if it does not exist
    • findAll

      public static List<EditorProfile> findAll()
      Returns:
      the profiles with their targets, by editor, then by priority with the default profile of each editor last
    • updatePriority

      public static void updatePriority(int nIdProfile, int nPriority)
      Updates the priority of a profile
      Parameters:
      nIdProfile - the identifier of the profile
      nPriority - the priority