Interface ITemporaryFileDAO
-
- All Known Implementing Classes:
TemporaryFileDAO
public interface ITemporaryFileDAOITemporaryFileDAO
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddelete(int nIdFile, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the tablejava.util.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.intinsert(TemporaryFile file, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.TemporaryFileload(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of the File from the tablejava.util.List<TemporaryFile>selectFilesOlderThan(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 Detail
-
insert
int insert(TemporaryFile file, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.- Parameters:
file- instance of the File object to insert- Returns:
- the id of the new file
-
load
TemporaryFile load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
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
void store(TemporaryFile file, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the file in the table- Parameters:
file- instance of the File object to update
-
findByUser
java.util.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
java.util.List<TemporaryFile> selectFilesOlderThan(int days, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Select files older than the given number of days- Parameters:
days-
-
-