Uses of Class
com.jalios.jcms.upload.FileUploadOptions
-
Packages that use FileUploadOptions Package Description com.jalios.jcms.context Provides context classes available in every request, you can extends them or use them as javabean.com.jalios.jcms.handler Contains the javabean classes uses to process HTTP request (aka form handlers).com.jalios.jcms.upload -
-
Uses of FileUploadOptions in com.jalios.jcms.context
Methods in com.jalios.jcms.context with parameters of type FileUploadOptions Modifier and Type Method Description java.util.List<DocUploadInfo>
JcmsContext. getUploadedFiles(java.lang.String field, FileUploadOptions options)
Performs upload for the given field. -
Uses of FileUploadOptions in com.jalios.jcms.handler
Methods in com.jalios.jcms.handler with parameters of type FileUploadOptions Modifier and Type Method Description protected void
JcmsUploadFormHandler. setFileDocuments(java.lang.String fieldName, java.lang.String[] documents, FileUploadOptions options)
Sets the file documents from the field name and the default language.protected void
JcmsUploadFormHandler. setFileDocuments(java.lang.String fieldName, java.lang.String userLang, java.lang.String[] documents, FileUploadOptions options)
Sets the file documents for the specified field in the specified language.protected void
JcmsUploadFormHandler. setFileDocumentsML(java.lang.String fieldName, java.lang.String[] documents, FileUploadOptions options)
Sets the file documents from the field name for all the defined languages to the site.protected void
JcmsFormHandler. updateUploadedFields(java.lang.String fieldName, java.lang.String[] values, FileUploadOptions options)
Perform upload then, replace all values with value MultipartRequest.MULTIPART_UPLOAD with the real File realtive path. -
Uses of FileUploadOptions in com.jalios.jcms.upload
Fields in com.jalios.jcms.upload declared as FileUploadOptions Modifier and Type Field Description protected FileUploadOptions
DocUploadInfo. uploadOptions
Methods in com.jalios.jcms.upload that return FileUploadOptions Modifier and Type Method Description static FileUploadOptions
FileUploadOptions. getFileDocumentUploadOptions()
Utility method to retrieve a new FileUploadOptions instance suitable for FileDocument upload.FileUploadOptions
FileUploadOptions. setAuthorizedExtensions(java.lang.String... authorizedExtensions)
Set the extensions authorized for upload.FileUploadOptions
FileUploadOptions. setAuthorizedExtensions(java.util.Set<java.lang.String> authorizedExtensions)
Set the extensions authorized for upload.FileUploadOptions
FileUploadOptions. setContentType(java.lang.String contentType)
Set the content type to use, regardless of value received in request.FileUploadOptions
FileUploadOptions. setFileDocument(boolean fileDocument)
Set wether the upload will be performed for FileDocument or for any other use.FileUploadOptions
FileUploadOptions. setPreferredClass(java.lang.Class<? extends FileDocument> preferredClass)
Set the FileDocument class to preferred for upload if enabled and authorized.Methods in com.jalios.jcms.upload with parameters of type FileUploadOptions Modifier and Type Method Description void
DocUploadInfo. doUpload(java.io.File file, FileUploadOptions options)
Performs upload of the specified file with corresponding options.void
DocUploadInfo. doUpload(org.apache.commons.fileupload.FileItem item, FileUploadOptions options)
Performs upload of the specified FileItem with corresponding options.java.util.List<DocUploadInfo>
UploadManager. getUploadedFiles(JcmsContext ctxt, java.lang.String field, FileUploadOptions options)
Performs upload for file received for the specified field.
-