com.ebmwebsourcing.geasywebeditor.client.file.repository.service
Interface FileRepositoryService

All Superinterfaces:
com.google.gwt.user.client.rpc.RemoteService
All Known Implementing Classes:
FileRepositoryServiceImpl

@RemoteServiceRelativePath(value="FileRepositoryService")
public interface FileRepositoryService
extends com.google.gwt.user.client.rpc.RemoteService


Method Summary
 java.util.List<com.ebmwebsourcing.webeditor.api.domain.project.IProjectInstanceMetaData> attachFilesFromRepoDescription(java.util.Map<java.lang.String,java.lang.String> files, com.ebmwebsourcing.webeditor.api.domain.project.IProjectInstance instance, com.ebmwebsourcing.webeditor.api.domain.project.IProjectInstanceFormat format)
          Uploads the files to the server from the last valid file repository provided by the user, and attaches it to the given ProjectInstance
 java.util.Map<java.lang.String,java.lang.String> searchFile(SearchFormData data)
          Performs a search in the last valid file repository proposed by the user.
 boolean testURL(java.lang.String repoRootUrl, java.lang.String fileRepositoryInquiryServiceName)
          Tests that the provided URL is functioning.
 

Method Detail

testURL

boolean testURL(java.lang.String repoRootUrl,
                java.lang.String fileRepositoryInquiryServiceName)
                throws com.ebmwebsourcing.webeditor.impl.domain.exception.ServiceException
Tests that the provided URL is functioning. Tests that the provided URL is a functioning file repository.

Parameters:
repoRootUrl -
fileRepositoryInquiryServiceName - the qualified name of the class that will be used as a String to contact the file repository
Returns:
true if the URL is a a functioning URL denoting a compliant file repository
Throws:
com.ebmwebsourcing.webeditor.impl.domain.exception.ServiceException

searchFile

java.util.Map<java.lang.String,java.lang.String> searchFile(SearchFormData data)
                                                            throws com.ebmwebsourcing.webeditor.impl.domain.exception.ServiceException
Performs a search in the last valid file repository proposed by the user.

Parameters:
data - the data provided by the user
Returns:
a mapping . The key set will be displayed as reuslt of the search the values should be used to upload the wanted files
Throws:
com.ebmwebsourcing.webeditor.impl.domain.exception.ServiceException

attachFilesFromRepoDescription

java.util.List<com.ebmwebsourcing.webeditor.api.domain.project.IProjectInstanceMetaData> attachFilesFromRepoDescription(java.util.Map<java.lang.String,java.lang.String> files,
                                                                                                                        com.ebmwebsourcing.webeditor.api.domain.project.IProjectInstance instance,
                                                                                                                        com.ebmwebsourcing.webeditor.api.domain.project.IProjectInstanceFormat format)
                                                                                                                        throws com.ebmwebsourcing.webeditor.impl.domain.exception.ServiceException
Uploads the files to the server from the last valid file repository provided by the user, and attaches it to the given ProjectInstance

Parameters:
services - a mapping . Names will be used as file names on the server and ids will be used to retrieve the files from the repository
instance - the project instance to which the files from the repository should be attached
format - the format of the attached files
Returns:
the meta data extracted from the files
Throws:
com.ebmwebsourcing.webeditor.impl.domain.exception.ServiceException


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