Interface AttachmentValidator


  • public interface AttachmentValidator
    This is an extension point for validation of attachments that are supposed to be uploaded. The AttachmentValidator can only be used in the novomind iAGENT Routing process.
    Since:
    12.0
    • Method Detail

      • validate

        void validate​(CentralAttachmentUploadAction centralAttachmentUploadAction)
               throws ValidationException
        The method is called when a supervisor or administrator is trying to upload a central attachment.
        Parameters:
        centralAttachmentUploadAction - provides all required information about the upload attachment action.
        Throws:
        ValidationException - Throw a ValidationException to indicate a validation error. The attachment will not be uploaded. The ValidationException.getLocalizedMessage() method will be called to get the error message to be displayed to the supervisor or administrator.
        Since:
        12.0