Class TemporaryFileHome
java.lang.Object
fr.paris.lutece.plugins.filegenerator.business.TemporaryFileHome
This class provides instances management methods (create, find, ...) for file objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic intcreate(TemporaryFile file) Creation of an instance of record filestatic TemporaryFilefindByPrimaryKey(int nKey) Returns an instance of a file whose identifier is specified in parameterstatic List<TemporaryFile>findByUser(fr.paris.lutece.portal.business.user.AdminUser user) Returns a list of files belonging to an userstatic voidremove(int nIdFile) Delete the file whose identifier is specified in parameterstatic List<TemporaryFile>selectFilesOlderThan(int days) Select the temporary files older than the given number of daysstatic voidupdate(TemporaryFile file) Update of file which is specified in parameter
-
Method Details
-
create
Creation of an instance of record file- Parameters:
file- The instance of the file which contains the informations to store- Returns:
- the id of the file after creation
-
update
Update of file which is specified in parameter- Parameters:
file- The instance of the record file which contains the informations to update
-
remove
public static void remove(int nIdFile) Delete the file whose identifier is specified in parameter- Parameters:
nIdFile- The identifier of the record file
-
findByPrimaryKey
Returns an instance of a file whose identifier is specified in parameter- Parameters:
nKey- The file primary key- Returns:
- an instance of file
-
findByUser
Returns a list of files belonging to an user- Parameters:
user- The user- Returns:
- a list of files
-
selectFilesOlderThan
Select the temporary files older than the given number of days- Parameters:
days-
-