fr.paris.lutece.plugins.directory.business
Class EntryDAO

java.lang.Object
  extended by fr.paris.lutece.plugins.directory.business.EntryDAO
All Implemented Interfaces:
IEntryDAO

public final class EntryDAO
extends Object
implements IEntryDAO

This class provides Data Access methods for Entry objects


Constructor Summary
EntryDAO()
           
 
Method Summary
 void delete(int nIdEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 List<IEntry> findEntriesWithoutParent(fr.paris.lutece.portal.service.plugin.Plugin plugin, int nIdDirectory)
          Finds all the entries without any parent
 List<IEntry> getEntryListAnonymizeStatus(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Get the list of entries whith their titles, their ids and their anonymisation status.
 int insert(IEntry entry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 IEntry load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of the entry from the table
 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
 List<IEntry> selectEntryListByTypeByFilter(List<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(Integer nEntryId, Boolean bAnonymize, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update an entry anonymization status
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntryDAO

public EntryDAO()
Method Detail

insert

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

Specified by:
insert in interface IEntryDAO
Parameters:
entry - instance of the Entry object to insert
plugin - the plugin
Returns:
the id of the new entry

load

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

Specified by:
load in interface IEntryDAO
Parameters:
nId - The identifier of the entry
plugin - the plugin
Returns:
the instance of the Entry

delete

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

Specified by:
delete in interface IEntryDAO
Parameters:
nIdEntry - The identifier of the entry
plugin - the plugin

store

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

Specified by:
store in interface IEntryDAO
Parameters:
entry - instance of the Entry object to update
plugin - the plugin

selectEntryListByFilter

public 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

Specified by:
selectEntryListByFilter in interface IEntryDAO
Parameters:
filter - the filter
plugin - the plugin
Returns:
the list of entry

selectNumberEntryByFilter

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

Specified by:
selectNumberEntryByFilter in interface IEntryDAO
Parameters:
filter - the filter
plugin - the plugin
Returns:
the number of entry who verify the filter

selectEntryListByTypeByFilter

public List<IEntry> selectEntryListByTypeByFilter(List<Integer> idTypeEntryList,
                                                  EntryFilter filter,
                                                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface: IEntryDAO
Load the data of all the entry who verify the filter and returns them in a list

Specified by:
selectEntryListByTypeByFilter in interface IEntryDAO
Parameters:
idTypeEntryList - a of entry type needed (by id)
filter - the filter
plugin - the plugin
Returns:
the list of entry

getEntryListAnonymizeStatus

public List<IEntry> getEntryListAnonymizeStatus(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of entries whith their titles, their ids and their anonymisation status. Also get the class name of the entry type.

Specified by:
getEntryListAnonymizeStatus in interface IEntryDAO
Parameters:
plugin - The plugin
Returns:
A list of entries with their titles, their ids and their anonymisation status.

updateEntryAnonymizeStatus

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

Specified by:
updateEntryAnonymizeStatus in interface IEntryDAO
Parameters:
nEntryId - Id of the entry
plugin - the plugin
bAnonymize - True if the entry should be anonymize, false otherwise

findEntriesWithoutParent

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

Specified by:
findEntriesWithoutParent in interface IEntryDAO
Parameters:
plugin - the plugin
Returns:
List the list of all the entries without parent


Copyright © 2013 Mairie de Paris. All Rights Reserved.