Interface FileUploadValidationService
-
- All Superinterfaces:
org.apache.wicket.util.io.IClusterable
,IValidationService
,Serializable
- All Known Implementing Classes:
DefaultUploadValidationService
,ImageUploadValidationService
public interface FileUploadValidationService extends IValidationService
-
-
Field Summary
Fields Modifier and Type Field Description static String[]
DEFAULT_EXTENSIONS_ALLOWED
static String
DEFAULT_MAX_FILE_SIZE
-
Fields inherited from interface org.hippoecm.frontend.validation.IValidationService
VALIDATE_ID
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addViolation(String key, Object... params)
String[]
getAllowedExtensions()
org.apache.wicket.util.lang.Bytes
getMaxFileSize()
void
setAllowedExtensions(String[] extensions)
void
validate(org.apache.wicket.markup.html.form.upload.FileUpload upload)
-
Methods inherited from interface org.hippoecm.frontend.validation.IValidationService
getValidationResult, validate
-
-
-
-
Field Detail
-
DEFAULT_MAX_FILE_SIZE
static final String DEFAULT_MAX_FILE_SIZE
- See Also:
- Constant Field Values
-
DEFAULT_EXTENSIONS_ALLOWED
static final String[] DEFAULT_EXTENSIONS_ALLOWED
-
-
Method Detail
-
validate
void validate(org.apache.wicket.markup.html.form.upload.FileUpload upload) throws ValidationException
- Throws:
ValidationException
-
getAllowedExtensions
String[] getAllowedExtensions()
-
setAllowedExtensions
void setAllowedExtensions(String[] extensions)
-
getMaxFileSize
org.apache.wicket.util.lang.Bytes getMaxFileSize()
-
-