java.lang.Object
fr.paris.lutece.plugins.genericattributes.business.EntryTypeHome

public final class EntryTypeHome extends Object
class EntryTypeHome
  • Method Details

    • findByPrimaryKey

      public static EntryType findByPrimaryKey(int nKey)
      Returns an instance of a EntryType whose identifier is specified in parameter
      Parameters:
      nKey - The entry type primary key
      Returns:
      an instance of EntryType
    • getList

      public static List<EntryType> getList(String strPluginName)
      Load entry types associated with a given plugin and returns them in a list
      Parameters:
      strPluginName - The name of plugin to get entry types of
      Returns:
      the list of entry type associated with the plugin
    • getCompleteList

      public static List<EntryType> getCompleteList()
      Load entry types and returns them in a list
      Parameters:
      strPluginName - The name of plugin to get entry types of
      Returns:
      the list of entry type associated with the plugin
    • update

      public static void update(EntryType entryType)
      Updates the entry type.
      Parameters:
      entryType -
    • create

      public static EntryType create(EntryType entryType)
      Create an entry type
      Parameters:
      entryType - the entry type to create
      Returns:
      the created entry type, carrying its new id
    • remove

      public static void remove(int nIdType)
      Remove an entry type
      Parameters:
      nIdType - the id of the entry type to remove
    • getMaxOrder

      public static int getMaxOrder(String strPlugin)
      Get the highest display order of the entry types of a plugin
      Parameters:
      strPlugin - the name of the plugin owning the entry types
      Returns:
      the highest display order, 0 if the plugin has no entry type
    • countEntries

      public static int countEntries(int nIdType)
      Count the entries using an entry type
      Parameters:
      nIdType - the id of the entry type
      Returns:
      the number of entries of this type
    • countDerivedEntryTypes

      public static int countDerivedEntryTypes(int nIdType)
      Count the entry types derived from an entry type
      Parameters:
      nIdType - the id of the entry type
      Returns:
      the number of entry types derived from it