Package org.xwiki.attachment.validation
Interface AttachmentValidator
-
@Role @Unstable public interface AttachmentValidator
Provide the operations to validate an attachment. For instance, by checking the size or the mimetype of the attachment.- Since:
- 14.10
- Version:
- $Id: 989fe91129e568b26c427c53851a86755c102d94 $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
validateAttachment(AttachmentAccessWrapper wrapper)
Check if the part is a valid attachment in the current space.
-
-
-
Method Detail
-
validateAttachment
void validateAttachment(AttachmentAccessWrapper wrapper) throws AttachmentValidationException
Check if the part is a valid attachment in the current space.- Parameters:
wrapper
- the attachment wrapper, containing the actual uploaded file input stream, and its required metadatas- Throws:
AttachmentValidationException
- in case of error when validating the part
-
-