fr.paris.lutece.plugins.directory.business
Interface IEntryDAO

All Known Implementing Classes:
EntryDAO

public interface IEntryDAO

IEntryDAO Interface


Method Summary
 void delete(int nIdEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 java.util.List<IEntry> findEntriesWithoutParent(fr.paris.lutece.portal.service.plugin.Plugin plugin, int nIdDirectory)
          Finds all the entries without any parent
 java.util.List<IEntry> getEntryListAnonymizeStatus(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Get the list of entries whith their titles, their ids and their anonymization status.
 int insert(IEntry entry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 IEntry load(int nIdEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of the entry from the table
 java.util.List<IEntry> selectEntryListByFilter(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
 java.util.List<IEntry> selectEntryListByTypeByFilter(java.util.List<java.lang.Integer> idTypeEntryList, 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
 int selectNumberEntryByFilter(EntryFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Return the number of entry who verify the filter
 void store(IEntry entry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update the entry in the table
 void updateEntryAnonymizeStatus(java.lang.Integer nEntryId, java.lang.Boolean bAnonymize, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update an entry anonymization status
 

Method Detail

insert

int insert(IEntry entry,
           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.

Parameters:
entry - instance of the Entry object to insert
plugin - the plugin
Returns:
the id of the new entry

store

void store(IEntry entry,
           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the entry in the table

Parameters:
entry - instance of the Entry object to update
plugin - the plugin

delete

void delete(int nIdEntry,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table

Parameters:
nIdEntry - The identifier of the entry
plugin - the plugin

load

IEntry load(int nIdEntry,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of the entry from the table

Parameters:
nIdEntry - The identifier of the entry
plugin - the plugin
Returns:
the instance of the Entry

selectEntryListByFilter

java.util.List<IEntry> selectEntryListByFilter(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

Parameters:
filter - the filter
plugin - the plugin
Returns:
the list of entry

selectEntryListByTypeByFilter

java.util.List<IEntry> selectEntryListByTypeByFilter(java.util.List<java.lang.Integer> idTypeEntryList,
                                                     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

Parameters:
idTypeEntryList - a of entry type needed (by id)
filter - the filter
plugin - the plugin
Returns:
the list of entry

selectNumberEntryByFilter

int selectNumberEntryByFilter(EntryFilter filter,
                              fr.paris.lutece.portal.service.plugin.Plugin plugin)
Return the number of entry who verify the filter

Parameters:
filter - the filter
plugin - the plugin
Returns:
the number of entry who verify the filter

getEntryListAnonymizeStatus

java.util.List<IEntry> getEntryListAnonymizeStatus(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of entries whith their titles, their ids and their anonymization status.

Parameters:
plugin - The plugin
Returns:
A list of entries with their titles, their ids and their anonymization status.

updateEntryAnonymizeStatus

void updateEntryAnonymizeStatus(java.lang.Integer nEntryId,
                                java.lang.Boolean bAnonymize,
                                fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update an entry anonymization status

Parameters:
nEntryId - Id of the entry
bAnonymize - True if the entry should be anonymize, false otherwise
plugin - The plugin

findEntriesWithoutParent

java.util.List<IEntry> findEntriesWithoutParent(fr.paris.lutece.portal.service.plugin.Plugin plugin,
                                                int nIdDirectory)
Finds all the entries without any parent

Parameters:
plugin - the plugin
Returns:
List the list of all the entries without parent


Copyright © 2012 Mairie de Paris. All Rights Reserved.