public final class FileHome extends Object
Modifier and Type | Method and Description |
---|---|
static int |
create(File file,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creation of an instance of record file
|
static File |
findByPrimaryKey(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of a file whose identifier is specified in parameter
|
static List<File> |
getFilesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the files list
|
static void |
purge(File file,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Purge the file associated to given id
|
static void |
remove(int nIdFile,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete the file whose identifier is specified in parameter
|
static void |
update(File file,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update of file which is specified in parameter
|
public static int create(File file, fr.paris.lutece.portal.service.plugin.Plugin plugin)
file
- The instance of the file which contains the informations to storeplugin
- the pluginpublic static void update(File file, fr.paris.lutece.portal.service.plugin.Plugin plugin)
file
- The instance of the record file which contains the informations to updateplugin
- the Pluginpublic static void remove(int nIdFile, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdFile
- The identifier of the record fileplugin
- the Pluginpublic static File findByPrimaryKey(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nKey
- The file primary keyplugin
- the Pluginpublic static void purge(File file, fr.paris.lutece.portal.service.plugin.Plugin plugin)
file
- the file to purgeplugin
- The pluginCopyright © 2020 City of Paris. All rights reserved.