Interface ITemporaryFileDAO
- All Known Implementing Classes:
TemporaryFileDAO
public interface ITemporaryFileDAO
ITemporaryFileDAO
-
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
-
Method Details
-
insert
Insert a new record in the table.- 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- Parameters:
nId- The identifier of the file- Returns:
- the instance of the File
-
delete
void delete(int nIdFile, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the table- Parameters:
nIdFile- The identifier of the file
-
store
Update the file in the table- Parameters:
file- instance of the File object to update
-
findByUser
List<TemporaryFile> findByUser(fr.paris.lutece.portal.business.user.AdminUser user, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load all the files of an user.- Parameters:
user- the user- Returns:
- the list of File
-
selectFilesOlderThan
List<TemporaryFile> selectFilesOlderThan(int days, fr.paris.lutece.portal.service.plugin.Plugin plugin) Select files older than the given number of days- Parameters:
days-
-