fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.business.zipbasket
Class ZipBasketDAO

java.lang.Object
  extended by fr.paris.lutece.plugins.directory.modules.pdfproducerarchive.business.zipbasket.ZipBasketDAO
All Implemented Interfaces:
IZipBasketDAO

public class ZipBasketDAO
extends Object
implements IZipBasketDAO

Allow to access ZipBasket data


Constructor Summary
ZipBasketDAO()
           
 
Method Summary
 void addZipBasket(String strName, int nIdAdminUser, fr.paris.lutece.portal.service.plugin.Plugin plugin, int nIdDirectory, int nIdRecord, int nArchiveItemKey)
          this method add a new zip in the basket
 void changeZipBasketStatus(fr.paris.lutece.portal.service.plugin.Plugin plugin, int nIdZipBasket, String strStatus)
          this method change de zip file status and modify the date
 void changeZipBasketUrl(fr.paris.lutece.portal.service.plugin.Plugin plugin, int nIdZipBasket, String strUrl)
          this method change de zip file url and modify the date
 void deleteMultiZipBasket(fr.paris.lutece.portal.service.plugin.Plugin plugin, List<Integer> listIdZipBasket)
          This method delete multi ZipBasket
 void deleteZipBasket(fr.paris.lutece.portal.service.plugin.Plugin plugin, int nIdZipBasket)
          This method delete a ZipBasket
 boolean existsZipBasket(int nIdAdminUser, fr.paris.lutece.portal.service.plugin.Plugin plugin, int nIdDirectory, int nIdRecord)
          This SQL method check if the zip is already exists
 List<ZipBasket> loadAllZipBasket(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          This method load all zipbasket
 List<ZipBasket> loadAllZipBasketByAdminUser(fr.paris.lutece.portal.service.plugin.Plugin plugin, int nIdAdminUser, int nIdDirectory)
          This method load all element in basket by id admin user for a specific directory
 List<ZipBasket> loadAllZipBasketByAdminUserOrder(fr.paris.lutece.portal.service.plugin.Plugin plugin, int nIdAdminUser, int nIdDirectory)
          This method load all element in basket by id admin user for a specific directory by order
 ZipBasket loadZipBasket(fr.paris.lutece.portal.service.plugin.Plugin plugin, int nIdZipBasket)
          this method return a specific zipbasket by id
 List<ZipBasket> loadZipBasketByDate(fr.paris.lutece.portal.service.plugin.Plugin plugin, Date dateExpiry)
          Get the list of zip basket filtered by date
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZipBasketDAO

public ZipBasketDAO()
Method Detail

addZipBasket

public void addZipBasket(String strName,
                         int nIdAdminUser,
                         fr.paris.lutece.portal.service.plugin.Plugin plugin,
                         int nIdDirectory,
                         int nIdRecord,
                         int nArchiveItemKey)
this method add a new zip in the basket

Specified by:
addZipBasket in interface IZipBasketDAO
Parameters:
strName - the name of the futur zip
nIdAdminUser - id of admin user
plugin - plugin
nIdDirectory - id of directory
nIdRecord - id of record
nArchiveItemKey - id of the archive item

existsZipBasket

public boolean existsZipBasket(int nIdAdminUser,
                               fr.paris.lutece.portal.service.plugin.Plugin plugin,
                               int nIdDirectory,
                               int nIdRecord)
This SQL method check if the zip is already exists

Specified by:
existsZipBasket in interface IZipBasketDAO
Parameters:
nIdAdminUser - id of admin user
plugin - plugin
nIdDirectory - id of directory
nIdRecord - id of record
Returns:
true if the zip already exists

loadAllZipBasket

public List<ZipBasket> loadAllZipBasket(fr.paris.lutece.portal.service.plugin.Plugin plugin)
This method load all zipbasket

Specified by:
loadAllZipBasket in interface IZipBasketDAO
Parameters:
plugin - plugin
Returns:
list of ZipBasket

loadAllZipBasketByAdminUser

public List<ZipBasket> loadAllZipBasketByAdminUser(fr.paris.lutece.portal.service.plugin.Plugin plugin,
                                                   int nIdAdminUser,
                                                   int nIdDirectory)
This method load all element in basket by id admin user for a specific directory

Specified by:
loadAllZipBasketByAdminUser in interface IZipBasketDAO
Parameters:
plugin - plugin
nIdAdminUser - id of admin user
nIdDirectory - id of directory
Returns:
list of ZipBasket

deleteZipBasket

public void deleteZipBasket(fr.paris.lutece.portal.service.plugin.Plugin plugin,
                            int nIdZipBasket)
This method delete a ZipBasket

Specified by:
deleteZipBasket in interface IZipBasketDAO
Parameters:
plugin - plugin
nIdZipBasket - id of the zipbasket

deleteMultiZipBasket

public void deleteMultiZipBasket(fr.paris.lutece.portal.service.plugin.Plugin plugin,
                                 List<Integer> listIdZipBasket)
This method delete multi ZipBasket

Specified by:
deleteMultiZipBasket in interface IZipBasketDAO
Parameters:
plugin - plugin
listIdZipBasket - list of id zipbasket

changeZipBasketStatus

public void changeZipBasketStatus(fr.paris.lutece.portal.service.plugin.Plugin plugin,
                                  int nIdZipBasket,
                                  String strStatus)
this method change de zip file status and modify the date

Specified by:
changeZipBasketStatus in interface IZipBasketDAO
Parameters:
plugin - plugin
nIdZipBasket - id of the zipbasket
strStatus - the new status

changeZipBasketUrl

public void changeZipBasketUrl(fr.paris.lutece.portal.service.plugin.Plugin plugin,
                               int nIdZipBasket,
                               String strUrl)
this method change de zip file url and modify the date

Specified by:
changeZipBasketUrl in interface IZipBasketDAO
Parameters:
plugin - plugin
nIdZipBasket - id of the zipbasket
strUrl - the new url

loadZipBasket

public ZipBasket loadZipBasket(fr.paris.lutece.portal.service.plugin.Plugin plugin,
                               int nIdZipBasket)
this method return a specific zipbasket by id

Specified by:
loadZipBasket in interface IZipBasketDAO
Parameters:
plugin - plugin
nIdZipBasket - id of the zipbasket
Returns:
the zipbasket by the id

loadZipBasketByDate

public List<ZipBasket> loadZipBasketByDate(fr.paris.lutece.portal.service.plugin.Plugin plugin,
                                           Date dateExpiry)
Get the list of zip basket filtered by date

Specified by:
loadZipBasketByDate in interface IZipBasketDAO
Parameters:
plugin - the plugin
dateExpiry - the date expiry
Returns:
a list of ZipBasket

loadAllZipBasketByAdminUserOrder

public List<ZipBasket> loadAllZipBasketByAdminUserOrder(fr.paris.lutece.portal.service.plugin.Plugin plugin,
                                                        int nIdAdminUser,
                                                        int nIdDirectory)
This method load all element in basket by id admin user for a specific directory by order

Specified by:
loadAllZipBasketByAdminUserOrder in interface IZipBasketDAO
Parameters:
plugin - plugin
nIdAdminUser - id of admin user
nIdDirectory - id of directory
Returns:
list of ZipBasket


Copyright © 2013 Mairie de Paris. All Rights Reserved.