Class TemporaryFileDAO
java.lang.Object
fr.paris.lutece.plugins.filegenerator.business.TemporaryFileDAO
- All Implemented Interfaces:
ITemporaryFileDAO
This class provides Data Access methods for Field objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nIdFile, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the tablefindByUser(fr.paris.lutece.portal.business.user.AdminUser user, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load all the files of an user.intinsert(TemporaryFile file, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert a new record in the table.load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of the File from the tableselectFilesOlderThan(int days, fr.paris.lutece.portal.service.plugin.Plugin plugin) Select files older than the given number of daysvoidstore(TemporaryFile file, fr.paris.lutece.portal.service.plugin.Plugin plugin) Update the file in the table
-
Constructor Details
-
TemporaryFileDAO
public TemporaryFileDAO()
-
-
Method Details
-
insert
Insert a new record in the table.- Specified by:
insertin interfaceITemporaryFileDAO- Parameters:
file- instance of the File object to insert- Returns:
- the id of the new file
-
load
Load the data of the File from the table- Specified by:
loadin interfaceITemporaryFileDAO- Parameters:
nId- The identifier of the file- Returns:
- the instance of the File
-
findByUser
public List<TemporaryFile> findByUser(fr.paris.lutece.portal.business.user.AdminUser user, fr.paris.lutece.portal.service.plugin.Plugin plugin) Description copied from interface:ITemporaryFileDAOLoad all the files of an user.- Specified by:
findByUserin interfaceITemporaryFileDAO- Parameters:
user- the user- Returns:
- the list of File
-
delete
public void delete(int nIdFile, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the table- Specified by:
deletein interfaceITemporaryFileDAO- Parameters:
nIdFile- The identifier of the file
-
store
Update the file in the table- Specified by:
storein interfaceITemporaryFileDAO- Parameters:
file- instance of the File object to update
-
selectFilesOlderThan
public List<TemporaryFile> selectFilesOlderThan(int days, fr.paris.lutece.portal.service.plugin.Plugin plugin) Description copied from interface:ITemporaryFileDAOSelect files older than the given number of days- Specified by:
selectFilesOlderThanin interfaceITemporaryFileDAO
-