com.jurismarches.vradi.services
Interface FileService

All Known Implementing Classes:
FileServiceImpl, FileServiceProxy

public interface FileService

File management service.

Version:
$Revision: 1443 $ Last update : $Date: 2010-09-20 10:50:49 +0200 (lun., 20 sept. 2010) $ By : $Author: chatellier $
Author:
chatellier

Method Summary
 File downloadFormAttachment(String uri)
          Download file.
 File downloadFormEmbeddedFile(String uri)
          Download file.
 File downloadPDF(String uri)
          Download pdf file.
 File downloadRequestHistory(String uri)
          Download request histiory file.
 File downloadTemplate(String extensionName, String templateName)
          Download file.
 File downloadWebHarvestScript(String uri)
          Download file.
 String getRequestHistoryURL(String uri)
          Download request histiory file.
 String uploadFormAttachment(File file, String formId)
          Upload a form attachment.
 String uploadFormEmbeddedFile(File file, String formId)
          Upload a form attachement.
 String uploadTempFile(File file)
          Upload a temporary file (for example for export).
 String uploadTemplate(File file, String extensionName)
          Upload a template on server.
 String uploadWebHarvestScript(File file)
          Upload a web harvest script on server.
 

Method Detail

uploadTemplate

String uploadTemplate(File file,
                      String extensionName)
                      throws VradiException
Upload a template on server.

Parameters:
file - file to upload
extensionName - extension name to put file into
Returns:
file uri to reference file
Throws:
VradiException - throw VradiException if exception is occured

downloadTemplate

File downloadTemplate(String extensionName,
                      String templateName)
                      throws VradiException
Download file. File may be temporary.

Parameters:
extensionName - extension name
templateName - template name
Returns:
locally downloaded file
Throws:
VradiException - throw VradiException if exception is occured

uploadWebHarvestScript

String uploadWebHarvestScript(File file)
                              throws VradiException
Upload a web harvest script on server.

Parameters:
file - file to upload
Returns:
file uri to reference file
Throws:
VradiException - throw VradiException if exception is occured

downloadWebHarvestScript

File downloadWebHarvestScript(String uri)
                              throws VradiException
Download file. File may be temporary.

Parameters:
uri - file uri to download
Returns:
locally downloaded file
Throws:
VradiException - throw VradiException if exception is occured

downloadPDF

File downloadPDF(String uri)
                 throws VradiException
Download pdf file. File may be temporary.

Parameters:
uri - file uri to download
Returns:
locally downloaded file
Throws:
VradiException - throw VradiException if exception is occured

uploadFormAttachment

String uploadFormAttachment(File file,
                            String formId)
                            throws VradiException
Upload a form attachment.

Parameters:
file - file to upload
formId - form id
Returns:
file uri to reference file
Throws:
VradiException - if an exception occurred

uploadTempFile

String uploadTempFile(File file)
                      throws VradiException
Upload a temporary file (for example for export).

Parameters:
file - The file to upload
Returns:
an absolute URI on server file system
Throws:
VradiException - if an exception occurred

downloadFormAttachment

File downloadFormAttachment(String uri)
                            throws VradiException
Download file. File may be temporary.

Parameters:
uri - file uri to download
Returns:
locally downloaded file
Throws:
VradiException - throw VradiException if exception is occured

uploadFormEmbeddedFile

String uploadFormEmbeddedFile(File file,
                              String formId)
                              throws VradiException
Upload a form attachement.

Parameters:
file - file to upload
formId - form id
Returns:
file uri to reference file
Throws:
VradiException - throw VradiException if exception is occured

downloadFormEmbeddedFile

File downloadFormEmbeddedFile(String uri)
                              throws VradiException
Download file. File may be temporary.

Parameters:
uri - file uri to download
Returns:
locally downloaded file
Throws:
VradiException - throw VradiException if exception is occured

downloadRequestHistory

File downloadRequestHistory(String uri)
                            throws VradiException
Download request histiory file. File may be temporary.

Parameters:
uri - corresponding to history
Returns:
url to go to file
Throws:
VradiException - throw VradiException if exception is occured

getRequestHistoryURL

String getRequestHistoryURL(String uri)
                            throws VradiException
Download request histiory file. File may be temporary.

Parameters:
uri - corresponding to history
Returns:
url to go to file
Throws:
VradiException - throw VradiException if exception is occured


Copyright © 2009-2010 JurisMarches. All Rights Reserved.