com.ebmwebsourcing.geasywebeditor.server.file.repository
Interface FileRepositoryInquiryService


public interface FileRepositoryInquiryService


Method Summary
 java.lang.String getFileContentAsString(java.lang.String rootURL, java.lang.String serviceId)
          Retrieves the content of a file as a String from the file repository
 java.util.Map<java.lang.String,java.lang.String> searchFile(java.lang.String rootURL, SearchFormData data)
          Performs a search on the file repository with the given search phrase and the given search criteria.
 void testServicesURL(java.lang.String rootURL)
          Tests that all the url of the services that will be used to perform the search and to retrieve the files are operational and correspond to the wanted services Just do nothing if you do not need to check any remote URL.
 

Method Detail

testServicesURL

void testServicesURL(java.lang.String rootURL)
                     throws FileRepositoryInquiryException
Tests that all the url of the services that will be used to perform the search and to retrieve the files are operational and correspond to the wanted services Just do nothing if you do not need to check any remote URL.

Parameters:
rootURL - The root url of the server which is going to be called
Throws:
FileRepositoryInquiryException - if the service cannot be called correctly

searchFile

java.util.Map<java.lang.String,java.lang.String> searchFile(java.lang.String rootURL,
                                                            SearchFormData data)
                                                            throws FileRepositoryInquiryException
Performs a search on the file repository with the given search phrase and the given search criteria.

Parameters:
rootURL - The root url of the server which is going to be called
data - the data used to perform the search
Returns:
A mapping : Map
Throws:
FileRepositoryInquiryException

getFileContentAsString

java.lang.String getFileContentAsString(java.lang.String rootURL,
                                        java.lang.String serviceId)
                                        throws FileRepositoryInquiryException
Retrieves the content of a file as a String from the file repository

Parameters:
rootURL - The root url of the server which is going to be called
serviceId - The id of the wanted file
Returns:
The file content as a String
Throws:
FileRepositoryInquiryException


Copyright © 2010-2011 Petals Link. All Rights Reserved.