fr.paris.lutece.plugins.form.service.file
Class FileService

java.lang.Object
  extended by fr.paris.lutece.plugins.form.service.file.FileService

public class FileService
extends java.lang.Object

FileService


Constructor Summary
FileService()
           
 
Method Summary
 int create(File file)
          Creation of an instance of record file
 File findByPrimaryKey(int nKey, boolean bGetFileData)
          Returns an instance of a file whose identifier is specified in parameter
 void remove(int nIdFile)
          Delete the file whose identifier is specified in parameter
 void setPhysicalFileService(PhysicalFileService physicalFileService)
          Set the physical file service
 void update(File file)
          Update of file which is specified in parameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileService

public FileService()
Method Detail

setPhysicalFileService

public void setPhysicalFileService(PhysicalFileService physicalFileService)
Set the physical file service

Parameters:
physicalFileService - the physical file service

create

public int create(File file)
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

public void update(File file)
Update of file which is specified in parameter

Parameters:
file - The instance of the record file which contains the informations to update

remove

public void remove(int nIdFile)
Delete the file whose identifier is specified in parameter

Parameters:
nIdFile - The identifier of the record file

findByPrimaryKey

public File findByPrimaryKey(int nKey,
                             boolean bGetFileData)
Returns an instance of a file whose identifier is specified in parameter

Parameters:
nKey - The file primary key
Returns:
an instance of file


Copyright © 2012 Mairie de Paris. All Rights Reserved.