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 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 PluginCopyright © 2017 City of Paris. All rights reserved.