Interface FileUploadValidationService
- All Superinterfaces:
org.apache.wicket.util.io.IClusterable
,IValidationService
,Serializable
- All Known Implementing Classes:
DefaultUploadValidationService
,ImageUploadValidationService
-
Field Summary
Fields inherited from interface org.hippoecm.frontend.validation.IValidationService
VALIDATE_ID
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addViolation
(String key, Object... params) String[]
org.apache.wicket.util.lang.Bytes
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 Details
-
DEFAULT_MAX_FILE_SIZE
- See Also:
-
DEFAULT_EXTENSIONS_ALLOWED
-
-
Method Details
-
validate
void validate(org.apache.wicket.markup.html.form.upload.FileUpload upload) throws ValidationException - Throws:
ValidationException
-
addViolation
-
getAllowedExtensions
String[] getAllowedExtensions() -
setAllowedExtensions
-
getMaxFileSize
org.apache.wicket.util.lang.Bytes getMaxFileSize()
-