Package org.opencms.ade.upload
Class CmsUploadService
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
com.google.gwt.user.server.rpc.RemoteServiceServlet
org.opencms.gwt.CmsGwtService
org.opencms.ade.upload.CmsUploadService
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.RemoteService,com.google.gwt.user.server.rpc.SerializationPolicyProvider,Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig,I_CmsUploadService
Handles all RPC services related to the upload dialog.
- Since:
- 8.0.0
- See Also:
-
Field Summary
Fields inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
perThreadRequest, perThreadResponse -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCancels the upload.checkUploadFiles(List<String> fileNames, String targetFolder, boolean isRootPath) Checks the availability of a resource in the VFS, using theCmsResourceFilter.IGNORE_EXPIRATIONfilter.Returns the upload progress information.Methods inherited from class org.opencms.gwt.CmsGwtService
checkPermissions, clearThreadStorage, doGetSerializationPolicy, doUnexpectedFailure, ensureLock, ensureLock, ensureLock, ensureLock, ensureSession, error, getCmsObject, getPropertiesByName, getRequest, getResponse, isBroadcastCall, log, log, logError, service, setBroadcastPoll, setCms, setContext, setRequest, setResponse, tryUnlockMethods inherited from class com.google.gwt.user.server.rpc.RemoteServiceServlet
checkPermutationStrongName, getCodeServerPolicyUrl, getRequestModuleBasePath, getSerializationPolicy, init, loadPolicyFromCodeServer, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processCall, processPost, shouldCompressResponseMethods inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
doPost, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContentMethods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, serviceMethods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init
-
Constructor Details
-
CmsUploadService
public CmsUploadService()
-
-
Method Details
-
cancelUpload
Description copied from interface:I_CmsUploadServiceCancels the upload.- Specified by:
cancelUploadin interfaceI_CmsUploadService- Returns:
trueif the listener was canceledfalseotherwise- See Also:
-
checkUploadFiles
public CmsUploadFileBean checkUploadFiles(List<String> fileNames, String targetFolder, boolean isRootPath) Description copied from interface:I_CmsUploadServiceChecks the availability of a resource in the VFS, using theCmsResourceFilter.IGNORE_EXPIRATIONfilter.Calculates the VFS path for each filename in the given list and checks its availability.
- Specified by:
checkUploadFilesin interfaceI_CmsUploadService- Parameters:
fileNames- the filenames to checktargetFolder- the folder to checkisRootPath-truein case the target folder path is a root path- Returns:
- a
CmsUploadFileBeanthat holds the list of resource names (without the path) that already exist in the VFS and a list of filenames that are invalid - See Also:
-
getUploadProgressInfo
Description copied from interface:I_CmsUploadServiceReturns the upload progress information.- Specified by:
getUploadProgressInfoin interfaceI_CmsUploadService- Returns:
- the upload progress information
- See Also:
-