com.ebmwebsourcing.geasywebeditor.server.file.repository
Class FileRepositoryServiceImpl
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
com.google.gwt.user.server.rpc.RemoteServiceServlet
com.ebmwebsourcing.geasywebeditor.server.file.repository.FileRepositoryServiceImpl
- All Implemented Interfaces:
- FileRepositoryService, com.google.gwt.user.client.rpc.RemoteService, com.google.gwt.user.server.rpc.SerializationPolicyProvider, java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public class FileRepositoryServiceImpl
- extends com.google.gwt.user.server.rpc.RemoteServiceServlet
- implements FileRepositoryService
- See Also:
- Serialized Form
| Fields inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet |
perThreadRequest, perThreadResponse |
|
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 metaDataFormat)
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. |
| Methods inherited from class com.google.gwt.user.server.rpc.RemoteServiceServlet |
checkPermutationStrongName, doGetSerializationPolicy, getSerializationPolicy, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processPost, shouldCompressResponse |
| Methods inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet |
doPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContent |
| Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UPLOAD_DIR
public static final java.lang.String UPLOAD_DIR
FileRepositoryServiceImpl
public FileRepositoryServiceImpl()
searchFile
public java.util.Map<java.lang.String,java.lang.String> searchFile(SearchFormData data)
throws com.ebmwebsourcing.webeditor.impl.domain.exception.ServiceException
- Description copied from interface:
FileRepositoryService
- Performs a search in the last valid file repository proposed by the user.
- Specified by:
searchFile in interface FileRepositoryService
- 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
testURL
public boolean testURL(java.lang.String repoRootUrl,
java.lang.String fileRepositoryInquiryServiceName)
throws com.ebmwebsourcing.webeditor.impl.domain.exception.ServiceException
- Description copied from interface:
FileRepositoryService
- Tests that the provided URL is functioning.
Tests that the provided URL is a functioning file repository.
- Specified by:
testURL in interface FileRepositoryService
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
attachFilesFromRepoDescription
public 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 metaDataFormat)
throws com.ebmwebsourcing.webeditor.impl.domain.exception.ServiceException
- Description copied from interface:
FileRepositoryService
- Uploads the files to the server from the last valid file repository provided by the user,
and attaches it to the given ProjectInstance
- Specified by:
attachFilesFromRepoDescription in interface FileRepositoryService
instance - the project instance to which the files from the repository should be attachedmetaDataFormat - 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.