public final class EntryHome extends Object
Modifier and Type | Method and Description |
---|---|
static void |
copy(IEntry entry,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Copy of an instance of Entry
|
static int |
create(IEntry entry,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creation of an instance of Entry
|
static IEntry |
findByPrimaryKey(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of a Entry whose identifier is specified in parameter
|
static List<IEntry> |
findEntriesWithoutParent(fr.paris.lutece.portal.service.plugin.Plugin plugin,
int nIdDirectory)
Finds all the entries without any parent
|
static List<IEntry> |
getEntryList(EntryFilter filter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the entry who verify the filter and returns them in a list
|
static List<IEntry> |
getEntryListAnonymizeStatus(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of entries that should be anonymized when a record is
anonymized
|
static List<IEntry> |
getEntryListByTypeList(List<Integer> idTypeEntryList,
EntryFilter filter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the entry which type is contained in typeEntryList and verify the filter to return them in a list
|
static int |
getNumberEntryByFilter(EntryFilter filter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Return the number of entry who verify the filter
|
static void |
remove(int nIdEntry,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove the entry whose identifier is specified in parameter
|
static void |
update(IEntry entry,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update of the entry which is specified in parameter
|
static void |
updateEntryAnonymizeStatus(Integer nEntryId,
Boolean bAnonymize,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update an entry anonymize status
|
public static int create(IEntry entry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
entry
- The instance of the Entry which contains the informations to storeplugin
- the Pluginpublic static void copy(IEntry entry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
entry
- The instance of the Entry who must copyplugin
- the Pluginpublic static void update(IEntry entry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
entry
- The instance of the Entry which contains the informations to updateplugin
- the Pluginpublic static void remove(int nIdEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdEntry
- The entry Idplugin
- the Pluginpublic static IEntry findByPrimaryKey(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nKey
- The entry primary keyplugin
- the Pluginpublic static List<IEntry> getEntryList(EntryFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
filter
- the filterplugin
- the pluginpublic static List<IEntry> getEntryListByTypeList(List<Integer> idTypeEntryList, EntryFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
idTypeEntryList
- a of entry type needed (by id)filter
- the filterplugin
- the pluginpublic static int getNumberEntryByFilter(EntryFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
filter
- the filterplugin
- the pluginpublic static List<IEntry> getEntryListAnonymizeStatus(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- The pluginpublic static void updateEntryAnonymizeStatus(Integer nEntryId, Boolean bAnonymize, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nEntryId
- The id of the entry to updatebAnonymize
- True if the entry should be anonymized, false otherwiseplugin
- The pluginpublic static List<IEntry> findEntriesWithoutParent(fr.paris.lutece.portal.service.plugin.Plugin plugin, int nIdDirectory)
plugin
- the pluginnIdDirectory
- the id of the concerned directoryCopyright © 2016 City of Paris. All rights reserved.