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
,java.io.Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
,I_CmsUploadService
public class CmsUploadService extends CmsGwtService implements I_CmsUploadService
Handles all RPC services related to the upload dialog.- Since:
- 8.0.0
- See Also:
CmsUploadService
,I_CmsUploadService
,I_CmsUploadServiceAsync
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CmsUploadService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Boolean
cancelUpload()
Cancels the upload.CmsUploadFileBean
checkUploadFiles(java.util.List<java.lang.String> fileNames, java.lang.String targetFolder, boolean isRootPath)
Checks the availability of a resource in the VFS, using theCmsResourceFilter.IGNORE_EXPIRATION
filter.CmsUploadProgessInfo
getUploadProgressInfo()
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
-
-
-
-
Constructor Detail
-
CmsUploadService
public CmsUploadService()
-
-
Method Detail
-
cancelUpload
public java.lang.Boolean 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:
I_CmsUploadService.cancelUpload()
-
checkUploadFiles
public CmsUploadFileBean checkUploadFiles(java.util.List<java.lang.String> fileNames, java.lang.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:
I_CmsUploadService.checkUploadFiles(java.util.List, java.lang.String, boolean)
-
getUploadProgressInfo
public CmsUploadProgessInfo 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:
I_CmsUploadService.getUploadProgressInfo()
-
-