Class EntryTypeHome
java.lang.Object
fr.paris.lutece.plugins.genericattributes.business.EntryTypeHome
class EntryTypeHome
-
Method Summary
Modifier and TypeMethodDescriptionstatic intcountDerivedEntryTypes(int nIdType) Count the entry types derived from an entry typestatic intcountEntries(int nIdType) Count the entries using an entry typestatic EntryTypeCreate an entry typestatic EntryTypefindByPrimaryKey(int nKey) Returns an instance of a EntryType whose identifier is specified in parameterLoad entry types and returns them in a listLoad entry types associated with a given plugin and returns them in a liststatic intgetMaxOrder(String strPlugin) Get the highest display order of the entry types of a pluginstatic voidremove(int nIdType) Remove an entry typestatic voidUpdates the entry type.
-
Method Details
-
findByPrimaryKey
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
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
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
Updates the entry type.- Parameters:
entryType-
-
create
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
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
-