fr.paris.lutece.plugins.blobstoreclient.service
Class BlobStoreClientLocaleService

java.lang.Object
  extended by fr.paris.lutece.plugins.blobstoreclient.service.BlobStoreClientLocaleService
All Implemented Interfaces:
IBlobStoreClientService

public class BlobStoreClientLocaleService
extends java.lang.Object
implements IBlobStoreClientService

BlobStoreClientLocaleService


Constructor Summary
BlobStoreClientLocaleService()
           
 
Method Summary
 java.lang.String doDeleteFile(java.lang.String strBaseUrl, java.lang.String strBlobStore, java.lang.String strBlobKey)
          Do delete a file in the blobstore webapp
 void doDownloadFile(java.lang.String strUrl, java.lang.String strFilePath)
          Download the file to the file path
 java.lang.String doUploadFile(java.lang.String strBaseUrl, org.apache.commons.fileupload.FileItem fileItem, java.lang.String strBlobStore)
          Do upload a file in the blobstore webapp
 java.lang.String getFileName(java.lang.String strUrl)
          Get the file name given an url
 java.lang.String getFileUrl(java.lang.String strBaseUrl, java.lang.String strBlobStore, java.lang.String strBlobKey)
          Get the file url
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlobStoreClientLocaleService

public BlobStoreClientLocaleService()
Method Detail

getFileName

public java.lang.String getFileName(java.lang.String strUrl)
                             throws BlobStoreClientException
Get the file name given an url

Specified by:
getFileName in interface IBlobStoreClientService
Parameters:
strUrl - the url
Returns:
the file name
Throws:
BlobStoreClientException - exception if there is an issue

doDeleteFile

public java.lang.String doDeleteFile(java.lang.String strBaseUrl,
                                     java.lang.String strBlobStore,
                                     java.lang.String strBlobKey)
                              throws BlobStoreClientException
Do delete a file in the blobstore webapp

Specified by:
doDeleteFile in interface IBlobStoreClientService
Parameters:
strBaseUrl - the base url
strBlobStore - the blobstore service name
strBlobKey - the blob key
Returns:
the deleted blob key
Throws:
BlobStoreClientException - exception if there is an issue

doUploadFile

public java.lang.String doUploadFile(java.lang.String strBaseUrl,
                                     org.apache.commons.fileupload.FileItem fileItem,
                                     java.lang.String strBlobStore)
                              throws BlobStoreClientException
Do upload a file in the blobstore webapp

Specified by:
doUploadFile in interface IBlobStoreClientService
Parameters:
strBaseUrl - the base url
fileItem - the file to upload
strBlobStore - the blobstore service name
Returns:
the uploaded file blob key
Throws:
BlobStoreClientException - exception if there is an issue

getFileUrl

public java.lang.String getFileUrl(java.lang.String strBaseUrl,
                                   java.lang.String strBlobStore,
                                   java.lang.String strBlobKey)
                            throws BlobStoreClientException
Get the file url

Specified by:
getFileUrl in interface IBlobStoreClientService
Parameters:
strBaseUrl - the base url
strBlobStore - the blobstore service name
strBlobKey - the blob key
Returns:
the file url
Throws:
BlobStoreClientException - exception if there is an issue

doDownloadFile

public void doDownloadFile(java.lang.String strUrl,
                           java.lang.String strFilePath)
                    throws BlobStoreClientException
Download the file to the file path

Specified by:
doDownloadFile in interface IBlobStoreClientService
Parameters:
strUrl - the url of the file
strFilePath - the file path
Throws:
BlobStoreClientException - exception if there is an error


Copyright © 2011 Mairie de Paris. All Rights Reserved.