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
-
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_EXPIRATION
filter.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, tryUnlock
Methods inherited from class com.google.gwt.user.server.rpc.RemoteServiceServlet
checkPermutationStrongName, getCodeServerPolicyUrl, getRequestModuleBasePath, getSerializationPolicy, init, loadPolicyFromCodeServer, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processCall, processPost, shouldCompressResponse
Methods inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
doPost, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContent
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service
Methods 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_CmsUploadService
Cancels the upload.- Specified by:
cancelUpload
in interfaceI_CmsUploadService
- Returns:
true
if the listener was canceledfalse
otherwise- See Also:
-
checkUploadFiles
public CmsUploadFileBean checkUploadFiles(List<String> fileNames, String targetFolder, boolean isRootPath) Description copied from interface:I_CmsUploadService
Checks the availability of a resource in the VFS, using theCmsResourceFilter.IGNORE_EXPIRATION
filter.Calculates the VFS path for each filename in the given list and checks its availability.
- Specified by:
checkUploadFiles
in interfaceI_CmsUploadService
- Parameters:
fileNames
- the filenames to checktargetFolder
- the folder to checkisRootPath
-true
in case the target folder path is a root path- Returns:
- a
CmsUploadFileBean
that 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_CmsUploadService
Returns the upload progress information.- Specified by:
getUploadProgressInfo
in interfaceI_CmsUploadService
- Returns:
- the upload progress information
- See Also:
-