com.jurismarches.vradi.services
Interface FileService

All Known Implementing Classes:
FileServiceImpl, FileServiceProxy

public interface FileService

File management service.

Version:
$Revision: 1256 $ Last update : $Date: 2010-09-02 14:14:34 +0200 (jeu., 02 sept. 2010) $ By : $Author: jcouteau $
Author:
chatellier

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

Method Detail

uploadTemplate

java.lang.String uploadTemplate(java.io.File file,
                                java.lang.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

java.io.File downloadTemplate(java.lang.String extensionName,
                              java.lang.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

java.lang.String uploadWebHarvestScript(java.io.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

java.io.File downloadWebHarvestScript(java.lang.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

java.io.File downloadPDF(java.lang.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

java.lang.String uploadFormAttachment(java.io.File file,
                                      java.lang.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

java.lang.String uploadTempFile(java.io.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

java.io.File downloadFormAttachment(java.lang.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

java.lang.String uploadFormEmbeddedFile(java.io.File file,
                                        java.lang.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

java.io.File downloadFormEmbeddedFile(java.lang.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

java.io.File downloadRequestHistory(java.lang.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

java.lang.String getRequestHistoryURL(java.lang.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.