1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.exoplatform.ecm.webui.form;
18
19 import org.exoplatform.webui.form.input.UIUploadInput;
20
21
22
23
24
25
26
27 public class UIFormUploadInputExtension extends UIUploadInput {
28
29 protected byte[] byteValue;
30 protected String fileName;
31 protected String mimeType;
32
33 public UIFormUploadInputExtension(String name, String bindingExpression) {
34 super(name, bindingExpression);
35 }
36
37 public UIFormUploadInputExtension(String name, String bindingExpression, int limit) {
38 super(name, bindingExpression, 1, limit);
39 }
40
41 public void setByteValue(byte[] value) { byteValue = value; }
42
43 public byte[] getByteValue() { return byteValue; }
44
45 public String getFileName() { return fileName; }
46
47 public void setFileName(String fileName) { this.fileName = fileName; }
48
49 public void setMimeType(String value) { mimeType = value; }
50
51 public String getMimeType() { return mimeType; }
52
53 }