Class ExtensionFileValidator

  • All Implemented Interfaces:
    IFileValidator

    public class ExtensionFileValidator
    extends java.lang.Object
    implements IFileValidator
    Validates the extension of a file.
    Since:
    14.0.0
    Version:
    $Revision: 26555 $ $Date: 2024-08-09 10:11:42 -0300 (Fri, 09 Aug 2024) $
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void validate​(FileConfig file)
      Validate the file using property bags defined on instance service.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ExtensionFileValidator

        public ExtensionFileValidator()
    • Method Detail

      • validate

        public void validate​(FileConfig file)
                      throws PortalException
        Validate the file using property bags defined on instance service. If the property wasn't defined, the validation will be ignored.
        Specified by:
        validate in interface IFileValidator
        Parameters:
        file - The file to be validated.
        Throws:
        FileValidationException - If the validation has failed.
        PortalException - If any error occurs validating the metadata.
        Since:
        14.0.0