Class CmsUploaderFormData
- java.lang.Object
-
- org.opencms.gwt.client.ui.input.upload.impl.CmsUploaderFormData
-
- All Implemented Interfaces:
I_CmsUploader
- Direct Known Subclasses:
CmsUploaderFileApi
public class CmsUploaderFormData extends java.lang.Object implements I_CmsUploader
Form data implementation of the file uploader.
-
-
Constructor Summary
Constructors Constructor Description CmsUploaderFormData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
upload(java.lang.String uploadUri, java.lang.String targetFolder, boolean isRootPath, java.lang.String postCreateHandler, com.google.gwt.core.client.JsArray<CmsFileInfo> filesToUpload, com.google.gwt.core.client.JavaScriptObject filesToUnzip, boolean keepFileNames, I_CmsUploadDialog dialog)
Sends a post request to the upload JSP.void
uploadFiles(java.lang.String uploadUri, java.lang.String targetFolder, boolean isRootPath, java.lang.String postCreateHandler, java.util.List<CmsFileInfo> filesToUpload, java.util.List<java.lang.String> filesToUnzip, boolean keepFileNames, I_CmsUploadDialog dialog)
Uploads the given files to the given URI.
-
-
-
Constructor Detail
-
CmsUploaderFormData
public CmsUploaderFormData()
-
-
Method Detail
-
uploadFiles
public void uploadFiles(java.lang.String uploadUri, java.lang.String targetFolder, boolean isRootPath, java.lang.String postCreateHandler, java.util.List<CmsFileInfo> filesToUpload, java.util.List<java.lang.String> filesToUnzip, boolean keepFileNames, I_CmsUploadDialog dialog)
Description copied from interface:I_CmsUploader
Uploads the given files to the given URI.- Specified by:
uploadFiles
in interfaceI_CmsUploader
- Parameters:
uploadUri
- the upload URItargetFolder
- the target folderisRootPath
- true if the target folder is given as a root pathpostCreateHandler
- the post-create handler class, with parametersfilesToUpload
- the files to uploadfilesToUnzip
- the files to unzipkeepFileNames
- don't perform filename translation on the server if this is truedialog
- the dialog instance- See Also:
I_CmsUploader.uploadFiles(java.lang.String, java.lang.String, boolean, java.lang.String, java.util.List, java.util.List, boolean, org.opencms.gwt.client.ui.input.upload.I_CmsUploadDialog)
-
upload
protected void upload(java.lang.String uploadUri, java.lang.String targetFolder, boolean isRootPath, java.lang.String postCreateHandler, com.google.gwt.core.client.JsArray<CmsFileInfo> filesToUpload, com.google.gwt.core.client.JavaScriptObject filesToUnzip, boolean keepFileNames, I_CmsUploadDialog dialog)
Sends a post request to the upload JSP.- Parameters:
uploadUri
- the URI of the JSP that performs the uploadtargetFolder
- the target folder to uploadisRootPath
- true if the target folder is given as a root pathpostCreateHandler
- the post-create handlerfilesToUpload
- the files to uploadfilesToUnzip
- the file names to unzipdialog
- this dialog
-
-